GET api/Chat/SendMessageToSession?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

Body Parameters

ChatMessage
NameDescriptionTypeAdditional information
Id

string

None.

MessageId

integer

None.

SendDate

date

None.

From

integer

None.

To

integer

None.

Content

string

None.

MessageContentType

integer

None.

SessionId

integer

None.

Path

string

None.

MessageType

integer

None.

Session

ChatSession

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'RTMDesktop.Data.UserInfo'. Path 'Session.Users[0].Friends'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'RTMDesktop.Data.UserInfo'. Path 'Session.Users[0].Friends'.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChatMessage'.

Response Information

Resource Description

ApiResultOfBoolean
NameDescriptionTypeAdditional information
Sucess

boolean

None.

Message

string

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Sucess": true,
  "Message": "sample string 2",
  "Data": true
}