GET api/Chat?pageSize={pageSize}&pageNumber={pageNumber}&from={from}&to={to}&messageStatus={messageStatus}

Get all chat messages for the negotiatorId.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pageSize

integer

Default value is 20

pageNumber

integer

Default value is 1

from

date

None.

to

date

None.

messageStatus

string

Default value is active

Body Parameters

None.

Response Information

Resource Description

PagedDictionaryDataContractOfSystem.StringAndDezrez.Core.DataContracts.External.Api.Chat.Query.Get.ChatMessageDataContract
NameDescriptionTypeAdditional information
TotalCount

integer

None.

CurrentCount

integer

None.

PageSize

integer

None.

PageNumber

integer

None.

Dictionary

Dictionary of string [key] and Dezrez.Core.DataContracts.External.Api.Chat.Query.Get.ChatMessageDataContract [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalCount": 1,
  "CurrentCount": 2,
  "PageSize": 3,
  "PageNumber": 4,
  "Dictionary": {
    "sample string 1": {
      "Id": "sample string 1",
      "DateTimeCreated": "2024-11-21T09:46:01.969166Z",
      "MessageStatus": "sample string 3",
      "NegotiatorId": 4,
      "NegotiatorName": "sample string 5",
      "Comments": [
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2024-11-21T09:46:01.969166Z"
        },
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2024-11-21T09:46:01.969166Z"
        }
      ],
      "Recipients": [
        {
          "UserId": 1,
          "UserName": "sample string 2"
        },
        {
          "UserId": 1,
          "UserName": "sample string 2"
        }
      ]
    },
    "sample string 2": {
      "Id": "sample string 1",
      "DateTimeCreated": "2024-11-21T09:46:01.969166Z",
      "MessageStatus": "sample string 3",
      "NegotiatorId": 4,
      "NegotiatorName": "sample string 5",
      "Comments": [
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2024-11-21T09:46:01.969166Z"
        },
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2024-11-21T09:46:01.969166Z"
        }
      ],
      "Recipients": [
        {
          "UserId": 1,
          "UserName": "sample string 2"
        },
        {
          "UserId": 1,
          "UserName": "sample string 2"
        }
      ]
    }
  }
}