dist/ng-alerts.js
function (args) {
            var params = angular.extend({
                id: ngAlertsId.create(),
                msg: '',
                type: 'default',
                time: Date.now()
            }, args);

            this.id = params.id;
            this.msg = params.msg;
            this.type = params.type;
            this.time = params.time;
        }
function (args) {
            var params = angular.extend({
                id: ngAlertsId.create(),
                msg: '',
                type: 'default',
                time: Date.now()
            }, args);

            this.id = params.id;
            this.msg = params.msg;
            this.type = params.type;
            this.time = params.time;
        }
function ( args ) { var params = angular . extend ( { id : ngAlertsId . create ( ) , msg : '' , type : 'default' , time : Date . now ( ) } , args ) ; this . id = params . id ; this . msg = params . msg ; this . type = params . type ; this . time = params . time ; }
The alert object.
@param {Object} args - The argument object.
@param {Number} args.id - The unique id.
@param {String} args.msg - The message.
@param {String} [args.type=default] - The type of alert.
@param {Number} [args.time=Date.now()] - The time of the notification (Miliseconds since Jan 1 1970).
The alert object .