GS2-Chat Master Data Reference
Reference for the master data format and the models to be imported
Master Data Format
{
"version": "2020-04-30",
"categoryModels": [
{
"category": "[int]Category",
"rejectAccessTokenPost": "[string (enum)?]Reject posts made using player access tokens"
}
]
}| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| version | string | ✓ |
2020-04-30 | Format version of master data | ||
| categoryModels | List<CategoryModel> | ~ 1000 items | Category Model Category Model defines the categories used to classify messages posted in chat rooms. Each category is identified by a numeric value, and you can configure whether posts using player access tokens are allowed or rejected per category. This enables use cases such as system-only announcement categories where only the server can post messages. |
Models
CategoryModel
Category Model
Category Model defines the categories used to classify messages posted in chat rooms. Each category is identified by a numeric value, and you can configure whether posts using player access tokens are allowed or rejected per category. This enables use cases such as system-only announcement categories where only the server can post messages.
| Type | Condition | Required | Default | Value Limits | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| categoryModelId | string | * |
~ 1024 chars | Category Model
GRN
* Set automatically by the server |
||||||||
| category | int | ✓ |
0 ~ 2147483645 | Category A numeric identifier for the message category. Messages posted with this category number will follow the rules defined in this model, such as whether player posts are allowed or rejected. |
||||||||
| rejectAccessTokenPost | string (enum) enum { “Enabled”, “Disabled” } |
Reject posts made using player access tokens When enabled, only server-side API calls (using user ID specification) can post messages in this category. This is useful for system announcements or server-generated messages that should not be posted by players directly.
|