POST api/Hub/GetHubMessageByGroupId

Request Information

URI Parameters

None.

Body Parameters

RequestGetHubMessages
NameDescriptionTypeAdditional information
GroupId

globally unique identifier

None.

PageSize

integer

None.

PageIndex

integer

None.

KeyWord

string

None.

SortColumn

string

None.

SortType

EnumSortType

None.

ParamCollection

Dictionary of string [key] and Object [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "GroupId": "77dfe832-5148-4fdb-bc8f-4529c2e2aded",
  "PageSize": 2,
  "PageIndex": 3,
  "KeyWord": "sample string 4",
  "SortColumn": "sample string 5",
  "SortType": 0,
  "ParamCollection": {
    "sample string 1": {},
    "sample string 3": {}
  }
}

application/xml, text/xml

Sample:
<RequestGetHubMessages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Isonfor.ECommerce.Common.Entity.Request.Hub">
  <KeyWord xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">sample string 4</KeyWord>
  <PageIndex xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">3</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">2</PageSize>
  <ParamCollection xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </ParamCollection>
  <SortColumn xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">sample string 5</SortColumn>
  <SortType xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">Desc</SortType>
  <GroupId>77dfe832-5148-4fdb-bc8f-4529c2e2aded</GroupId>
</RequestGetHubMessages>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestGetHubMessages'.

Response Information

Resource Description

PagingResultOfHubMessage
NameDescriptionTypeAdditional information
PageSize

integer

None.

PageIndex

integer

None.

Records

integer

None.

TotalPages

integer

None.

PagingInfo

PagingInfo

None.

Data

Collection of HubMessage

None.

Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "PageSize": 1,
  "PageIndex": 2,
  "Records": 3,
  "TotalPages": 3,
  "PagingInfo": {
    "PageIndex": 2,
    "PageSize": 1,
    "TotalCount": 3,
    "TotalPage": 3,
    "Dics": null
  },
  "Data": [
    {
      "Id": "a9e334a4-d573-4257-9006-285b625093a0",
      "CreateDate": "2020-11-29T14:39:52.1525956+08:00",
      "SendMemberId": "8830ae9b-671f-4aa4-8490-ca0dc4424458",
      "SendMemberName": "sample string 4",
      "Message": "sample string 5",
      "GroupId": "12793dc3-f8a4-41e6-be2c-719137125469",
      "MessageType": 0,
      "IP": "sample string 7",
      "IsSend": true,
      "SendType": 0,
      "ReceiveMemberId": "52da2b60-a2c3-40da-8299-1cbc53cefb26"
    },
    {
      "Id": "a9e334a4-d573-4257-9006-285b625093a0",
      "CreateDate": "2020-11-29T14:39:52.1525956+08:00",
      "SendMemberId": "8830ae9b-671f-4aa4-8490-ca0dc4424458",
      "SendMemberName": "sample string 4",
      "Message": "sample string 5",
      "GroupId": "12793dc3-f8a4-41e6-be2c-719137125469",
      "MessageType": 0,
      "IP": "sample string 7",
      "IsSend": true,
      "SendType": 0,
      "ReceiveMemberId": "52da2b60-a2c3-40da-8299-1cbc53cefb26"
    }
  ],
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 6",
  "Code": 7,
  "StatusCode": "sample string 8",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<PagingResultOfHubMessagewQj_SqIeA xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>7</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 6</Msg>
  <StatusCode>sample string 8</StatusCode>
  <Success>true</Success>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Isonfor.ECommerce.Common.Entity.Hub">
    <d2p1:HubMessage>
      <d2p1:CreateDate>2020-11-29T14:39:52.1525956+08:00</d2p1:CreateDate>
      <d2p1:GroupId>12793dc3-f8a4-41e6-be2c-719137125469</d2p1:GroupId>
      <d2p1:IP>sample string 7</d2p1:IP>
      <d2p1:Id>a9e334a4-d573-4257-9006-285b625093a0</d2p1:Id>
      <d2p1:IsSend>true</d2p1:IsSend>
      <d2p1:Message>sample string 5</d2p1:Message>
      <d2p1:MessageType>Words</d2p1:MessageType>
      <d2p1:ReceiveMemberId>52da2b60-a2c3-40da-8299-1cbc53cefb26</d2p1:ReceiveMemberId>
      <d2p1:SendMemberId>8830ae9b-671f-4aa4-8490-ca0dc4424458</d2p1:SendMemberId>
      <d2p1:SendMemberName>sample string 4</d2p1:SendMemberName>
      <d2p1:SendType>Chat</d2p1:SendType>
    </d2p1:HubMessage>
    <d2p1:HubMessage>
      <d2p1:CreateDate>2020-11-29T14:39:52.1525956+08:00</d2p1:CreateDate>
      <d2p1:GroupId>12793dc3-f8a4-41e6-be2c-719137125469</d2p1:GroupId>
      <d2p1:IP>sample string 7</d2p1:IP>
      <d2p1:Id>a9e334a4-d573-4257-9006-285b625093a0</d2p1:Id>
      <d2p1:IsSend>true</d2p1:IsSend>
      <d2p1:Message>sample string 5</d2p1:Message>
      <d2p1:MessageType>Words</d2p1:MessageType>
      <d2p1:ReceiveMemberId>52da2b60-a2c3-40da-8299-1cbc53cefb26</d2p1:ReceiveMemberId>
      <d2p1:SendMemberId>8830ae9b-671f-4aa4-8490-ca0dc4424458</d2p1:SendMemberId>
      <d2p1:SendMemberName>sample string 4</d2p1:SendMemberName>
      <d2p1:SendType>Chat</d2p1:SendType>
    </d2p1:HubMessage>
  </Data>
  <PageIndex>2</PageIndex>
  <PageSize>1</PageSize>
  <Records>3</Records>
</PagingResultOfHubMessagewQj_SqIeA>