POST Api/Service/Signal/SendMessages
向指定用户列表发送聊天消息
Request Information
URI Parameters
None.
Body Parameters
消息主体
SpeedPower.Utility.Models.Service.SignalR.Chat.SendMessagesName | Description | Type | Additional information |
---|---|---|---|
Names |
姓名组 |
Collection of string |
Required |
MessageType |
消息类型 |
SpeedPower.Utility.Models.Service.SignalR.Enums.MessageType |
None. |
Message |
消息内容 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "Names": [ "sample string 1", "sample string 2" ], "MessageType": 0, "Message": "sample string 1" }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Names[0]" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Names[1]" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MessageType" Text --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Message" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
向指定用户列表发送聊天消息
SpeedPower.Utility.Models.Helper.ResultMessageName | Description | Type | Additional information |
---|---|---|---|
Succeed |
操作是否成功 |
boolean |
None. |
Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Succeed": true, "Message": "sample string 2" }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Succeed" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Message" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--