-
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.
- Loading branch information
1 parent
8f5e7c4
commit ccc12b8
Showing
97 changed files
with
2,226 additions
and
589 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) 2023 Sendbird, Inc. All rights reserved. | ||
|
||
part of 'chat.dart'; | ||
|
||
extension ChatNotifications on Chat { | ||
Future<GlobalNotificationChannelSetting> | ||
getGlobalNotificationChannelSetting() async { | ||
sbLog.i(StackTrace.current); | ||
return await apiClient.send<GlobalNotificationChannelSetting>( | ||
GlobalNotificationChannelSettingGetRequest(this)); | ||
} | ||
|
||
Future<NotificationTemplateList> getNotificationTemplateListByToken( | ||
NotificationTemplateListParams params, { | ||
String? token, | ||
}) async { | ||
sbLog.i(StackTrace.current); | ||
return await apiClient | ||
.send<NotificationTemplateList>(NotificationTemplateListGetRequest( | ||
this, | ||
params, | ||
token: token, | ||
)); | ||
} | ||
|
||
Future<NotificationTemplate> getNotificationTemplate({ | ||
required String key, | ||
}) async { | ||
sbLog.i(StackTrace.current); | ||
return await apiClient | ||
.send<NotificationTemplate>(NotificationTemplateGetRequest( | ||
this, | ||
key: key, | ||
)); | ||
} | ||
} |
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
Oops, something went wrong.