Skip to content

Commit ccd3610

Browse files
authored
Change variable type for list of chats (#101)
1 parent 090b2af commit ccd3610

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ozon/chats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ type ListChatsChat struct {
5353
Chat ListChatsChatData `json:"chat"`
5454

5555
// Identifier of the first unread chat message
56-
FirstUnreadMessageId string `json:"first_unread_message_id"`
56+
FirstUnreadMessageId uint64 `json:"first_unread_message_id"`
5757

5858
// Identifier of the last message in the chat
59-
LastMessageId string `json:"last_message_id"`
59+
LastMessageId uint64 `json:"last_message_id"`
6060

6161
// Number of unread messages in the chat
6262
UnreadCount int64 `json:"unread_count"`

ozon/chats_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ func TestListChats(t *testing.T) {
3838
"chat_status": "Opened",
3939
"chat_type": "Seller_Support"
4040
},
41-
"first_unread_message_id": "3000000000118021931",
42-
"last_message_id": "30000000001280042740",
41+
"first_unread_message_id": 3000000000118021931,
42+
"last_message_id": 3000000000128004274,
4343
"unread_count": 1
4444
}
4545
],

0 commit comments

Comments
 (0)