POST api/Chat/AddUserMessage
Request Information
URI Parameters
None.
Body Parameters
CheckUserMessageViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| MyUserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"MyUserId": 2
}
application/xml, text/xml
Sample:
<CheckUserMessageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Chatrata.MetaData.Chat"> <MyUserId>2</MyUserId> <UserId>1</UserId> </CheckUserMessageViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
FunctionResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Message | string |
None. |
|
| IsDone | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 1,
"Message": "sample string 1",
"IsDone": true
}
application/xml, text/xml
Sample:
<FunctionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Chatrata.MetaData"> <ID>1</ID> <IsDone>true</IsDone> <Message>sample string 1</Message> </FunctionResult>