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

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

PagedDictionaryDataContractOfStringAndChatMessageDataContract
NameDescriptionTypeAdditional information
TotalCount

integer

None.

CurrentCount

integer

None.

PageSize

integer

None.

PageNumber

integer

None.

Dictionary

Dictionary of string [key] and 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": "2018-11-17T02:07:54.6341251Z",
      "MessageStatus": "sample string 3",
      "NegotiatorId": 4,
      "NegotiatorName": "sample string 5",
      "Comments": [
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2018-11-17T02:07:54.6443713Z"
        },
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2018-11-17T02:07:54.6443713Z"
        }
      ],
      "Recipients": [
        {
          "UserId": 1,
          "UserName": "sample string 2"
        },
        {
          "UserId": 1,
          "UserName": "sample string 2"
        }
      ]
    },
    "sample string 2": {
      "Id": "sample string 1",
      "DateTimeCreated": "2018-11-17T02:07:54.6341251Z",
      "MessageStatus": "sample string 3",
      "NegotiatorId": 4,
      "NegotiatorName": "sample string 5",
      "Comments": [
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2018-11-17T02:07:54.6443713Z"
        },
        {
          "ChatMessageUser": {
            "UserId": 1,
            "UserName": "sample string 2"
          },
          "Comment": "sample string 1",
          "DateTime": "2018-11-17T02:07:54.6443713Z"
        }
      ],
      "Recipients": [
        {
          "UserId": 1,
          "UserName": "sample string 2"
        },
        {
          "UserId": 1,
          "UserName": "sample string 2"
        }
      ]
    }
  }
}