POST api/Hub/SendMessage
Request Information
URI Parameters
None.
Body Parameters
HubMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| SendMemberId | globally unique identifier |
None. |
|
| SendMemberName | string |
None. |
|
| Message | string |
None. |
|
| GroupId | globally unique identifier |
None. |
|
| MessageType | HubMessageType |
None. |
|
| IP | string |
None. |
|
| IsSend | boolean |
None. |
|
| SendType | HubSendType |
None. |
|
| ReceiveMemberId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "05969bfa-faee-4cd3-9f7e-09a36d62242b",
"CreateDate": "2026-02-04T11:26:48.8730459+08:00",
"SendMemberId": "3bf9344c-260f-43b8-9de3-692b7e57d011",
"SendMemberName": "sample string 4",
"Message": "sample string 5",
"GroupId": "da8f030c-da10-4224-bc71-5a2e03b75973",
"MessageType": 0,
"IP": "sample string 7",
"IsSend": true,
"SendType": 0,
"ReceiveMemberId": "2bf65745-eb4d-489a-9722-1bfcb16313f6"
}
application/xml, text/xml
Sample:
<HubMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Isonfor.ECommerce.Common.Entity.Hub"> <CreateDate>2026-02-04T11:26:48.8730459+08:00</CreateDate> <GroupId>da8f030c-da10-4224-bc71-5a2e03b75973</GroupId> <IP>sample string 7</IP> <Id>05969bfa-faee-4cd3-9f7e-09a36d62242b</Id> <IsSend>true</IsSend> <Message>sample string 5</Message> <MessageType>Words</MessageType> <ReceiveMemberId>2bf65745-eb4d-489a-9722-1bfcb16313f6</ReceiveMemberId> <SendMemberId>3bf9344c-260f-43b8-9de3-692b7e57d011</SendMemberId> <SendMemberName>sample string 4</SendMemberName> <SendType>Chat</SendType> </HubMessage>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ExecuteResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | boolean |
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:
{
"Data": true,
"Success": true,
"IsSuccess": true,
"Msg": "sample string 4",
"Code": 5,
"StatusCode": "sample string 6",
"Errors": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
}
application/xml, text/xml
Sample:
<ExecuteResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
<Code>5</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 4</Msg>
<StatusCode>sample string 6</StatusCode>
<Success>true</Success>
<Data>true</Data>
</ExecuteResultOfboolean>