POST api/BroadcastV770/PostChat
提交聊天
Request Information
URI Parameters
None.
Body Parameters
ZaiMieApp.WebApi.ViewModel.PostChatView| Name | Description | Type | Additional information |
|---|---|---|---|
| broadcastTopicId | integer |
None. |
|
| content | string |
None. |
|
| userInfoId | integer |
None. |
|
| replyId | integer |
None. |
|
| img | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"broadcastTopicId": 1,
"content": "sample string 2",
"userInfoId": 3,
"replyId": 4,
"img": "sample string 5"
}
application/xml, text/xml
Sample:
<PostChatView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel"> <broadcastTopicId>1</broadcastTopicId> <content>sample string 2</content> <img>sample string 5</img> <replyId>4</replyId> <userInfoId>3</userInfoId> </PostChatView>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ZaiMieApp.WebApi.ViewModel.ResultMsg| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| code | integer |
None. |
|
| addcoin |
赠送的金币 |
integer |
None. |
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"code": 2,
"addcoin": 3,
"message": "sample string 4"
}
application/xml, text/xml
Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel"> <addcoin>3</addcoin> <code>2</code> <message>sample string 4</message> <success>true</success> </ResultMsg>