post.model.ts 570B

123456789101112131415161718192021222324
  1. import { Moment } from 'moment';
  2. import { IUser } from 'app/core/user/user.model';
  3. import { IPrivacy } from 'app/shared/model//privacy.model';
  4. export interface IPost {
  5. id?: number;
  6. timestamp?: Moment;
  7. content?: string;
  8. likes?: string;
  9. poster?: IUser;
  10. privacySetting?: IPrivacy;
  11. }
  12. export class Post implements IPost {
  13. constructor(
  14. public id?: number,
  15. public timestamp?: Moment,
  16. public content?: string,
  17. public likes?: string,
  18. public poster?: IUser,
  19. public privacySetting?: IPrivacy
  20. ) {}
  21. }