GET chat/room/messages/getall/{token}/{converationid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

converationid

integer

Required

Body Parameters

None.

Response Information

Resource Description

MessagesResponseModel
NameDescriptionTypeAdditional information
data

Collection of MessagesModel

None.

meta

meta

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "conversationid": 1,
      "senderid": 2,
      "message": "sample string 3",
      "attachmenturl": "sample string 4",
      "createdon": "2020-12-29T20:31:34.5490179+00:00",
      "deletedon": "2020-12-29T20:31:34.5490179+00:00",
      "sendername": "sample string 7",
      "senderpic": "sample string 8"
    },
    {
      "conversationid": 1,
      "senderid": 2,
      "message": "sample string 3",
      "attachmenturl": "sample string 4",
      "createdon": "2020-12-29T20:31:34.5490179+00:00",
      "deletedon": "2020-12-29T20:31:34.5490179+00:00",
      "sendername": "sample string 7",
      "senderpic": "sample string 8"
    }
  ],
  "meta": {
    "code": 1,
    "detail": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<MessagesResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/connecttierWebAPI.Models">
  <data>
    <MessagesModel>
      <attachmenturl>sample string 4</attachmenturl>
      <conversationid>1</conversationid>
      <createdon>2020-12-29T20:31:34.5490179+00:00</createdon>
      <deletedon>2020-12-29T20:31:34.5490179+00:00</deletedon>
      <message>sample string 3</message>
      <senderid>2</senderid>
      <sendername>sample string 7</sendername>
      <senderpic>sample string 8</senderpic>
    </MessagesModel>
    <MessagesModel>
      <attachmenturl>sample string 4</attachmenturl>
      <conversationid>1</conversationid>
      <createdon>2020-12-29T20:31:34.5490179+00:00</createdon>
      <deletedon>2020-12-29T20:31:34.5490179+00:00</deletedon>
      <message>sample string 3</message>
      <senderid>2</senderid>
      <sendername>sample string 7</sendername>
      <senderpic>sample string 8</senderpic>
    </MessagesModel>
  </data>
  <meta>
    <code>1</code>
    <detail>sample string 2</detail>
  </meta>
</MessagesResponseModel>