-
Notifications
You must be signed in to change notification settings - Fork 9
/
hmessage.d.ts
50 lines (41 loc) · 1.13 KB
/
hmessage.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
import { HDirection } from "./hdirection";
import { HPacket } from "./hpacket";
export class HMessage {
constructor(fromString: String | string);
constructor(message: HMessage);
constructor(packet: HPacket, direction: HDirection, index: number);
/**
* Get the private parameter #index
*/
getIndex(): number;
/**
* Change the private parameter #isBlocked
* @param val Boolean value to be set to private parameter #isBlocked
*/
set blocked(val: boolean);
/**
* Get the private parameter #isBlocked
*/
get blocked(): boolean;
/**
* Get the private parameter #hPacket
*/
getPacket(): HPacket;
/**
* Get the private parameter #direction
*/
getDestination(): HDirection;
/**
* Returns whether private #hPacket is corrupted
*/
isCorrupted(): boolean;
/**
* Convert the message to a string
*/
stringify(): string;
/**
* Compare other hMessage to hMessage (compares packet, direction and index)
* @param message hMessage to compare with current hMessage
*/
equals(message: HMessage): boolean;
}