GET api/Chat?pageSize={pageSize}&pageNumber={pageNumber}&from={from}&to={to}&messageStatus={messageStatus}
Get all chat messages for the negotiatorId.
Request Information
URI Parameters
Name | Description | Type | Additional 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.ChatMessageDataContractName | Description | Type | Additional 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-10-08T08:53:03.5267934Z", "MessageStatus": "sample string 3", "NegotiatorId": 4, "NegotiatorName": "sample string 5", "Comments": [ { "ChatMessageUser": { "UserId": 1, "UserName": "sample string 2" }, "Comment": "sample string 1", "DateTime": "2024-10-08T08:53:03.5267934Z" }, { "ChatMessageUser": { "UserId": 1, "UserName": "sample string 2" }, "Comment": "sample string 1", "DateTime": "2024-10-08T08:53:03.5267934Z" } ], "Recipients": [ { "UserId": 1, "UserName": "sample string 2" }, { "UserId": 1, "UserName": "sample string 2" } ] }, "sample string 2": { "Id": "sample string 1", "DateTimeCreated": "2024-10-08T08:53:03.5267934Z", "MessageStatus": "sample string 3", "NegotiatorId": 4, "NegotiatorName": "sample string 5", "Comments": [ { "ChatMessageUser": { "UserId": 1, "UserName": "sample string 2" }, "Comment": "sample string 1", "DateTime": "2024-10-08T08:53:03.5267934Z" }, { "ChatMessageUser": { "UserId": 1, "UserName": "sample string 2" }, "Comment": "sample string 1", "DateTime": "2024-10-08T08:53:03.5267934Z" } ], "Recipients": [ { "UserId": 1, "UserName": "sample string 2" }, { "UserId": 1, "UserName": "sample string 2" } ] } } }