38 lines
No EOL
1 KiB
TypeScript
38 lines
No EOL
1 KiB
TypeScript
export class Message {
|
|
public id: string = "";
|
|
public uri: string = "";
|
|
public protocol: string = "";
|
|
public adapter: string = "";
|
|
public author: string = ""
|
|
public content: string = "";
|
|
public attachments: Attachment[] = [];
|
|
public replyTo: string | null = null;
|
|
public replies: string[] = [];
|
|
public mentions: string[] = [];
|
|
public created: number = 0;
|
|
public edited: number | null = null;
|
|
public visibility: string = "public";
|
|
public renoteId: string | null = null;
|
|
public renoter: string | null = null;
|
|
public renoteTime: Date | null = null;
|
|
}
|
|
|
|
export class Author {
|
|
public id: string = "";
|
|
public uri: string = "";
|
|
public protocol: string = "";
|
|
public adapter: string = "";
|
|
public name: string = "";
|
|
public profileData: any = {};
|
|
public profilePic: string = "";
|
|
public messages: string[] = [];
|
|
}
|
|
|
|
export class Attachment {
|
|
public src: string = "";
|
|
public thumbSrc: string = "";
|
|
public desc: string = "";
|
|
public createdAt: Date = new Date();
|
|
}
|
|
|
|
export default { Message, Attachment, Author } |