Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/Interfaces
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineMessageInterface.h |
| Include | #include "Interfaces/OnlineMessageInterface.h" |
Syntax
class FOnlineMessagePayload
Remarks
Message payload that stores key value pairs for variant type data
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Convert byte array to key value data | ||
| void | FromJson
(
const FJsonObject& JsonObject |
Convert json to key/val properties | |
| void | FromJsonStr
(
const FString& JsonStr |
Convert json string to key/val properties | |
| bool | GetAttribute
(
const FString& AttrName, |
Find an attribute by name and get its value | |
| void | SetAttribute
(
const FString& AttrName, |
Set an attribute value by name | |
| void | Convert the key value data to byte array | ||
| void | ToJson
(
FJsonObject& OutJsonObject |
Convert key/val properties to json | |
| FString | ToJsonStr () |
Convert key/val properties to json str |
Constants
| Name | Description |
|---|---|
| MaxPayloadSize | Max size of buffer when serializing payloads |