Migrate actions,reducers and action types to TS #15
This commit is contained in:
61
app/domain/comments/comment.ts
Normal file
61
app/domain/comments/comment.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
|
||||
export class Comment extends BaseDomain {
|
||||
|
||||
/**
|
||||
* Post identifier that comment belong to
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public postId: string;
|
||||
|
||||
/**
|
||||
* Comment text
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public text: string;
|
||||
|
||||
/**
|
||||
* Comment score
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public score: number;
|
||||
|
||||
/**
|
||||
* Comment creation date
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public creationDate:number;
|
||||
|
||||
/**
|
||||
* Comment owner full name
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public userDisplayName: string;
|
||||
|
||||
/**
|
||||
* Comment owner avater address
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public userAvatar: string;
|
||||
|
||||
/**
|
||||
* Comment owner identifier
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public userId: string;
|
||||
|
||||
}
|
||||
5
app/domain/comments/index.ts
Normal file
5
app/domain/comments/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import {Comment} from './comment';
|
||||
|
||||
export {
|
||||
Comment
|
||||
}
|
||||
Reference in New Issue
Block a user