GET api/Chat/GetHistory?otherUserId={otherUserId}&isGroup={isGroup}&beforeTime={beforeTime}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
otherUserId

string

Required

isGroup

boolean

Required

beforeTime

date

None.

Body Parameters

None.

Response Information

Resource Description

Collection of LiteChatMessage
NameDescriptionTypeAdditional information
CreatedOn

date

None.

Id

integer

None.

Message

string

None.

UserIdFrom

string

None.

UserNameFrom

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CreatedOn": "2019-12-06T13:50:31.787247+00:00",
    "Id": 2,
    "Message": "sample string 3",
    "UserIdFrom": "sample string 4",
    "UserNameFrom": "sample string 5"
  },
  {
    "CreatedOn": "2019-12-06T13:50:31.787247+00:00",
    "Id": 2,
    "Message": "sample string 3",
    "UserIdFrom": "sample string 4",
    "UserNameFrom": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLiteChatMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <LiteChatMessage>
    <CreatedOn>2019-12-06T13:50:31.787247+00:00</CreatedOn>
    <Id>2</Id>
    <Message>sample string 3</Message>
    <UserIdFrom>sample string 4</UserIdFrom>
    <UserNameFrom>sample string 5</UserNameFrom>
  </LiteChatMessage>
  <LiteChatMessage>
    <CreatedOn>2019-12-06T13:50:31.787247+00:00</CreatedOn>
    <Id>2</Id>
    <Message>sample string 3</Message>
    <UserIdFrom>sample string 4</UserIdFrom>
    <UserNameFrom>sample string 5</UserNameFrom>
  </LiteChatMessage>
</ArrayOfLiteChatMessage>