POST Api/Service/Signal/SendMessage

向指定用户发送聊天消息

Request Information

URI Parameters

None.

Body Parameters

消息主体

SpeedPower.Utility.Models.Service.SignalR.Chat.SendMessage
NameDescriptionTypeAdditional information
Name

姓名

string

Required

MessageType

消息类型

SpeedPower.Utility.Models.Service.SignalR.Enums.MessageType

None.

Message

消息内容

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "MessageType": 0,
  "Message": "sample string 2"
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Name"

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

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

sample string 2
--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--