Skip to content

Instantly share code, notes, and snippets.

@erwan-lemonnier
Created November 28, 2020 04:12
Show Gist options
  • Select an option

  • Save erwan-lemonnier/d451cff03c0b36169e2ae346b0b2c69b to your computer and use it in GitHub Desktop.

Select an option

Save erwan-lemonnier/d451cff03c0b36169e2ae346b0b2c69b to your computer and use it in GitHub Desktop.

Revisions

  1. erwan-lemonnier created this gist Nov 28, 2020.
    49 changes: 49 additions & 0 deletions message-added-event.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    {
    "timestamp": "2020-11-28T04:11:40.530Z",
    "eventId": "string",
    "eventType": "MESSAGE_ADDED",
    "message": {
    "messageId": "string",
    "chatId": "string",
    "parentId": "string",
    "isRead": true,
    "type": "USER",
    "text": "string",
    "authorAvatar": "string",
    "authorName": "string",
    "authorUserId": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "epochCreated": 0
    },
    "chat": {
    "chatId": "string",
    "type": "1_ON_1",
    "title": "string",
    "activityId": "string",
    "groupId": "string",
    "isEmpty": true,
    "lastMessage": {
    "isMine": true,
    "text": "string",
    "authorName": "string",
    "authorAvatar": "string",
    "parentId": "string",
    "createdAt": "string",
    "updatedAt": "string"
    },
    "hasUnread": true,
    "owners": [
    {
    "userId": "string",
    "avatar": "string",
    "displayName": "string"
    }
    ],
    "avatars": [
    "string"
    ],
    "createdAt": "string"
    },
    "channelId": "string"
    }