22 lines
362 B
JavaScript
22 lines
362 B
JavaScript
'use strict';
|
|
|
|
let constants = require('./constants');
|
|
|
|
let {keys} = constants;
|
|
|
|
module.exports = {
|
|
create,
|
|
};
|
|
|
|
class Notification {}
|
|
|
|
function create(realmId, info) {
|
|
let notification = new Notification();
|
|
|
|
notification[keys.realm] = realmId;
|
|
notification[keys.id] = info.id;
|
|
notification[keys.type] = info.type;
|
|
|
|
return notification;
|
|
}
|