Skip to content

Commit

Permalink
Change variable type for list of chats (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pireirik authored Sep 8, 2024
1 parent 090b2af commit ccd3610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ozon/chats.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ type ListChatsChat struct {
Chat ListChatsChatData `json:"chat"`

// Identifier of the first unread chat message
FirstUnreadMessageId string `json:"first_unread_message_id"`
FirstUnreadMessageId uint64 `json:"first_unread_message_id"`

// Identifier of the last message in the chat
LastMessageId string `json:"last_message_id"`
LastMessageId uint64 `json:"last_message_id"`

// Number of unread messages in the chat
UnreadCount int64 `json:"unread_count"`
Expand Down
4 changes: 2 additions & 2 deletions ozon/chats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func TestListChats(t *testing.T) {
"chat_status": "Opened",
"chat_type": "Seller_Support"
},
"first_unread_message_id": "3000000000118021931",
"last_message_id": "30000000001280042740",
"first_unread_message_id": 3000000000118021931,
"last_message_id": 3000000000128004274,
"unread_count": 1
}
],
Expand Down

0 comments on commit ccd3610

Please sign in to comment.