Achievement Service Events 0.1.0 documentation
- Protobuf File Spec: achievement.proto
Published Messages (achievement)
The service publishes one of these messages below.
userAchievementUnlocked
Contains fields from event and the following payload.
Example value
{
"payload": {
"userAchievement": {
"userId": "string",
"namespace": "string",
"achievementCode": "string",
"status": 0,
"achievedAt": 0,
"statCode": "string"
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}
payload
Name | Type | Description |
---|---|---|
userAchievement | object | - |
payload.userAchievement
Name | Type | Description |
---|---|---|
userId | string | - |
namespace | string | - |
achievementCode | string | - |
status | integer | - |
achievedAt | integer | - |
statCode | string | - |
globalAchievementUnlocked
Contains fields from event and the following payload.
Example value
{
"payload": {
"globalAchievement": {
"achievementCode": "string",
"namespace": "string",
"status": 0,
"achievedAt": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}
payload
Name | Type | Description |
---|---|---|
globalAchievement | object | - |
payload.globalAchievement
Name | Type | Description |
---|---|---|
achievementCode | string | - |
namespace | string | - |
status | integer | - |
achievedAt | integer | - |
achievementRewardClaimed
Contains fields from event and the following payload.
Example value
{
"payload": {
"achievementRewardClaimed": {
"userId": "string",
"achievementCode": "string",
"namespace": "string",
"status": 0,
"achievement": 0,
"claimedAt": 0
}
},
"id": "string",
"version": 0,
"name": "string",
"namespace": "string",
"timestamp": "2019-08-24T14:15:22Z",
"clientId": "string",
"userId": "string",
"traceId": "string",
"sessionId": "string"
}
payload
Name | Type | Description |
---|---|---|
achievementRewardClaimed | object | - |
payload.achievementRewardClaimed
Name | Type | Description |
---|---|---|
userId | string | - |
achievementCode | string | - |
namespace | string | - |
status | integer | - |
achievement | integer | - |
claimedAt | integer | - |
Schemas
event
Name | Type | Description |
---|---|---|
id | string | - |
version | integer | - |
name | string | - |
namespace | string | - |
timestamp | string (date-time) | - |
clientId | string | - |
userId | string | - |
traceId | string | - |
sessionId | string | - |