GET api/chat/group/{user_uid}?offset={offset}&count={count}

Get list of user's chat groups

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user_uid

integer

Required

offset

Offset of list

integer

Default value is 0

count

Count of list

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

Collection of ChatSummaryDTO
NameDescriptionTypeAdditional information
product

Product DTO

ChatSummaryProductDTO

None.

other_side

Opponent's DTO

ChatSummaryOtherSideDTO

None.

last_message_at

Last message datetime

date

None.

is_seller

user is seller

boolean

None.

is_read

user has read

boolean

None.

buyer_uid

buyer uid for this product

integer

None.

expiry_at

Product expiry datetime

date

None.

expiry_remain_day

Remaining day(s) towards to expiry date

integer

None.

current_state_uid

DEPRECIATED. current state uid.

integer

None.

state

State for chat summary

integer

None.

message_uid

last message uid

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "product": {
      "product_uid": 1,
      "product_name": "sample string 2",
      "product_thumbnail": "sample string 3"
    },
    "other_side": {
      "user_uid": 1,
      "display_name": "sample string 2",
      "user_image_url": "sample string 3"
    },
    "last_message_at": "2018-01-22T02:42:43.1352187+08:00",
    "is_seller": true,
    "is_read": true,
    "buyer_uid": 4,
    "expiry_at": "2018-01-22T02:42:43.1352187+08:00",
    "expiry_remain_day": 6,
    "current_state_uid": 7,
    "state": 8,
    "message_uid": 9
  },
  {
    "product": {
      "product_uid": 1,
      "product_name": "sample string 2",
      "product_thumbnail": "sample string 3"
    },
    "other_side": {
      "user_uid": 1,
      "display_name": "sample string 2",
      "user_image_url": "sample string 3"
    },
    "last_message_at": "2018-01-22T02:42:43.1352187+08:00",
    "is_seller": true,
    "is_read": true,
    "buyer_uid": 4,
    "expiry_at": "2018-01-22T02:42:43.1352187+08:00",
    "expiry_remain_day": 6,
    "current_state_uid": 7,
    "state": 8,
    "message_uid": 9
  }
]