2015-10-15 01:00:21 +00:00
|
|
|
'use strict';
|
|
|
|
|
2015-10-21 20:25:12 +00:00
|
|
|
const constants = require('./constants');
|
2015-10-15 01:00:21 +00:00
|
|
|
|
2015-10-21 20:25:12 +00:00
|
|
|
const {keys} = constants;
|
2015-10-15 01:00:21 +00:00
|
|
|
|
2015-10-19 23:19:43 +00:00
|
|
|
module.exports = {
|
|
|
|
create,
|
|
|
|
};
|
|
|
|
|
|
|
|
class Notification {}
|
2015-10-15 01:00:21 +00:00
|
|
|
|
|
|
|
function create(realmId, info) {
|
|
|
|
let notification = new Notification();
|
|
|
|
|
2015-10-19 23:19:43 +00:00
|
|
|
notification[keys.realm] = realmId;
|
|
|
|
notification[keys.id] = info.id;
|
|
|
|
notification[keys.type] = info.type;
|
2015-10-15 01:00:21 +00:00
|
|
|
|
|
|
|
return notification;
|
|
|
|
}
|