| Package | playerio |
| Interface | public interface Message |
| Property | Defined By | ||
|---|---|---|---|
| length : int [read-only]
Gets the length of the message
| Message | ||
| type : String
The type of the message
| Message | ||
| Method | Defined By | ||
|---|---|---|---|
add(... args):void
Adds data entry to the Message object
| Message | ||
getBoolean(index:int):Boolean
Reads a Boolean from the message object at index
| Message | ||
getByteArray(index:int):ByteArray
Reads a ByteArray from the message object at index
| Message | ||
getInt(index:int):int
Reads an int from the message object at index
| Message | ||
getNumber(index:int):Number
Reads a number from the message object at index
| Message | ||
getString(index:int):String
Reads a String from the message object at index
| Message | ||
getUInt(index:int):uint
Reads an uint from the message object at index
| Message | ||
toString():String
Shows a human readable serialization of the message
| Message | ||
| length | property |
length:int [read-only] Gets the length of the message
public function get length():int| type | property |
type:StringThe type of the message
public function get type():String public function set type(value:String):void| add | () | method |
public function add(... args):voidAdds data entry to the Message object
Parameters
... args — Entries to add. Valid types are Number, int, uint, String, Boolean and ByteArray
|
message.add("This is a chat message", 3)
| getBoolean | () | method |
public function getBoolean(index:int):BooleanReads a Boolean from the message object at index
Parameters
index:int — The index of the value to be read
|
Boolean — Boolean
|
| getByteArray | () | method |
public function getByteArray(index:int):ByteArrayReads a ByteArray from the message object at index
Parameters
index:int — The index of the value to be read
|
ByteArray — ByteArray
|
| getInt | () | method |
public function getInt(index:int):intReads an int from the message object at index
Parameters
index:int — The index of the value to be read
|
int — int
|
| getNumber | () | method |
public function getNumber(index:int):NumberReads a number from the message object at index
Parameters
index:int — The index of the value to be read
|
Number — Number
|
| getString | () | method |
public function getString(index:int):StringReads a String from the message object at index
Parameters
index:int — The index of the value to be read
|
String — String
|
| getUInt | () | method |
public function getUInt(index:int):uintReads an uint from the message object at index
Parameters
index:int — The index of the value to be read
|
uint — uint
|
| toString | () | method |
public function toString():StringShows a human readable serialization of the message
ReturnsString — String
|