GET api/chats/{categoryid}/messages?IsUnread={IsUnread}&DateFrom={DateFrom}&DateTo={DateTo}&PageIndex={PageIndex}&PageSize={PageSize}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
categoryid | string |
Required |
|
IsUnread | boolean |
None. |
|
DateFrom | date |
None. |
|
DateTo | date |
None. |
|
PageIndex | integer |
None. |
|
PageSize | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
PaginationRespModelOfChatOutputModelName | Description | Type | Additional information |
---|---|---|---|
CurrentPage | integer |
None. |
|
LastPage | integer |
None. |
|
PerPage | integer |
None. |
|
Total | integer |
None. |
|
From | integer |
None. |
|
To | integer |
None. |
|
Data | Collection of ChatOutputModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "CurrentPage": 1, "LastPage": 2, "PerPage": 3, "Total": 4, "From": 5, "To": 6, "Data": [ { "Id": "sample string 1", "Text": "sample string 2", "Url": "sample string 3", "ThumbnailUrl": "sample string 4", "PostedBy": "sample string 5", "IsPostedByAdmin": true, "DateRead": "2024-11-28T01:53:31.2117471+08:00", "IsDeleted": true, "PostByIcon": "sample string 7", "DateCreated": "2024-11-28T01:53:31.2117471+08:00", "DateModified": "2024-11-28T01:53:31.2117471+08:00", "DateDeleted": "2024-11-28T01:53:31.2117471+08:00", "CreatedBy": "sample string 8", "ModifiedBy": "sample string 9", "DeletedBy": "sample string 10", "Result": "sample string 11" }, { "Id": "sample string 1", "Text": "sample string 2", "Url": "sample string 3", "ThumbnailUrl": "sample string 4", "PostedBy": "sample string 5", "IsPostedByAdmin": true, "DateRead": "2024-11-28T01:53:31.2117471+08:00", "IsDeleted": true, "PostByIcon": "sample string 7", "DateCreated": "2024-11-28T01:53:31.2117471+08:00", "DateModified": "2024-11-28T01:53:31.2117471+08:00", "DateDeleted": "2024-11-28T01:53:31.2117471+08:00", "CreatedBy": "sample string 8", "ModifiedBy": "sample string 9", "DeletedBy": "sample string 10", "Result": "sample string 11" } ] }
application/xml, text/xml
Sample:
<PaginationRespModelOfChatOutputModelpVZiKEaY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HyperQB.ClientPropertyManagement.API.Models"> <CurrentPage>1</CurrentPage> <Data> <ChatOutputModel> <CreatedBy>sample string 8</CreatedBy> <DateCreated>2024-11-28T01:53:31.2117471+08:00</DateCreated> <DateDeleted>2024-11-28T01:53:31.2117471+08:00</DateDeleted> <DateModified>2024-11-28T01:53:31.2117471+08:00</DateModified> <DateRead>2024-11-28T01:53:31.2117471+08:00</DateRead> <DeletedBy>sample string 10</DeletedBy> <Id>sample string 1</Id> <IsDeleted>true</IsDeleted> <IsPostedByAdmin>true</IsPostedByAdmin> <ModifiedBy>sample string 9</ModifiedBy> <PostByIcon>sample string 7</PostByIcon> <PostedBy>sample string 5</PostedBy> <Result>sample string 11</Result> <Text>sample string 2</Text> <ThumbnailUrl>sample string 4</ThumbnailUrl> <Url>sample string 3</Url> </ChatOutputModel> <ChatOutputModel> <CreatedBy>sample string 8</CreatedBy> <DateCreated>2024-11-28T01:53:31.2117471+08:00</DateCreated> <DateDeleted>2024-11-28T01:53:31.2117471+08:00</DateDeleted> <DateModified>2024-11-28T01:53:31.2117471+08:00</DateModified> <DateRead>2024-11-28T01:53:31.2117471+08:00</DateRead> <DeletedBy>sample string 10</DeletedBy> <Id>sample string 1</Id> <IsDeleted>true</IsDeleted> <IsPostedByAdmin>true</IsPostedByAdmin> <ModifiedBy>sample string 9</ModifiedBy> <PostByIcon>sample string 7</PostByIcon> <PostedBy>sample string 5</PostedBy> <Result>sample string 11</Result> <Text>sample string 2</Text> <ThumbnailUrl>sample string 4</ThumbnailUrl> <Url>sample string 3</Url> </ChatOutputModel> </Data> <From>5</From> <LastPage>2</LastPage> <PerPage>3</PerPage> <To>6</To> <Total>4</Total> </PaginationRespModelOfChatOutputModelpVZiKEaY>