POST api/v1/chatv1/SendMessage
Request Information
URI Parameters
None.
Body Parameters
ChatMessageDto| Name | Description | Type | Additional information |
|---|---|---|---|
| MessageType | EnumChatMessageType |
None. |
|
| MessageContentType | EnumMessageContentType |
None. |
|
| SenderId | integer |
None. |
|
| ReceiveId | integer |
None. |
|
| Content | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"MessageType": 1,
"MessageContentType": 1,
"SenderId": 1,
"ReceiveId": 2,
"Content": "sample string 3"
}
application/xml, text/xml
Sample:
<ChatMessageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smart.Domain.Dto.Activity.Chat"> <Content>sample string 3</Content> <MessageContentType>Txt</MessageContentType> <MessageType>Service</MessageType> <ReceiveId>2</ReceiveId> <SenderId>1</SenderId> </ChatMessageDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ChatMessageResultDto| Name | Description | Type | Additional information |
|---|---|---|---|
| SendStatus | boolean |
None. |
|
| Code | integer |
None. |
|
| MsgId | integer |
None. |
|
| SenderId | integer |
None. |
|
| ReceiveId | integer |
None. |
|
| SentTimestamp | integer |
None. |
Response Formats
application/json
Sample:
Sample not available.
application/xml
Sample:
<ChatMessageResultDto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SendStatus>true</SendStatus> <Code>2</Code> <MsgId>3</MsgId> <SenderId>4</SenderId> <ReceiveId>5</ReceiveId> <SentTimestamp>6</SentTimestamp> </ChatMessageResultDto>
text/json
Sample:
{
"SendStatus": true,
"Code": 2,
"MsgId": 3,
"SenderId": 4,
"ReceiveId": 5,
"SentTimestamp": 6
}
text/xml
Sample:
<ChatMessageResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smart.Domain.Dto.Activity.Chat"> <Code>2</Code> <MsgId>3</MsgId> <ReceiveId>5</ReceiveId> <SendStatus>true</SendStatus> <SenderId>4</SenderId> <SentTimestamp>6</SentTimestamp> </ChatMessageResultDto>