GET api/Chat/GetChatSessions?groupCategoryId={groupCategoryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
groupCategoryId

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of LiteChatConversationSummary
NameDescriptionTypeAdditional information
ChatName

string

None.

LatestMsg

string

None.

TargetUserId

string

None.

GroupCategoryId

integer

None.

GroupId

integer

None.

UnreadCount

integer

None.

LastMsgTimeSent

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ChatName": "sample string 1",
    "LatestMsg": "sample string 2",
    "TargetUserId": "sample string 3",
    "GroupCategoryId": 4,
    "GroupId": 5,
    "UnreadCount": 6,
    "LastMsgTimeSent": "2019-11-25T19:46:50.5320064+00:00"
  },
  {
    "ChatName": "sample string 1",
    "LatestMsg": "sample string 2",
    "TargetUserId": "sample string 3",
    "GroupCategoryId": 4,
    "GroupId": 5,
    "UnreadCount": 6,
    "LastMsgTimeSent": "2019-11-25T19:46:50.5320064+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLiteChatConversationSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <LiteChatConversationSummary>
    <ChatName>sample string 1</ChatName>
    <GroupCategoryId>4</GroupCategoryId>
    <GroupId>5</GroupId>
    <LastMsgTimeSent>2019-11-25T19:46:50.5320064+00:00</LastMsgTimeSent>
    <LatestMsg>sample string 2</LatestMsg>
    <TargetUserId>sample string 3</TargetUserId>
    <UnreadCount>6</UnreadCount>
  </LiteChatConversationSummary>
  <LiteChatConversationSummary>
    <ChatName>sample string 1</ChatName>
    <GroupCategoryId>4</GroupCategoryId>
    <GroupId>5</GroupId>
    <LastMsgTimeSent>2019-11-25T19:46:50.5320064+00:00</LastMsgTimeSent>
    <LatestMsg>sample string 2</LatestMsg>
    <TargetUserId>sample string 3</TargetUserId>
    <UnreadCount>6</UnreadCount>
  </LiteChatConversationSummary>
</ArrayOfLiteChatConversationSummary>