POST api/EMPChat/getMessages

Request Information

URI Parameters

None.

Body Parameters

ChatMessageFilter
NameDescriptionTypeAdditional information
BeforeMessageId

string

None.

AfterMessageId

string

None.

PageSize

string

None.

ConversationId

string

None.

EMP_BasicDetail_Id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BeforeMessageId": "sample string 1",
  "AfterMessageId": "sample string 2",
  "PageSize": "sample string 3",
  "ConversationId": "sample string 4",
  "EMP_BasicDetail_Id": "sample string 5"
}

application/xml, text/xml

Sample:
<ChatMessageFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APCO_APP.MODAL.EmployeeModal">
  <EMP_BasicDetail_Id>sample string 5</EMP_BasicDetail_Id>
  <ConversationId>sample string 4</ConversationId>
  <AfterMessageId>sample string 2</AfterMessageId>
  <BeforeMessageId>sample string 1</BeforeMessageId>
  <PageSize>sample string 3</PageSize>
</ChatMessageFilter>

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

Response Information

Resource Description

ChatMessageResponse
NameDescriptionTypeAdditional information
HasMore

boolean

None.

CM

Collection of ChatMessageView

None.

StatusCode

integer

None.

status

string

None.

statusText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "HasMore": true,
  "CM": [
    {
      "MessageId": "sample string 1",
      "ConversationId": "sample string 2",
      "SenderEmpId": "sample string 3",
      "SenderName": "sample string 4",
      "MessageType": 5,
      "MessageText": "sample string 6",
      "AttachmentUrl": "sample string 7",
      "AttachmentName": "sample string 8",
      "AttachmentSize": 9,
      "AttachmentMime": "sample string 10",
      "DurationSec": 11,
      "ClientMessageId": "sample string 12",
      "SentDate": "sample string 13",
      "MessageStatus": "sample string 14",
      "IsMine": true,
      "IsSystem": true
    },
    {
      "MessageId": "sample string 1",
      "ConversationId": "sample string 2",
      "SenderEmpId": "sample string 3",
      "SenderName": "sample string 4",
      "MessageType": 5,
      "MessageText": "sample string 6",
      "AttachmentUrl": "sample string 7",
      "AttachmentName": "sample string 8",
      "AttachmentSize": 9,
      "AttachmentMime": "sample string 10",
      "DurationSec": 11,
      "ClientMessageId": "sample string 12",
      "SentDate": "sample string 13",
      "MessageStatus": "sample string 14",
      "IsMine": true,
      "IsSystem": true
    }
  ],
  "StatusCode": 2,
  "status": "sample string 3",
  "statusText": "sample string 4"
}

application/xml, text/xml

Sample:
<ChatMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APCO_APP.MODAL.EmployeeModal">
  <StatusCode>2</StatusCode>
  <status>sample string 3</status>
  <statusText>sample string 4</statusText>
  <CM>
    <ChatMessageView>
      <AttachmentMime>sample string 10</AttachmentMime>
      <AttachmentName>sample string 8</AttachmentName>
      <AttachmentSize>9</AttachmentSize>
      <AttachmentUrl>sample string 7</AttachmentUrl>
      <ClientMessageId>sample string 12</ClientMessageId>
      <ConversationId>sample string 2</ConversationId>
      <DurationSec>11</DurationSec>
      <IsMine>true</IsMine>
      <IsSystem>true</IsSystem>
      <MessageId>sample string 1</MessageId>
      <MessageStatus>sample string 14</MessageStatus>
      <MessageText>sample string 6</MessageText>
      <MessageType>5</MessageType>
      <SenderEmpId>sample string 3</SenderEmpId>
      <SenderName>sample string 4</SenderName>
      <SentDate>sample string 13</SentDate>
    </ChatMessageView>
    <ChatMessageView>
      <AttachmentMime>sample string 10</AttachmentMime>
      <AttachmentName>sample string 8</AttachmentName>
      <AttachmentSize>9</AttachmentSize>
      <AttachmentUrl>sample string 7</AttachmentUrl>
      <ClientMessageId>sample string 12</ClientMessageId>
      <ConversationId>sample string 2</ConversationId>
      <DurationSec>11</DurationSec>
      <IsMine>true</IsMine>
      <IsSystem>true</IsSystem>
      <MessageId>sample string 1</MessageId>
      <MessageStatus>sample string 14</MessageStatus>
      <MessageText>sample string 6</MessageText>
      <MessageType>5</MessageType>
      <SenderEmpId>sample string 3</SenderEmpId>
      <SenderName>sample string 4</SenderName>
      <SentDate>sample string 13</SentDate>
    </ChatMessageView>
  </CM>
  <HasMore>true</HasMore>
</ChatMessageResponse>