Migrate actions,reducers and action types to TS #15
This commit is contained in:
5
app/domain/notifications/index.ts
Normal file
5
app/domain/notifications/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import {Notification} from './notification';
|
||||
|
||||
export {
|
||||
Notification
|
||||
}
|
||||
45
app/domain/notifications/notification.ts
Normal file
45
app/domain/notifications/notification.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
|
||||
export class Notification extends BaseDomain {
|
||||
|
||||
/**
|
||||
* Description of notification
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public description: string;
|
||||
|
||||
/**
|
||||
* The URL which notification refer to
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public url: string;
|
||||
|
||||
/**
|
||||
* The identifier of the user who makes the notification
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public notifierUserId: string;
|
||||
|
||||
/**
|
||||
* The identifier of the user who receive the notification
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public notifyRecieverUserId: string;
|
||||
|
||||
/**
|
||||
* If the notification is seen {true} or not {false}
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public isSeen: Boolean;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user