POST api/Team/SetLastViewedChatMessage

Request Information

URI Parameters

None.

Body Parameters

ChatInputModel
NameDescriptionTypeAdditional information
SessionID

string

None.

LTUID

string

None.

ChatChannelID

integer

None.

ChatMessageID

integer

None.

LastViewedLeagueMessageID

integer

None.

LastViewedLeagueMessageReplyID

integer

None.

LastViewedLeagueDirectMessageID

integer

None.

LastViewedLeagueDirectMessageReplyID

integer

None.

FirstUnviewedMessageID

integer

None.

LastMessageIDViewed

integer

None.

LastEventIDActioned

integer

None.

RecipientTeamID

integer

None.

Message

string

None.

OtherTeamID

integer

None.

Team1ID

integer

None.

Team2ID

integer

None.

ChatParticipantsSiteUserIDList

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionID": "sample string 1",
  "LTUID": "sample string 2",
  "ChatChannelID": 3,
  "ChatMessageID": 4,
  "LastViewedLeagueMessageID": 5,
  "LastViewedLeagueMessageReplyID": 6,
  "LastViewedLeagueDirectMessageID": 7,
  "LastViewedLeagueDirectMessageReplyID": 8,
  "FirstUnviewedMessageID": 9,
  "LastMessageIDViewed": 10,
  "LastEventIDActioned": 11,
  "RecipientTeamID": 12,
  "Message": "sample string 13",
  "OtherTeamID": 14,
  "Team1ID": 15,
  "Team2ID": 16,
  "ChatParticipantsSiteUserIDList": "sample string 17"
}

text/html

Sample:
{"SessionID":"sample string 1","LTUID":"sample string 2","ChatChannelID":3,"ChatMessageID":4,"LastViewedLeagueMessageID":5,"LastViewedLeagueMessageReplyID":6,"LastViewedLeagueDirectMessageID":7,"LastViewedLeagueDirectMessageReplyID":8,"FirstUnviewedMessageID":9,"LastMessageIDViewed":10,"LastEventIDActioned":11,"RecipientTeamID":12,"Message":"sample string 13","OtherTeamID":14,"Team1ID":15,"Team2ID":16,"ChatParticipantsSiteUserIDList":"sample string 17"}

application/xml, text/xml

Sample:
<ChatInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FantasyCoverage.BusinessObjects">
  <ChatChannelID>3</ChatChannelID>
  <ChatMessageID>4</ChatMessageID>
  <ChatParticipantsSiteUserIDList>sample string 17</ChatParticipantsSiteUserIDList>
  <FirstUnviewedMessageID>9</FirstUnviewedMessageID>
  <LTUID>sample string 2</LTUID>
  <LastEventIDActioned>11</LastEventIDActioned>
  <LastMessageIDViewed>10</LastMessageIDViewed>
  <LastViewedLeagueDirectMessageID>7</LastViewedLeagueDirectMessageID>
  <LastViewedLeagueDirectMessageReplyID>8</LastViewedLeagueDirectMessageReplyID>
  <LastViewedLeagueMessageID>5</LastViewedLeagueMessageID>
  <LastViewedLeagueMessageReplyID>6</LastViewedLeagueMessageReplyID>
  <Message>sample string 13</Message>
  <OtherTeamID>14</OtherTeamID>
  <RecipientTeamID>12</RecipientTeamID>
  <SessionID>sample string 1</SessionID>
  <Team1ID>15</Team1ID>
  <Team2ID>16</Team2ID>
</ChatInputModel>

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 'ChatInputModel'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
Message

string

None.

Status

boolean

None.

Data

Object

None.

ResultCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Status": true,
  "Data": {},
  "ResultCode": 4
}

text/html

Sample:
{"Message":"sample string 1","Status":true,"Data":{},"ResultCode":4}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FantasyCoverage.BusinessObjects">
  <Data />
  <Message>sample string 1</Message>
  <ResultCode>4</ResultCode>
  <Status>true</Status>
</ResponseModel>