Transaction Action of GS2-Inbox

ConsumeAction

Gs2Inbox:OpenMessageByUserId

Open message with user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
messageNamestringMessage Name
{
    "action": "Gs2Inbox:OpenMessageByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "messageName": "[string]Message Name"
    }
}
action: Gs2Inbox:OpenMessageByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  messageName: "[string]Message Name"

Gs2Inbox:DeleteMessageByUserId

Delete message by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
messageNamestringMessage Name
{
    "action": "Gs2Inbox:DeleteMessageByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "messageName": "[string]Message Name"
    }
}
action: Gs2Inbox:DeleteMessageByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  messageName: "[string]Message Name"

AcquireAction

Gs2Inbox:SendMessageByUserId

Create a new message

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
metadatastringMetadata corresponding to the content of the message
readAcquireActionsAcquireAction[]Obtain actions to be performed upon opening
expiresAtlongDatetime of ttl
expiresTimeSpanTimeSpan_Difference up to the expiration date of the message
{
    "action": "Gs2Inbox:SendMessageByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "metadata": "[string]Metadata corresponding to the content of the message",
        "readAcquireActions": [
            {
                "action": "[string]Types of actions to be performed in the stamp sheet",
                "request": "[string]JSON of request"
            }
        ],
        "expiresAt": "[long]Datetime of ttl",
        "expiresTimeSpan": {
            "days": "[int]Number of days from current time",
            "hours": "[int]Hours from current time",
            "minutes": "[int]Minutes from current time"
        }
    }
}
action: Gs2Inbox:SendMessageByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  metadata: "[string]Metadata corresponding to the content of the message"
  readAcquireActions: 
    - action: "[string]Types of actions to be performed in the stamp sheet"
      request: "[string]JSON of request"
  expiresAt: "[long]Datetime of ttl"
  expiresTimeSpan: 
    days: "[int]Number of days from current time"
    hours: "[int]Hours from current time"
    minutes: "[int]Minutes from current time"