Improvment in tslint standard (#16)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { LoginUser } from "./loginResult";
|
||||
import { RegisterUserResult } from "./registerUserResult";
|
||||
import { LoginUser } from './loginResult'
|
||||
import { RegisterUserResult } from './registerUserResult'
|
||||
|
||||
export {
|
||||
LoginUser,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class LoginUser extends BaseDomain{
|
||||
|
||||
constructor(uid: string){
|
||||
super();
|
||||
super()
|
||||
|
||||
this._uid = uid;
|
||||
this._uid = uid
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -15,9 +15,9 @@ export class LoginUser extends BaseDomain{
|
||||
* @memberof LoginUser
|
||||
*/
|
||||
|
||||
private _uid : string;
|
||||
private _uid : string
|
||||
public get uid() : string {
|
||||
return this._uid;
|
||||
return this._uid
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class RegisterUserResult extends BaseDomain{
|
||||
|
||||
constructor(uid: string){
|
||||
super();
|
||||
super()
|
||||
|
||||
this._uid = uid;
|
||||
this._uid = uid
|
||||
}
|
||||
/**
|
||||
* User identifier
|
||||
@@ -14,9 +14,9 @@ export class RegisterUserResult extends BaseDomain{
|
||||
* @memberof LoginUser
|
||||
*/
|
||||
|
||||
private _uid : string;
|
||||
public get uid() : string {
|
||||
return this._uid;
|
||||
private _uid : string
|
||||
public get uid (): string {
|
||||
return this._uid
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { User } from "domain/users";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
import { User } from 'domain/users'
|
||||
|
||||
export class Circle extends BaseDomain {
|
||||
|
||||
@@ -9,7 +9,7 @@ export class Circle extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public id?: string | null;
|
||||
public id?: string | null
|
||||
|
||||
/**
|
||||
* Circle creation date time
|
||||
@@ -17,7 +17,7 @@ export class Circle extends BaseDomain {
|
||||
* @type {Date}
|
||||
* @memberof Circle
|
||||
*/
|
||||
public creationDate?: number;
|
||||
public creationDate?: number
|
||||
|
||||
/**
|
||||
* Circle owner identifier
|
||||
@@ -25,7 +25,7 @@ export class Circle extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Circle
|
||||
*/
|
||||
public ownerId?: string | null;
|
||||
public ownerId?: string | null
|
||||
|
||||
/**
|
||||
* Circle name
|
||||
@@ -33,7 +33,7 @@ export class Circle extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public name: string;
|
||||
public name: string
|
||||
|
||||
/**
|
||||
* The users in a circle
|
||||
@@ -41,7 +41,7 @@ export class Circle extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public users: {[userId:string]: User};
|
||||
public users: {[userId:string]: User}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Circle} from './circle';
|
||||
import {UserFollower} from './userFollower';
|
||||
import {Circle} from './circle'
|
||||
import {UserFollower} from './userFollower'
|
||||
|
||||
export {
|
||||
Circle,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class UserFollower extends BaseDomain {
|
||||
|
||||
@@ -9,7 +9,7 @@ export class UserFollower extends BaseDomain {
|
||||
* @type {Date}
|
||||
* @memberof Circle
|
||||
*/
|
||||
public creationDate?: number;
|
||||
public creationDate?: number
|
||||
|
||||
/**
|
||||
* User full name
|
||||
@@ -17,7 +17,7 @@ export class UserFollower extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof UserFollower
|
||||
*/
|
||||
public fullName: string;
|
||||
public fullName: string
|
||||
|
||||
/**
|
||||
* Avatar URL address
|
||||
@@ -25,7 +25,7 @@ export class UserFollower extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof UserFollower
|
||||
*/
|
||||
public avatar: string;
|
||||
public avatar: string
|
||||
|
||||
/**
|
||||
* If following user approved {true} or not {false}
|
||||
@@ -33,7 +33,7 @@ export class UserFollower extends BaseDomain {
|
||||
* @type {Boolean}
|
||||
* @memberof UserFollower
|
||||
*/
|
||||
public approved: Boolean;
|
||||
public approved: Boolean
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class Comment extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class Comment extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public postId: string;
|
||||
public postId: string
|
||||
|
||||
/**
|
||||
* Comment text
|
||||
@@ -16,7 +16,7 @@ export class Comment extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public text: string;
|
||||
public text: string
|
||||
|
||||
/**
|
||||
* Comment score
|
||||
@@ -24,7 +24,7 @@ export class Comment extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public score: number;
|
||||
public score: number
|
||||
|
||||
/**
|
||||
* Comment creation date
|
||||
@@ -32,7 +32,7 @@ export class Comment extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public creationDate:number;
|
||||
public creationDate:number
|
||||
|
||||
/**
|
||||
* Comment owner full name
|
||||
@@ -40,7 +40,7 @@ export class Comment extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public userDisplayName: string;
|
||||
public userDisplayName: string
|
||||
|
||||
/**
|
||||
* Comment owner avater address
|
||||
@@ -48,7 +48,7 @@ export class Comment extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public userAvatar: string;
|
||||
public userAvatar: string
|
||||
|
||||
/**
|
||||
* Comment owner identifier
|
||||
@@ -56,6 +56,6 @@ export class Comment extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Comment
|
||||
*/
|
||||
public userId: string;
|
||||
public userId: string
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Comment} from './comment';
|
||||
import {Comment} from './comment'
|
||||
|
||||
export {
|
||||
Comment
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SocialError } from "./socialError";
|
||||
import { BaseDomain } from "./baseDomain";
|
||||
import { SocialError } from './socialError'
|
||||
import { BaseDomain } from './baseDomain'
|
||||
|
||||
export {
|
||||
SocialError,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export class SocialError{
|
||||
|
||||
constructor(code: string, description: string){
|
||||
this._code = code;
|
||||
this._description = description;
|
||||
this._isError = true;
|
||||
this._code = code
|
||||
this._description = description
|
||||
this._isError = true
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12,9 +12,9 @@ export class SocialError{
|
||||
* @type {string}
|
||||
* @memberof SocialError
|
||||
*/
|
||||
private _code : string;
|
||||
private _code : string
|
||||
public get code() : string {
|
||||
return this._code;
|
||||
return this._code
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -24,9 +24,9 @@ export class SocialError{
|
||||
* @memberof SocialError
|
||||
*/
|
||||
|
||||
private _description : string;
|
||||
private _description : string
|
||||
public get description() : string {
|
||||
return this._description;
|
||||
return this._description
|
||||
}
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@ export class SocialError{
|
||||
* @memberof SocialError
|
||||
*/
|
||||
|
||||
private _isError : Boolean;
|
||||
private _isError : Boolean
|
||||
public get isError() : Boolean {
|
||||
return this._isError;
|
||||
return this._isError
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class Image extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class Image extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Image
|
||||
*/
|
||||
public id?: string | null;
|
||||
public id?: string | null
|
||||
|
||||
/**
|
||||
* Image creation date
|
||||
@@ -16,7 +16,7 @@ export class Image extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Image
|
||||
*/
|
||||
public creationDate: number;
|
||||
public creationDate: number
|
||||
|
||||
/**
|
||||
* Image delete date
|
||||
@@ -24,7 +24,7 @@ export class Image extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Image
|
||||
*/
|
||||
public deleteDate: string;
|
||||
public deleteDate: string
|
||||
|
||||
/**
|
||||
* Image URL address
|
||||
@@ -32,7 +32,7 @@ export class Image extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Image
|
||||
*/
|
||||
public URL: string;
|
||||
public URL: string
|
||||
|
||||
/**
|
||||
* Image folder name with image name {folderName/imageName}
|
||||
@@ -40,7 +40,7 @@ export class Image extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Image
|
||||
*/
|
||||
public fullPath: string;
|
||||
public fullPath: string
|
||||
|
||||
/**
|
||||
* Image owner identifier
|
||||
@@ -48,7 +48,7 @@ export class Image extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Image
|
||||
*/
|
||||
public ownerUserId: string;
|
||||
public ownerUserId: string
|
||||
|
||||
/**
|
||||
* Last edit date
|
||||
@@ -56,7 +56,7 @@ export class Image extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Image
|
||||
*/
|
||||
public lastEditDate: number;
|
||||
public lastEditDate: number
|
||||
|
||||
/**
|
||||
* If the image was deleted {true} or not {false}
|
||||
@@ -64,6 +64,6 @@ export class Image extends BaseDomain {
|
||||
* @type {Boolean}
|
||||
* @memberof Image
|
||||
*/
|
||||
public deleted: Boolean;
|
||||
public deleted: Boolean
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Image } from "./image";
|
||||
import { Image } from './image'
|
||||
|
||||
export {
|
||||
Image
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Notification} from './notification';
|
||||
import {Notification} from './notification'
|
||||
|
||||
export {
|
||||
Notification
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class Notification extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class Notification extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public description: string;
|
||||
public description: string
|
||||
|
||||
/**
|
||||
* The URL which notification refer to
|
||||
@@ -16,7 +16,7 @@ export class Notification extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public url: string;
|
||||
public url: string
|
||||
|
||||
/**
|
||||
* The identifier of the user who makes the notification
|
||||
@@ -24,7 +24,7 @@ export class Notification extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public notifierUserId: string;
|
||||
public notifierUserId: string
|
||||
|
||||
/**
|
||||
* The identifier of the user who receive the notification
|
||||
@@ -32,7 +32,7 @@ export class Notification extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public notifyRecieverUserId: string;
|
||||
public notifyRecieverUserId: string
|
||||
|
||||
/**
|
||||
* If the notification is seen {true} or not {false}
|
||||
@@ -40,6 +40,6 @@ export class Notification extends BaseDomain {
|
||||
* @type {Boolean}
|
||||
* @memberof Notification
|
||||
*/
|
||||
public isSeen: Boolean;
|
||||
public isSeen: Boolean
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Post} from './post';
|
||||
import {Post} from './post'
|
||||
|
||||
export {
|
||||
Post
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class Post extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public id?: string | null;
|
||||
public id?: string | null
|
||||
|
||||
/**
|
||||
* The identifier of post type
|
||||
@@ -16,7 +16,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public postTypeId: number;
|
||||
public postTypeId: number
|
||||
|
||||
/**
|
||||
* The post creation date
|
||||
@@ -24,7 +24,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public creationDate:number;
|
||||
public creationDate:number
|
||||
|
||||
/**
|
||||
* The post delete date
|
||||
@@ -32,7 +32,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public deleteDate: number;
|
||||
public deleteDate: number
|
||||
|
||||
/**
|
||||
* The score of post
|
||||
@@ -40,7 +40,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public score: number;
|
||||
public score: number
|
||||
|
||||
/**
|
||||
* Post view count
|
||||
@@ -48,7 +48,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public viewCount: number;
|
||||
public viewCount: number
|
||||
|
||||
/**
|
||||
* The text of post
|
||||
@@ -56,7 +56,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public body: string;
|
||||
public body: string
|
||||
|
||||
/**
|
||||
* The identifier of post owner
|
||||
@@ -64,7 +64,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public ownerUserId: string;
|
||||
public ownerUserId: string
|
||||
|
||||
/**
|
||||
* Full name of post owner
|
||||
@@ -72,7 +72,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public ownerDisplayName: string;
|
||||
public ownerDisplayName: string
|
||||
|
||||
/**
|
||||
* Avatar address of post owner
|
||||
@@ -80,7 +80,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public ownerAvatar: string;
|
||||
public ownerAvatar: string
|
||||
|
||||
/**
|
||||
* Last post edit date
|
||||
@@ -88,7 +88,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public lastEditDate: number;
|
||||
public lastEditDate: number
|
||||
|
||||
/**
|
||||
* Post tags
|
||||
@@ -96,7 +96,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string[]}
|
||||
* @memberof Post
|
||||
*/
|
||||
public tags: string[];
|
||||
public tags: string[]
|
||||
|
||||
/**
|
||||
* Numeber of comment on the post
|
||||
@@ -104,7 +104,7 @@ export class Post extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Post
|
||||
*/
|
||||
public commentCounter: number;
|
||||
public commentCounter: number
|
||||
|
||||
/**
|
||||
* The address of image on the post
|
||||
@@ -112,7 +112,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public image: string;
|
||||
public image: string
|
||||
|
||||
/**
|
||||
* Post image full path
|
||||
@@ -120,7 +120,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public imageFullPath: string;
|
||||
public imageFullPath: string
|
||||
|
||||
/**
|
||||
* The adress of video on the post
|
||||
@@ -128,7 +128,7 @@ export class Post extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Post
|
||||
*/
|
||||
public video: string;
|
||||
public video: string
|
||||
|
||||
/**
|
||||
* If writing comment is disabled {true} or not {false}
|
||||
@@ -136,7 +136,7 @@ export class Post extends BaseDomain {
|
||||
* @type {Boolean}
|
||||
* @memberof Post
|
||||
*/
|
||||
public disableComments: Boolean;
|
||||
public disableComments: Boolean
|
||||
|
||||
/**
|
||||
* If sharing post is disabled {true} or not {false}
|
||||
@@ -144,7 +144,7 @@ export class Post extends BaseDomain {
|
||||
* @type {Boolean}
|
||||
* @memberof Post
|
||||
*/
|
||||
public disableSharing: Boolean;
|
||||
public disableSharing: Boolean
|
||||
|
||||
/**
|
||||
* If the post is deleted {true} or not false
|
||||
@@ -152,7 +152,7 @@ export class Post extends BaseDomain {
|
||||
* @type {Boolean}
|
||||
* @memberof Post
|
||||
*/
|
||||
public deleted: Boolean;
|
||||
public deleted: Boolean
|
||||
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import {User} from './user';
|
||||
import {Profile} from './profile';
|
||||
import {User} from './user'
|
||||
import {Profile} from './profile'
|
||||
|
||||
export {
|
||||
User,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class Profile extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class Profile extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Profile
|
||||
*/
|
||||
public avatar: string;
|
||||
public avatar: string
|
||||
|
||||
/**
|
||||
* User email
|
||||
@@ -16,7 +16,7 @@ export class Profile extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Profile
|
||||
*/
|
||||
public email: string;
|
||||
public email: string
|
||||
|
||||
/**
|
||||
* User full name
|
||||
@@ -24,7 +24,7 @@ export class Profile extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Profile
|
||||
*/
|
||||
public fullName: string;
|
||||
public fullName: string
|
||||
|
||||
/**
|
||||
* The banner address of user profile
|
||||
@@ -32,7 +32,7 @@ export class Profile extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Profile
|
||||
*/
|
||||
public banner: string;
|
||||
public banner: string
|
||||
|
||||
/**
|
||||
* User tag line
|
||||
@@ -40,6 +40,6 @@ export class Profile extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Profile
|
||||
*/
|
||||
public tagLine: string;
|
||||
public tagLine: string
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class User extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class User extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public fullName: string;
|
||||
public fullName: string
|
||||
|
||||
/**
|
||||
* User avatar address
|
||||
@@ -16,7 +16,7 @@ export class User extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public avatar: string;
|
||||
public avatar: string
|
||||
|
||||
/**
|
||||
* Email of the user
|
||||
@@ -24,7 +24,7 @@ export class User extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public email?: string | null;
|
||||
public email?: string | null
|
||||
|
||||
/**
|
||||
* Password of the user
|
||||
@@ -32,7 +32,7 @@ export class User extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public password?: string | null;
|
||||
public password?: string | null
|
||||
|
||||
/**
|
||||
* User identifier
|
||||
@@ -40,7 +40,7 @@ export class User extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public userId?: string | null;
|
||||
public userId?: string | null
|
||||
|
||||
/**
|
||||
* User creation date
|
||||
@@ -48,6 +48,6 @@ export class User extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof User
|
||||
*/
|
||||
public creationDate: number;
|
||||
public creationDate: number
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Vote} from './vote';
|
||||
import {Vote} from './vote'
|
||||
|
||||
export {
|
||||
Vote
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
import { BaseDomain } from 'domain/common'
|
||||
|
||||
export class Vote extends BaseDomain {
|
||||
|
||||
@@ -8,7 +8,7 @@ export class Vote extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Vote
|
||||
*/
|
||||
public id?: string | null;
|
||||
public id?: string | null
|
||||
|
||||
/**
|
||||
* Post identifire which vote on
|
||||
@@ -16,7 +16,7 @@ export class Vote extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Vote
|
||||
*/
|
||||
public postId: string;
|
||||
public postId: string
|
||||
|
||||
/**
|
||||
* Vote date
|
||||
@@ -24,7 +24,7 @@ export class Vote extends BaseDomain {
|
||||
* @type {number}
|
||||
* @memberof Vote
|
||||
*/
|
||||
public creationDate: number;
|
||||
public creationDate: number
|
||||
|
||||
/**
|
||||
* Voter full name
|
||||
@@ -32,7 +32,7 @@ export class Vote extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Vote
|
||||
*/
|
||||
public userDisplayName: string;
|
||||
public userDisplayName: string
|
||||
|
||||
/**
|
||||
* Avatar of voter
|
||||
@@ -40,7 +40,7 @@ export class Vote extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Vote
|
||||
*/
|
||||
public userAvatar: string;
|
||||
public userAvatar: string
|
||||
|
||||
/**
|
||||
* Voter identifier
|
||||
@@ -48,6 +48,6 @@ export class Vote extends BaseDomain {
|
||||
* @type {string}
|
||||
* @memberof Vote
|
||||
*/
|
||||
public userId: string;
|
||||
public userId: string
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user