forked from jabbany/CommentCoreLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommentData.ts
More file actions
41 lines (37 loc) · 934 Bytes
/
CommentData.ts
File metadata and controls
41 lines (37 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Partially Compliant CommentData Adapter
*/
class CommentData {
private _dbid = 0;
constructor(comment:Object) {
this._dbid = comment["dbid"];
this.size = comment["size"];
this.text = comment["text"];
this.mode = comment["mode"];
this.stime = comment["stime"];
this.date = comment["date"];
}
public blocked:boolean = false;
public blockType:number = 0;
public border:boolean = false;
public credit:boolean = false;
get danmuId():number {
return this._dbid;
}
public date:string = "";
public deleted:boolean = false;
public id:number = 0;
public mode:number = 0;
public msg:string = "";
public live:boolean = true;
public locked:boolean = true;
public on:boolean = true;
public pool:number = 0;
public preview:boolean = false;
public reported:boolean = false;
public size:number = 25;
public stime:number = 0;
public text:string = "";
public type:string = "";
public uid:string = "";
}