POST api/Hub/SendMessage

Request Information

URI Parameters

None.

Body Parameters

HubMessage
NameDescriptionTypeAdditional 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": "0adad44a-37c6-467a-872e-4cb8b6497c88",
  "CreateDate": "2020-09-23T22:58:48.8276062+08:00",
  "SendMemberId": "dffab772-00f8-47e8-8382-47607433ffe9",
  "SendMemberName": "sample string 4",
  "Message": "sample string 5",
  "GroupId": "fb689eae-1cec-45ab-b8f2-1dd1ccc1b409",
  "MessageType": 0,
  "IP": "sample string 7",
  "IsSend": true,
  "SendType": 0,
  "ReceiveMemberId": "29cfeb97-814d-4af1-8cae-6627f3dc94a1"
}

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>2020-09-23T22:58:48.8276062+08:00</CreateDate>
  <GroupId>fb689eae-1cec-45ab-b8f2-1dd1ccc1b409</GroupId>
  <IP>sample string 7</IP>
  <Id>0adad44a-37c6-467a-872e-4cb8b6497c88</Id>
  <IsSend>true</IsSend>
  <Message>sample string 5</Message>
  <MessageType>Words</MessageType>
  <ReceiveMemberId>29cfeb97-814d-4af1-8cae-6627f3dc94a1</ReceiveMemberId>
  <SendMemberId>dffab772-00f8-47e8-8382-47607433ffe9</SendMemberId>
  <SendMemberName>sample string 4</SendMemberName>
  <SendType>Chat</SendType>
</HubMessage>

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 'HubMessage'.

Response Information

Resource Description

ExecuteResultOfBoolean
NameDescriptionTypeAdditional 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>