|
@@ -3,23 +3,23 @@ import { ContentParams } from "./content-params";
|
|
|
|
|
|
|
|
export class ContentItem {
|
|
export class ContentItem {
|
|
|
|
|
|
|
|
- public data: ContentParams;
|
|
|
|
|
- private hash: string;
|
|
|
|
|
- private type: string;
|
|
|
|
|
|
|
+ public readonly data: ContentParams;
|
|
|
|
|
+ public readonly hash: string;
|
|
|
|
|
+ public readonly type: string;
|
|
|
|
|
|
|
|
- private myTagsWithoutAll: string[];
|
|
|
|
|
- private allLinks: ContentLink[];
|
|
|
|
|
- private userLinks: ContentLink[];
|
|
|
|
|
- private systemLinks: ContentLink[];
|
|
|
|
|
- private repliable: boolean;
|
|
|
|
|
|
|
+ public readonly myTagsWithoutAll: string[];
|
|
|
|
|
+ public readonly allLinks: ContentLink[];
|
|
|
|
|
+ public readonly userLinks: ContentLink[];
|
|
|
|
|
+ public readonly systemLinks: ContentLink[];
|
|
|
|
|
+ public readonly repliable: boolean;
|
|
|
|
|
|
|
|
- private price?: number;
|
|
|
|
|
- private priceFormatted?: string;
|
|
|
|
|
- private fromTarget?: string;
|
|
|
|
|
- private toTarget?: string;
|
|
|
|
|
- private fromContactId?: string;
|
|
|
|
|
- private toContactId?: string;
|
|
|
|
|
- private media?: string;
|
|
|
|
|
|
|
+ public readonly price?: number;
|
|
|
|
|
+ public readonly priceFormatted?: string;
|
|
|
|
|
+ public readonly fromTarget?: string;
|
|
|
|
|
+ public readonly toTarget?: string;
|
|
|
|
|
+ public readonly fromContactId?: string;
|
|
|
|
|
+ public readonly toContactId?: string;
|
|
|
|
|
+ public readonly media?: string;
|
|
|
|
|
|
|
|
constructor(hash: string, props: ContentParams) {
|
|
constructor(hash: string, props: ContentParams) {
|
|
|
this.data = props;
|
|
this.data = props;
|