GS2-Inbox Master Data Reference
Master Data Format
{
"version": "2020-03-12",
"globalMessages": [
{
"name": "[string]Global Message name",
"metadata": "[string]Metadata",
"readAcquireActions": [
{
"action": "[string]Type of action to be executed in the Acquire Action",
"request": "[string]JSON string of the request used when executing the action"
}
],
"expiresTimeSpan": {
"days": "[int]Days",
"hours": "[int]Hours",
"minutes": "[int]Minutes"
},
"messageReceptionPeriodEventId": "[string?]Message Reception Period Event ID"
}
]
}| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| version | string | ✓ | 2020-03-12 | Format version of master data | ||
| globalMessages | List<GlobalMessage> | ~ 1000 items | Global Message Global Message is a mechanism for delivering messages to all game players. Global messages can have an expiration time, and each game player can receive a Global Message by executing the process of receiving a Global Message. Unreceived Global Messages within the validity period are copied to the player’s message box. |
Model
GlobalMessage
Global Message
Global Message is a mechanism for delivering messages to all game players.
Global messages can have an expiration time, and each game player can receive a Global Message by executing the process of receiving a Global Message. Unreceived Global Messages within the validity period are copied to the player’s message box.
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| globalMessageId | string | * | ~ 1024 chars | Message GRN
to all users * Set automatically by the server | ||
| name | string | ✓ | ~ 128 chars | Global Message name Global Message-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| metadata | string | ✓ | ~ 4096 chars | Metadata Arbitrary data representing the global message content, such as a JSON string containing the message title, body text, and display parameters. When a user receives this global message, the metadata is copied to the individual message in their inbox. GS2 does not interpret this value. Maximum 4096 characters. | ||
| readAcquireActions | List<AcquireAction> | [] | 0 ~ 100 items | Read Acquire Actions The list of acquire actions to be executed when a user opens the message copied from this global message. These actions are copied along with the metadata to each user’s individual message. Up to 100 actions per global message. | ||
| expiresTimeSpan | TimeSpan | Expiration Time Span The duration from the time a user receives (copies) this global message until the copied message expires and is automatically deleted from their inbox. Specified as a combination of days, hours, and minutes. Messages are deleted regardless of read status when the expiration is reached, including any unclaimed attached rewards. | ||||
| messageReceptionPeriodEventId | string | ~ 1024 chars | Message Reception Period Event ID The GRN of a GS2-Schedule event that defines the time window during which this global message can be received (copied to users’ inboxes). Outside this period, the global message is not delivered even if a user triggers the receive global messages operation. Useful for time-limited event announcements or seasonal campaign rewards. |
TimeSpan
Time Span
Represents a duration of time as a combination of days, hours, and minutes. Used to define the expiration period for messages relative to their reception time. For example, a TimeSpan of 7 days, 0 hours, 0 minutes means the message expires exactly one week after the user receives it.
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| days | int | 0 | 0 ~ 365 | Days The number of days in this time span. Combined with hours and minutes to calculate the total duration. Maximum 365 days. | ||
| hours | int | 0 | 0 ~ 24 | Hours The number of hours in this time span. Combined with days and minutes to calculate the total duration. Maximum 24 hours. | ||
| minutes | int | 0 | 0 ~ 60 | Minutes The number of minutes in this time span. Combined with days and hours to calculate the total duration. Maximum 60 minutes. |
AcquireAction
Acquire Action
Represents a single acquire action attached to a message as a reward. Consists of an action type (e.g., add items to inventory, increase currency) and its request parameters. When a message is opened, these actions are assembled into transactions and executed to deliver the rewards to the user.