36 lines
No EOL
970 B
TypeScript
36 lines
No EOL
970 B
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;
|
|
}
|
|
|
|
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 } |