POST api/EMPChat/openConversation

Request Information

URI Parameters

None.

Body Parameters

ChatOpenConversation
NameDescriptionTypeAdditional information
OtherEmpId

string

None.

EMP_BasicDetail_Id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OtherEmpId": "sample string 1",
  "EMP_BasicDetail_Id": "sample string 2"
}

application/xml, text/xml

Sample:
<ChatOpenConversation 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 2</EMP_BasicDetail_Id>
  <OtherEmpId>sample string 1</OtherEmpId>
</ChatOpenConversation>

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

Response Information

Resource Description

ChatOpenConversationResponse
NameDescriptionTypeAdditional information
CO

ChatConversationView

None.

StatusCode

integer

None.

status

string

None.

statusText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CO": {
    "ConversationId": "sample string 1",
    "ConversationType": 2,
    "IsGroup": true,
    "Title": "sample string 4",
    "FullName": "sample string 5",
    "OtherEmpId": "sample string 6",
    "Designation": "sample string 7",
    "ProfileImage": "sample string 8",
    "OtherIsActive": true,
    "MemberCount": 10,
    "IsAdmin": true,
    "LastMessageId": "sample string 12",
    "LastMessageType": 13,
    "LastMessageText": "sample string 14",
    "LastSenderEmpId": "sample string 15",
    "LastSenderName": "sample string 16",
    "LastMessageDate": "sample string 17",
    "UnreadCount": 18
  },
  "StatusCode": 1,
  "status": "sample string 2",
  "statusText": "sample string 3"
}

application/xml, text/xml

Sample:
<ChatOpenConversationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APCO_APP.MODAL.EmployeeModal">
  <StatusCode>1</StatusCode>
  <status>sample string 2</status>
  <statusText>sample string 3</statusText>
  <CO>
    <ConversationId>sample string 1</ConversationId>
    <ConversationType>2</ConversationType>
    <Designation>sample string 7</Designation>
    <FullName>sample string 5</FullName>
    <IsAdmin>true</IsAdmin>
    <IsGroup>true</IsGroup>
    <LastMessageDate>sample string 17</LastMessageDate>
    <LastMessageId>sample string 12</LastMessageId>
    <LastMessageText>sample string 14</LastMessageText>
    <LastMessageType>13</LastMessageType>
    <LastSenderEmpId>sample string 15</LastSenderEmpId>
    <LastSenderName>sample string 16</LastSenderName>
    <MemberCount>10</MemberCount>
    <OtherEmpId>sample string 6</OtherEmpId>
    <OtherIsActive>true</OtherIsActive>
    <ProfileImage>sample string 8</ProfileImage>
    <Title>sample string 4</Title>
    <UnreadCount>18</UnreadCount>
  </CO>
</ChatOpenConversationResponse>