-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from sendbird/v4.2.25
Add 4.2.25.
- Loading branch information
Showing
12 changed files
with
127 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
lib/src/internal/network/http/http_client/request/main/upload_notification_stat_request.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2023 Sendbird, Inc. All rights reserved. | ||
|
||
import 'package:sendbird_chat_sdk/src/internal/main/chat/chat.dart'; | ||
import 'package:sendbird_chat_sdk/src/internal/main/stats/model/base_stat.dart'; | ||
import 'package:sendbird_chat_sdk/src/internal/network/http/http_client/http_client.dart'; | ||
import 'package:sendbird_chat_sdk/src/internal/network/http/http_client/request/api_request.dart'; | ||
|
||
class UploadNotificationStatRequest extends ApiRequest { | ||
@override | ||
HttpMethod get method => HttpMethod.post; | ||
|
||
static const statUrl = 'sdk/notification_statistics'; | ||
|
||
UploadNotificationStatRequest( | ||
Chat chat, { | ||
required String deviceId, | ||
required List<BaseStat> stats, | ||
}) : super(chat: chat) { | ||
url = statUrl; | ||
body = { | ||
'device_id': deviceId, | ||
'log_entries': stats.map((stat) => stat.toJson()).toList(), | ||
}; | ||
userId = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters