POST Api/Service/Signal/NoticeMessage

向指定姓名组所有订阅者发送通知类消息

Request Information

URI Parameters

None.

Body Parameters

SpeedPower.Utility.Models.Service.SignalR.Notice.NoticeRequest
NameDescriptionTypeAdditional information
Names

姓名组

Collection of 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:
{
  "Names": [
    "sample string 1",
    "sample string 2"
  ],
  "CommandType": 100,
  "ClientId": "sample string 1",
  "ClientName": "sample string 2",
  "MessageType": 0,
  "Message": "sample string 3"
}

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="CommandType"

NoticeBroadcast
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ClientId"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ClientName"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="MessageType"

Text
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Message"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

向指定姓名组所有订阅者发送通知类消息

SpeedPower.Utility.Models.Helper.ResultMessage
NameDescriptionTypeAdditional 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--