-
Notifications
You must be signed in to change notification settings - Fork 9
/
hfriend.d.ts
202 lines (164 loc) · 4 KB
/
hfriend.d.ts
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
import { HPacket } from "../../protocol/hpacket";
import { HGender } from "./hgender";
import { HRelationshipStatus } from "./hrelationshipstatus";
export class HFriend {
constructor(packet: HPacket);
constructor(packet: HPacket, categories: Map<number, string>);
/**
* Parse all friends from fragment packet
* @param packet Packet to parse from
*/
static parseFromFragment(packet: HPacket): HFriend[];
/**
* Parse all friends from update packet
* @param packet Packet to parse from
*/
static parseFromUpdate(packet: HPacket): HFriend[];
/**
* Construct fragment packets from friends with headerId
* @param friends Array of friends
* @param headerId HeaderId to assign to packet
*/
static constructFragmentPackets(friends, headerId): HPacket[];
/**
* Construct update packet from friends with headerId
* @param friends Array of friends
* @param headerId HeaderId to assign to packet
*/
static constructUpdatePacket(friends, headerId): HPacket;
/**
* Append friend to packet
* @param packet Packet to append to
*/
appendToPacket(packet: HPacket): void;
/**
* Get removed friend ids from update packet
* @param packet Packet to parse from
*/
static getRemovedFriendIdsFromUpdate(packet: HPacket): number[];
/**
* Get categories from update packet
* @param packet Packet to parse from
*/
static getCategoriesFromUpdate(packet: HPacket): Map<number, string>;
/**
* Get id of friend
*/
get id(): number;
/**
* Set id of friend
*/
set id(val: number);
/**
* Get name of friend
*/
get name(): string;
/**
* Set name of friend
*/
set name(val: string);
/**
* Get gender of friend
*/
get gender(): HGender;
/**
* Set gender of friend
*/
set gender(val: HGender);
/**
* Get online status of friend
*/
get online(): boolean;
/**
* Set online status of friend
*/
set online(val: boolean);
/**
* Get whether following is allowed for friend
*/
get followingAllowed(): boolean;
/**
* Set whether following is allowed for friend
*/
set followingAllowed(val: boolean);
/**
* Get figure string of friend
*/
get figure(): string;
/**
* Set figure string of friend
*/
set figure(val: string);
/**
* Get category id of friend
*/
get categoryId(): number;
/**
* Set category id of friend
*/
set categoryId(val: number);
/**
* Get category name of friend
*/
get categoryName(): string;
/**
* Set category name of friend
*/
set categoryName(val: string);
/**
* Get motto of friend
*/
get motto(): string;
/**
* Set motto of friend
*/
set motto(val: string);
/**
* Get real name of friend
*/
get realName(): string;
/**
* Set real name of friend
*/
set realName(val: string);
/**
* Get facebook id of friend
*/
get facebookId(): string;
/**
* Set facebook id of friend
*/
set facebookId(val: string);
/**
* Get persisted message user of friend
*/
get persistedMessageUser(): boolean;
/**
* Set persisted message user of friend
*/
set persistedMessageUser(val: boolean);
/**
* Get whether friend is a vip member
*/
get vipMember(): boolean;
/**
* Set whether friend is a vip member
*/
set vipMember(val: boolean);
/**
* Get whether friend is a pocket Habbo user
*/
get pocketHabboUser(): boolean;
/**
* Set whether friend is a pocket Habbo user
*/
set pocketHabboUser(val: boolean);
/**
* Get relationship status of friend
*/
get relationshipStatus(): HRelationshipStatus;
/**
* Set relationship status of friend
*/
set relationshipStatus(val: HRelationshipStatus);
}