2024-04-28 18:16:23 +00:00
|
|
|
export class Message {
|
2024-07-05 01:27:29 +00:00
|
|
|
public id: string = "";
|
|
|
|
public uri: string = "";
|
2024-04-28 18:16:23 +00:00
|
|
|
public protocol: string = "";
|
2024-07-05 01:27:29 +00:00
|
|
|
public adapter: string = "";
|
|
|
|
public author: string = ""
|
2024-04-28 18:16:23 +00:00
|
|
|
public content: string = "";
|
|
|
|
public attachments: Attachment[] = [];
|
2024-07-05 01:27:29 +00:00
|
|
|
public replyTo: string | null = null;
|
|
|
|
public replies: string[] = [];
|
|
|
|
public mentions: string[] = [];
|
2024-07-16 19:43:35 +00:00
|
|
|
public created: number = 0;
|
|
|
|
public edited: number | null = null;
|
2024-04-28 18:16:23 +00:00
|
|
|
public visibility: string = "public";
|
|
|
|
}
|
|
|
|
|
|
|
|
export class Author {
|
|
|
|
public id: string = "";
|
2024-07-05 01:27:29 +00:00
|
|
|
public uri: string = "";
|
|
|
|
public protocol: string = "";
|
|
|
|
public adapter: string = "";
|
2024-04-28 18:16:23 +00:00
|
|
|
public name: string = "";
|
2024-07-05 01:27:29 +00:00
|
|
|
public profileData: any = {};
|
|
|
|
public profilePic: string = "";
|
|
|
|
public messages: string[] = [];
|
2024-04-28 18:16:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Attachment {
|
2024-07-05 01:27:29 +00:00
|
|
|
public Src: string = "";
|
|
|
|
public ThumbSrc: string = "";
|
|
|
|
public Desc: string = "";
|
|
|
|
public CreatedAt: Date = new Date();
|
2024-04-28 18:16:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default { Message, Attachment, Author }
|