Package in.dragonbra.javasteam.types
Class MessageObject
- java.lang.Object
-
- in.dragonbra.javasteam.types.MessageObject
-
- Direct Known Subclasses:
ChatMemberInfo
public class MessageObject extends java.lang.ObjectRepresents aKeyValuebacked MessageObject structure, which are often sent by the Steam servers.
-
-
Constructor Summary
Constructors Constructor Description MessageObject()Initializes a new instance of theMessageObjectclass with an empty inner KeyValues.MessageObject(KeyValue keyValues)Initializes a new instance of theMessageObjectclass, using the provided KeyValues object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreadFromStream(java.io.InputStream stream)Populates this MessageObject instance from the data inside the given stream.voidwriteToStream(java.io.OutputStream stream)Writes this MessageObject instance to the given stream.
-
-
-
Field Detail
-
keyValues
protected KeyValue keyValues
-
-
Constructor Detail
-
MessageObject
public MessageObject(KeyValue keyValues)
Initializes a new instance of theMessageObjectclass, using the provided KeyValues object.- Parameters:
keyValues- The KeyValue backing store for this message object.
-
MessageObject
public MessageObject()
Initializes a new instance of theMessageObjectclass with an empty inner KeyValues.
-
-
Method Detail
-
readFromStream
public boolean readFromStream(java.io.InputStream stream) throws java.io.IOExceptionPopulates this MessageObject instance from the data inside the given stream.- Parameters:
stream- The stream to load data from.- Returns:
- true on success; otherwise, false.
- Throws:
java.io.IOException- IO exception during reading from the stream
-
writeToStream
public void writeToStream(java.io.OutputStream stream) throws java.io.IOExceptionWrites this MessageObject instance to the given stream.- Parameters:
stream- The stream to write to.- Throws:
java.io.IOException- IO exception during writing to the stream
-
-