70 lines
1.0 KiB
TypeScript
70 lines
1.0 KiB
TypeScript
import { BaseDomain } from 'domain/common'
|
|
|
|
export class Comment extends BaseDomain {
|
|
|
|
/**
|
|
* Comment identifier
|
|
*
|
|
* @type {string}
|
|
* @memberof Comment
|
|
*/
|
|
public id?: string | null
|
|
|
|
/**
|
|
* 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
|
|
|
|
}
|