POST Api/Service/Signal/NoticeBroadcast
向指定公司所有订阅者发送通知类消息
Request Information
URI Parameters
None.
Body Parameters
SpeedPower.Utility.Models.Service.SignalR.Notice.BroadcastRequestName | Description | Type | Additional information |
---|---|---|---|
CompanyId |
公司标识 |
string |
Required |
CommandType |
命令标识 |
SpeedPower.Utility.Models.Service.SignalR.Enums.SignalCommandType |
Required |
ClientId |
发送端唯一标识 |
string |
Required |
ClientName |
发送端标识 |
string |
Required |
MessageType |
消息类型 |
SpeedPower.Utility.Models.Service.SignalR.Enums.MessageType |
None. |
Message |
消息内容 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "CompanyId": "sample string 1", "CommandType": 100, "ClientId": "sample string 2", "ClientName": "sample string 3", "MessageType": 0, "Message": "sample string 4" }
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CompanyId" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CommandType" NoticeBroadcast --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ClientId" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ClientName" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MessageType" Text --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Message" sample string 4 --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--