POST api/Hub/SendMessage
Request Information
URI Parameters
None.
Body Parameters
HubMessageName | 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": "d0e9159c-152b-41fb-9418-8f19506c79ea", "CreateDate": "2024-09-13T05:10:09.1140428+08:00", "SendMemberId": "bd20ea7a-8c70-4d22-95c7-7c7772383ba0", "SendMemberName": "sample string 4", "Message": "sample string 5", "GroupId": "0fabaaf0-4f65-4ae4-b855-5ca16b0f0361", "MessageType": 0, "IP": "sample string 7", "IsSend": true, "SendType": 0, "ReceiveMemberId": "348456e5-9b4a-4b5a-9b5e-a0bcf70c7dfe" }
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>2024-09-13T05:10:09.1140428+08:00</CreateDate> <GroupId>0fabaaf0-4f65-4ae4-b855-5ca16b0f0361</GroupId> <IP>sample string 7</IP> <Id>d0e9159c-152b-41fb-9418-8f19506c79ea</Id> <IsSend>true</IsSend> <Message>sample string 5</Message> <MessageType>Words</MessageType> <ReceiveMemberId>348456e5-9b4a-4b5a-9b5e-a0bcf70c7dfe</ReceiveMemberId> <SendMemberId>bd20ea7a-8c70-4d22-95c7-7c7772383ba0</SendMemberId> <SendMemberName>sample string 4</SendMemberName> <SendType>Chat</SendType> </HubMessage>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ExecuteResultOfBooleanName | 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>