diff --git a/README.md b/README.md index 35d1d58c..39a83e0a 100644 --- a/README.md +++ b/README.md @@ -29,16 +29,10 @@ class User { public void listUsers(){ try { - String token = null; Integer limit = 56; String activeMode = "activated"; Boolean showBot = true; - String userIds = null; - String nickname = null; - String nicknameStartswith = null; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); + ListUsersResponse result = apiInstance.listUsers().limit(limit).activeMode(activeMode).execute(); System.out.println(result); } catch (ApiException e) { diff --git a/api/openapi.yaml b/api/openapi.yaml index 3b1d87a9..8f230d22 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -20923,4 +20923,5 @@ components: created_at: type: number type: object +x-group-parameters: true diff --git a/build.gradle b/build.gradle index 15d1c13e..8c8ef357 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'org.sendbird' -version = '0.0.15' +version = '0.0.16' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 87a366ab..bbbcea91 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "org.sendbird", name := "sendbird-platform-sdk", - version := "0.0.15", + version := "0.0.16", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/AnnouncementApi.md b/docs/AnnouncementApi.md index c563d3e6..d1e1a149 100644 --- a/docs/AnnouncementApi.md +++ b/docs/AnnouncementApi.md @@ -17,7 +17,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## getDetailedOpenRateOfAnnouncementGroup -> GetDetailedOpenRateOfAnnouncementGroupResponse getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup) +> GetDetailedOpenRateOfAnnouncementGroupResponse getDetailedOpenRateOfAnnouncementGroup(announcementGroup).apiToken(apiToken).execute(); Get detailed open rate of an announcement group @@ -47,7 +47,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String announcementGroup = "announcementGroup_example"; // String | try { - GetDetailedOpenRateOfAnnouncementGroupResponse result = apiInstance.getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup); + GetDetailedOpenRateOfAnnouncementGroupResponse result = api.getDetailedOpenRateOfAnnouncementGroup(announcementGroup) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#getDetailedOpenRateOfAnnouncementGroup"); @@ -89,7 +91,7 @@ No authorization required ## getStatistics -> GetStatisticsResponse getStatistics(apiToken) +> GetStatisticsResponse getStatistics().apiToken(apiToken).execute(); Get statistics - weekly @@ -118,7 +120,9 @@ public class Example { AnnouncementApi apiInstance = new AnnouncementApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - GetStatisticsResponse result = apiInstance.getStatistics(apiToken); + GetStatisticsResponse result = api.getStatistics() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#getStatistics"); @@ -159,7 +163,7 @@ No authorization required ## getStatisticsDaily -> GetStatisticsDailyResponse getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, announcementGroup) +> GetStatisticsDailyResponse getStatisticsDaily().apiToken(apiToken).startDate(startDate).endDate(endDate).startWeek(startWeek).endWeek(endWeek).startMonth(startMonth).endMonth(endMonth).announcementGroup(announcementGroup).execute(); Get statistics - daily @@ -195,7 +199,16 @@ public class Example { String endMonth = "endMonth_example"; // String | String announcementGroup = "announcementGroup_example"; // String | try { - GetStatisticsDailyResponse result = apiInstance.getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, announcementGroup); + GetStatisticsDailyResponse result = api.getStatisticsDaily() + .apiToken(apiToken) + .startDate(startDate) + .endDate(endDate) + .startWeek(startWeek) + .endWeek(endWeek) + .startMonth(startMonth) + .endMonth(endMonth) + .announcementGroup(announcementGroup) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#getStatisticsDaily"); @@ -243,7 +256,7 @@ No authorization required ## getStatisticsMonthly -> GetStatisticsMonthlyResponse getStatisticsMonthly(apiToken) +> GetStatisticsMonthlyResponse getStatisticsMonthly().apiToken(apiToken).execute(); Get statistics - monthly @@ -272,7 +285,9 @@ public class Example { AnnouncementApi apiInstance = new AnnouncementApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - GetStatisticsMonthlyResponse result = apiInstance.getStatisticsMonthly(apiToken); + GetStatisticsMonthlyResponse result = api.getStatisticsMonthly() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#getStatisticsMonthly"); @@ -313,7 +328,7 @@ No authorization required ## listAnnouncementGroups -> ListAnnouncementGroupsResponse listAnnouncementGroups(apiToken, token, limit) +> ListAnnouncementGroupsResponse listAnnouncementGroups().apiToken(apiToken).token(token).limit(limit).execute(); List announcement groups @@ -344,7 +359,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListAnnouncementGroupsResponse result = apiInstance.listAnnouncementGroups(apiToken, token, limit); + ListAnnouncementGroupsResponse result = api.listAnnouncementGroups() + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#listAnnouncementGroups"); @@ -387,7 +406,7 @@ No authorization required ## scheduleAnnouncement -> ScheduleAnnouncementResponse scheduleAnnouncement(apiToken, scheduleAnnouncementData) +> ScheduleAnnouncementResponse scheduleAnnouncement().apiToken(apiToken).scheduleAnnouncementData(scheduleAnnouncementData).execute(); Schedule an announcement @@ -416,7 +435,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | ScheduleAnnouncementData scheduleAnnouncementData = new ScheduleAnnouncementData(); // ScheduleAnnouncementData | try { - ScheduleAnnouncementResponse result = apiInstance.scheduleAnnouncement(apiToken, scheduleAnnouncementData); + ScheduleAnnouncementResponse result = api.scheduleAnnouncement() + .apiToken(apiToken) + .scheduleAnnouncementData(scheduleAnnouncementData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#scheduleAnnouncement"); @@ -458,7 +480,7 @@ No authorization required ## updateAnnouncementById -> UpdateAnnouncementByIdResponse updateAnnouncementById(apiToken, uniqueId, updateAnnouncementByIdData) +> UpdateAnnouncementByIdResponse updateAnnouncementById(uniqueId).apiToken(apiToken).updateAnnouncementByIdData(updateAnnouncementByIdData).execute(); Update an announcement @@ -491,7 +513,10 @@ public class Example { String uniqueId = "uniqueId_example"; // String | UpdateAnnouncementByIdData updateAnnouncementByIdData = new UpdateAnnouncementByIdData(); // UpdateAnnouncementByIdData | try { - UpdateAnnouncementByIdResponse result = apiInstance.updateAnnouncementById(apiToken, uniqueId, updateAnnouncementByIdData); + UpdateAnnouncementByIdResponse result = api.updateAnnouncementById(uniqueId) + .apiToken(apiToken) + .updateAnnouncementByIdData(updateAnnouncementByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#updateAnnouncementById"); @@ -534,7 +559,7 @@ No authorization required ## viewAnnouncementById -> ViewAnnouncementByIdResponse viewAnnouncementById(apiToken, uniqueId) +> ViewAnnouncementByIdResponse viewAnnouncementById(uniqueId).apiToken(apiToken).execute(); View an announcement @@ -564,7 +589,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String uniqueId = "uniqueId_example"; // String | try { - ViewAnnouncementByIdResponse result = apiInstance.viewAnnouncementById(apiToken, uniqueId); + ViewAnnouncementByIdResponse result = api.viewAnnouncementById(uniqueId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnnouncementApi#viewAnnouncementById"); diff --git a/docs/ApplicationApi.md b/docs/ApplicationApi.md index 2578bf28..95838ac6 100644 --- a/docs/ApplicationApi.md +++ b/docs/ApplicationApi.md @@ -40,7 +40,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## addApnsPushConfiguration -> AddApnsPushConfigurationResponse addApnsPushConfiguration(apiToken, addApnsPushConfigurationData) +> AddApnsPushConfigurationResponse addApnsPushConfiguration().apiToken(apiToken).addApnsPushConfigurationData(addApnsPushConfigurationData).execute(); Add an APNs push configuration @@ -71,7 +71,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | AddApnsPushConfigurationData addApnsPushConfigurationData = new AddApnsPushConfigurationData(); // AddApnsPushConfigurationData | try { - AddApnsPushConfigurationResponse result = apiInstance.addApnsPushConfiguration(apiToken, addApnsPushConfigurationData); + AddApnsPushConfigurationResponse result = api.addApnsPushConfiguration() + .apiToken(apiToken) + .addApnsPushConfigurationData(addApnsPushConfigurationData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#addApnsPushConfiguration"); @@ -113,7 +116,7 @@ No authorization required ## addFcmPushConfiguration -> AddFcmPushConfigurationResponse addFcmPushConfiguration(apiToken, addFcmPushConfigurationData) +> AddFcmPushConfigurationResponse addFcmPushConfiguration().apiToken(apiToken).addFcmPushConfigurationData(addFcmPushConfigurationData).execute(); Add a FCM push configuration @@ -142,7 +145,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | AddFcmPushConfigurationData addFcmPushConfigurationData = new AddFcmPushConfigurationData(); // AddFcmPushConfigurationData | try { - AddFcmPushConfigurationResponse result = apiInstance.addFcmPushConfiguration(apiToken, addFcmPushConfigurationData); + AddFcmPushConfigurationResponse result = api.addFcmPushConfiguration() + .apiToken(apiToken) + .addFcmPushConfigurationData(addFcmPushConfigurationData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#addFcmPushConfiguration"); @@ -184,7 +190,7 @@ No authorization required ## addHmsPushConfiguration -> AddHmsPushConfigurationResponse addHmsPushConfiguration(apiToken, addHmsPushConfigurationData) +> AddHmsPushConfigurationResponse addHmsPushConfiguration().apiToken(apiToken).addHmsPushConfigurationData(addHmsPushConfigurationData).execute(); Add an HMS push configuration @@ -213,7 +219,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | AddHmsPushConfigurationData addHmsPushConfigurationData = new AddHmsPushConfigurationData(); // AddHmsPushConfigurationData | try { - AddHmsPushConfigurationResponse result = apiInstance.addHmsPushConfiguration(apiToken, addHmsPushConfigurationData); + AddHmsPushConfigurationResponse result = api.addHmsPushConfiguration() + .apiToken(apiToken) + .addHmsPushConfigurationData(addHmsPushConfigurationData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#addHmsPushConfiguration"); @@ -255,7 +264,7 @@ No authorization required ## addIpToWhitelist -> AddIpToWhitelistResponse addIpToWhitelist(apiToken, addIpToWhitelistData) +> AddIpToWhitelistResponse addIpToWhitelist().apiToken(apiToken).addIpToWhitelistData(addIpToWhitelistData).execute(); Add an IP to a whitelist @@ -284,7 +293,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | AddIpToWhitelistData addIpToWhitelistData = new AddIpToWhitelistData(); // AddIpToWhitelistData | try { - AddIpToWhitelistResponse result = apiInstance.addIpToWhitelist(apiToken, addIpToWhitelistData); + AddIpToWhitelistResponse result = api.addIpToWhitelist() + .apiToken(apiToken) + .addIpToWhitelistData(addIpToWhitelistData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#addIpToWhitelist"); @@ -326,7 +338,7 @@ No authorization required ## banUsersInChannelsWithCustomChannelType -> Object banUsersInChannelsWithCustomChannelType(apiToken, customType, banUsersInChannelsWithCustomChannelTypeData) +> Object banUsersInChannelsWithCustomChannelType(customType).apiToken(apiToken).banUsersInChannelsWithCustomChannelTypeData(banUsersInChannelsWithCustomChannelTypeData).execute(); Ban users in channels with a custom channel type @@ -352,7 +364,10 @@ public class Example { String customType = "customType_example"; // String | BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData = new BanUsersInChannelsWithCustomChannelTypeData(); // BanUsersInChannelsWithCustomChannelTypeData | try { - Object result = apiInstance.banUsersInChannelsWithCustomChannelType(apiToken, customType, banUsersInChannelsWithCustomChannelTypeData); + Object result = api.banUsersInChannelsWithCustomChannelType(customType) + .apiToken(apiToken) + .banUsersInChannelsWithCustomChannelTypeData(banUsersInChannelsWithCustomChannelTypeData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#banUsersInChannelsWithCustomChannelType"); @@ -395,7 +410,7 @@ No authorization required ## configureAutoEventMessages -> SendBirdAutoEventMessageSettings configureAutoEventMessages(apiToken, configureAutoEventData) +> SendBirdAutoEventMessageSettings configureAutoEventMessages().apiToken(apiToken).configureAutoEventData(configureAutoEventData).execute(); Configure auto event message settings @@ -425,7 +440,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | ConfigureAutoEventData configureAutoEventData = new ConfigureAutoEventData(); // ConfigureAutoEventData | try { - SendBirdAutoEventMessageSettings result = apiInstance.configureAutoEventMessages(apiToken, configureAutoEventData); + SendBirdAutoEventMessageSettings result = api.configureAutoEventMessages() + .apiToken(apiToken) + .configureAutoEventData(configureAutoEventData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#configureAutoEventMessages"); @@ -467,7 +485,7 @@ No authorization required ## deleteAllowedIpsFromWhitelist -> DeleteAllowedIpsFromWhitelistResponse deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses) +> DeleteAllowedIpsFromWhitelistResponse deleteAllowedIpsFromWhitelist().apiToken(apiToken).ipWhitelistAddresses(ipWhitelistAddresses).execute(); Delete allowed IPs from a whitelist @@ -496,7 +514,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | List ipWhitelistAddresses = Arrays.asList(); // List | try { - DeleteAllowedIpsFromWhitelistResponse result = apiInstance.deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses); + DeleteAllowedIpsFromWhitelistResponse result = api.deleteAllowedIpsFromWhitelist() + .apiToken(apiToken) + .ipWhitelistAddresses(ipWhitelistAddresses) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#deleteAllowedIpsFromWhitelist"); @@ -538,7 +559,7 @@ No authorization required ## deleteApnsCertificateById -> DeleteApnsCertificateByIdResponse deleteApnsCertificateById(apiToken, providerId) +> DeleteApnsCertificateByIdResponse deleteApnsCertificateById(providerId).apiToken(apiToken).execute(); Delete an APNs certificate @@ -568,7 +589,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String providerId = "providerId_example"; // String | try { - DeleteApnsCertificateByIdResponse result = apiInstance.deleteApnsCertificateById(apiToken, providerId); + DeleteApnsCertificateByIdResponse result = api.deleteApnsCertificateById(providerId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#deleteApnsCertificateById"); @@ -610,7 +633,7 @@ No authorization required ## generateSecondaryApiToken -> GenerateSecondaryApiTokenResponse generateSecondaryApiToken(apiToken, generateSecondaryApiTokenData) +> GenerateSecondaryApiTokenResponse generateSecondaryApiToken().apiToken(apiToken).generateSecondaryApiTokenData(generateSecondaryApiTokenData).execute(); Generate a secondary API token @@ -639,7 +662,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | GenerateSecondaryApiTokenData generateSecondaryApiTokenData = new GenerateSecondaryApiTokenData(); // GenerateSecondaryApiTokenData | try { - GenerateSecondaryApiTokenResponse result = apiInstance.generateSecondaryApiToken(apiToken, generateSecondaryApiTokenData); + GenerateSecondaryApiTokenResponse result = api.generateSecondaryApiToken() + .apiToken(apiToken) + .generateSecondaryApiTokenData(generateSecondaryApiTokenData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#generateSecondaryApiToken"); @@ -681,7 +707,7 @@ No authorization required ## listAutoEventMessages -> SendBirdAutoEventMessageSettings listAutoEventMessages(apiToken) +> SendBirdAutoEventMessageSettings listAutoEventMessages().apiToken(apiToken).execute(); List auto event messages @@ -710,7 +736,9 @@ public class Example { ApplicationApi apiInstance = new ApplicationApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - SendBirdAutoEventMessageSettings result = apiInstance.listAutoEventMessages(apiToken); + SendBirdAutoEventMessageSettings result = api.listAutoEventMessages() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#listAutoEventMessages"); @@ -751,7 +779,7 @@ No authorization required ## listBannedUsersInChannelsWithCustomChannelType -> CustomTypeListBannedUsersResponse listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, token, limit) +> CustomTypeListBannedUsersResponse listBannedUsersInChannelsWithCustomChannelType(customType).apiToken(apiToken).token(token).limit(limit).execute(); List banned users in channels with a custom channel type @@ -778,7 +806,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - CustomTypeListBannedUsersResponse result = apiInstance.listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, token, limit); + CustomTypeListBannedUsersResponse result = api.listBannedUsersInChannelsWithCustomChannelType(customType) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#listBannedUsersInChannelsWithCustomChannelType"); @@ -822,7 +854,7 @@ No authorization required ## listMutedUsersInChannelsWithCustomChannelType -> ListMutedUsersInChannelsWithCustomChannelType200Response listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, token, limit) +> ListMutedUsersInChannelsWithCustomChannelType200Response listMutedUsersInChannelsWithCustomChannelType(customType).apiToken(apiToken).token(token).limit(limit).execute(); List muted users in channels with a custom channel type @@ -849,7 +881,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListMutedUsersInChannelsWithCustomChannelType200Response result = apiInstance.listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, token, limit); + ListMutedUsersInChannelsWithCustomChannelType200Response result = api.listMutedUsersInChannelsWithCustomChannelType(customType) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#listMutedUsersInChannelsWithCustomChannelType"); @@ -893,7 +929,7 @@ No authorization required ## listPushConfigurations -> ListPushConfigurationsResponse listPushConfigurations(apiToken, pushType) +> ListPushConfigurationsResponse listPushConfigurations(pushType).apiToken(apiToken).execute(); List push configurations @@ -923,7 +959,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String pushType = "pushType_example"; // String | try { - ListPushConfigurationsResponse result = apiInstance.listPushConfigurations(apiToken, pushType); + ListPushConfigurationsResponse result = api.listPushConfigurations(pushType) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#listPushConfigurations"); @@ -965,7 +1003,7 @@ No authorization required ## listPushNotificationContentTemplates -> ListPushNotificationContentTemplatesResponse listPushNotificationContentTemplates(apiToken) +> ListPushNotificationContentTemplatesResponse listPushNotificationContentTemplates().apiToken(apiToken).execute(); List push notification content templates @@ -993,7 +1031,9 @@ public class Example { ApplicationApi apiInstance = new ApplicationApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - ListPushNotificationContentTemplatesResponse result = apiInstance.listPushNotificationContentTemplates(apiToken); + ListPushNotificationContentTemplatesResponse result = api.listPushNotificationContentTemplates() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#listPushNotificationContentTemplates"); @@ -1034,7 +1074,7 @@ No authorization required ## listSecondaryApiTokens -> ListSecondaryApiTokensResponse listSecondaryApiTokens(apiToken) +> ListSecondaryApiTokensResponse listSecondaryApiTokens().apiToken(apiToken).execute(); List secondary API tokens @@ -1062,7 +1102,9 @@ public class Example { ApplicationApi apiInstance = new ApplicationApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - ListSecondaryApiTokensResponse result = apiInstance.listSecondaryApiTokens(apiToken); + ListSecondaryApiTokensResponse result = api.listSecondaryApiTokens() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#listSecondaryApiTokens"); @@ -1103,7 +1145,7 @@ No authorization required ## muteUsersInChannelsWithCustomChannelType -> Object muteUsersInChannelsWithCustomChannelType(apiToken, customType, muteUsersInChannelsWithCustomChannelTypeData) +> Object muteUsersInChannelsWithCustomChannelType(customType).apiToken(apiToken).muteUsersInChannelsWithCustomChannelTypeData(muteUsersInChannelsWithCustomChannelTypeData).execute(); Mute users in channels with a custom channel type @@ -1129,7 +1171,10 @@ public class Example { String customType = "customType_example"; // String | MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData = new MuteUsersInChannelsWithCustomChannelTypeData(); // MuteUsersInChannelsWithCustomChannelTypeData | try { - Object result = apiInstance.muteUsersInChannelsWithCustomChannelType(apiToken, customType, muteUsersInChannelsWithCustomChannelTypeData); + Object result = api.muteUsersInChannelsWithCustomChannelType(customType) + .apiToken(apiToken) + .muteUsersInChannelsWithCustomChannelTypeData(muteUsersInChannelsWithCustomChannelTypeData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#muteUsersInChannelsWithCustomChannelType"); @@ -1172,7 +1217,7 @@ No authorization required ## removePushConfigurationById -> RemovePushConfigurationByIdResponse removePushConfigurationById(apiToken, pushType, providerId) +> RemovePushConfigurationByIdResponse removePushConfigurationById(pushType, providerId).apiToken(apiToken).execute(); Remove a push configuration @@ -1203,7 +1248,9 @@ public class Example { String pushType = "pushType_example"; // String | String providerId = "providerId_example"; // String | try { - RemovePushConfigurationByIdResponse result = apiInstance.removePushConfigurationById(apiToken, pushType, providerId); + RemovePushConfigurationByIdResponse result = api.removePushConfigurationById(pushType, providerId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#removePushConfigurationById"); @@ -1246,7 +1293,7 @@ No authorization required ## retrieveIpWhitelist -> RetrieveIpWhitelistResponse retrieveIpWhitelist(apiToken) +> RetrieveIpWhitelistResponse retrieveIpWhitelist().apiToken(apiToken).execute(); Retrieve an IP whitelist @@ -1276,7 +1323,9 @@ public class Example { ApplicationApi apiInstance = new ApplicationApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - RetrieveIpWhitelistResponse result = apiInstance.retrieveIpWhitelist(apiToken); + RetrieveIpWhitelistResponse result = api.retrieveIpWhitelist() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#retrieveIpWhitelist"); @@ -1317,7 +1366,7 @@ No authorization required ## revokeSecondaryApiTokenByToken -> RevokeSecondaryApiTokenByTokenResponse revokeSecondaryApiTokenByToken(apiToken, apiToken2) +> RevokeSecondaryApiTokenByTokenResponse revokeSecondaryApiTokenByToken(apiToken2).apiToken(apiToken).execute(); Revoke a secondary API token @@ -1346,7 +1395,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String apiToken2 = "apiToken_example"; // String | try { - RevokeSecondaryApiTokenByTokenResponse result = apiInstance.revokeSecondaryApiTokenByToken(apiToken, apiToken2); + RevokeSecondaryApiTokenByTokenResponse result = api.revokeSecondaryApiTokenByToken(apiToken2) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#revokeSecondaryApiTokenByToken"); @@ -1388,7 +1439,7 @@ No authorization required ## setDomainFilter -> SendBirdChannelResponse setDomainFilter(apiToken, customType, setDomainFilterData) +> SendBirdChannelResponse setDomainFilter(customType).apiToken(apiToken).setDomainFilterData(setDomainFilterData).execute(); Message moderation @@ -1414,7 +1465,10 @@ public class Example { String customType = "customType_example"; // String | SetDomainFilterData setDomainFilterData = new SetDomainFilterData(); // SetDomainFilterData | try { - SendBirdChannelResponse result = apiInstance.setDomainFilter(apiToken, customType, setDomainFilterData); + SendBirdChannelResponse result = api.setDomainFilter(customType) + .apiToken(apiToken) + .setDomainFilterData(setDomainFilterData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#setDomainFilter"); @@ -1457,7 +1511,7 @@ No authorization required ## unbanUsersInChannelsWithCustomChannelType -> Object unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) +> Object unbanUsersInChannelsWithCustomChannelType(customType).apiToken(apiToken).userIds(userIds).execute(); Unban users in channels with a custom channel type @@ -1483,7 +1537,10 @@ public class Example { String customType = "customType_example"; // String | List userIds = Arrays.asList(); // List | try { - Object result = apiInstance.unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds); + Object result = api.unbanUsersInChannelsWithCustomChannelType(customType) + .apiToken(apiToken) + .userIds(userIds) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#unbanUsersInChannelsWithCustomChannelType"); @@ -1526,7 +1583,7 @@ No authorization required ## unmuteUsersInChannelsWithCustomChannelType -> Object unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) +> Object unmuteUsersInChannelsWithCustomChannelType(customType).apiToken(apiToken).userIds(userIds).execute(); Unmute users in channels with a custom channel type @@ -1552,7 +1609,10 @@ public class Example { String customType = "customType_example"; // String | List userIds = Arrays.asList(); // List | try { - Object result = apiInstance.unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds); + Object result = api.unmuteUsersInChannelsWithCustomChannelType(customType) + .apiToken(apiToken) + .userIds(userIds) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#unmuteUsersInChannelsWithCustomChannelType"); @@ -1595,7 +1655,7 @@ No authorization required ## updateApnsPushConfigurationById -> UpdateApnsPushConfigurationByIdResponse updateApnsPushConfigurationById(apiToken, providerId, updateApnsPushConfigurationByIdData) +> UpdateApnsPushConfigurationByIdResponse updateApnsPushConfigurationById(providerId).apiToken(apiToken).updateApnsPushConfigurationByIdData(updateApnsPushConfigurationByIdData).execute(); Update an APNs push configuration @@ -1628,7 +1688,10 @@ public class Example { String providerId = "providerId_example"; // String | UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData = new UpdateApnsPushConfigurationByIdData(); // UpdateApnsPushConfigurationByIdData | try { - UpdateApnsPushConfigurationByIdResponse result = apiInstance.updateApnsPushConfigurationById(apiToken, providerId, updateApnsPushConfigurationByIdData); + UpdateApnsPushConfigurationByIdResponse result = api.updateApnsPushConfigurationById(providerId) + .apiToken(apiToken) + .updateApnsPushConfigurationByIdData(updateApnsPushConfigurationByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#updateApnsPushConfigurationById"); @@ -1671,7 +1734,7 @@ No authorization required ## updateDefaultChannelInvitationPreference -> UpdateDefaultChannelInvitationPreferenceResponse updateDefaultChannelInvitationPreference(apiToken, updateDefaultChannelInvitationPreferenceData) +> UpdateDefaultChannelInvitationPreferenceResponse updateDefaultChannelInvitationPreference().apiToken(apiToken).updateDefaultChannelInvitationPreferenceData(updateDefaultChannelInvitationPreferenceData).execute(); Update default channel invitation preference @@ -1702,7 +1765,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData = new UpdateDefaultChannelInvitationPreferenceData(); // UpdateDefaultChannelInvitationPreferenceData | try { - UpdateDefaultChannelInvitationPreferenceResponse result = apiInstance.updateDefaultChannelInvitationPreference(apiToken, updateDefaultChannelInvitationPreferenceData); + UpdateDefaultChannelInvitationPreferenceResponse result = api.updateDefaultChannelInvitationPreference() + .apiToken(apiToken) + .updateDefaultChannelInvitationPreferenceData(updateDefaultChannelInvitationPreferenceData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#updateDefaultChannelInvitationPreference"); @@ -1744,7 +1810,7 @@ No authorization required ## updateFcmPushConfigurationById -> UpdateFcmPushConfigurationByIdResponse updateFcmPushConfigurationById(apiToken, providerId, updateFcmPushConfigurationByIdData) +> UpdateFcmPushConfigurationByIdResponse updateFcmPushConfigurationById(providerId).apiToken(apiToken).updateFcmPushConfigurationByIdData(updateFcmPushConfigurationByIdData).execute(); Update a FCM push configuration @@ -1775,7 +1841,10 @@ public class Example { String providerId = "providerId_example"; // String | UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData = new UpdateFcmPushConfigurationByIdData(); // UpdateFcmPushConfigurationByIdData | try { - UpdateFcmPushConfigurationByIdResponse result = apiInstance.updateFcmPushConfigurationById(apiToken, providerId, updateFcmPushConfigurationByIdData); + UpdateFcmPushConfigurationByIdResponse result = api.updateFcmPushConfigurationById(providerId) + .apiToken(apiToken) + .updateFcmPushConfigurationByIdData(updateFcmPushConfigurationByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#updateFcmPushConfigurationById"); @@ -1818,7 +1887,7 @@ No authorization required ## updateHmsPushConfigurationById -> UpdateHmsPushConfigurationByIdResponse updateHmsPushConfigurationById(apiToken, providerId, updateHmsPushConfigurationByIdData) +> UpdateHmsPushConfigurationByIdResponse updateHmsPushConfigurationById(providerId).apiToken(apiToken).updateHmsPushConfigurationByIdData(updateHmsPushConfigurationByIdData).execute(); Update an HMS push configuration @@ -1849,7 +1918,10 @@ public class Example { String providerId = "providerId_example"; // String | UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData = new UpdateHmsPushConfigurationByIdData(); // UpdateHmsPushConfigurationByIdData | try { - UpdateHmsPushConfigurationByIdResponse result = apiInstance.updateHmsPushConfigurationById(apiToken, providerId, updateHmsPushConfigurationByIdData); + UpdateHmsPushConfigurationByIdResponse result = api.updateHmsPushConfigurationById(providerId) + .apiToken(apiToken) + .updateHmsPushConfigurationByIdData(updateHmsPushConfigurationByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#updateHmsPushConfigurationById"); @@ -1892,7 +1964,7 @@ No authorization required ## updatePushNotificationContentTemplate -> UpdatePushNotificationContentTemplateResponse updatePushNotificationContentTemplate(apiToken, templateName, updatePushNotificationContentTemplateData) +> UpdatePushNotificationContentTemplateResponse updatePushNotificationContentTemplate(templateName).apiToken(apiToken).updatePushNotificationContentTemplateData(updatePushNotificationContentTemplateData).execute(); Update a push notification content template @@ -1923,7 +1995,10 @@ public class Example { String templateName = "templateName_example"; // String | UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData = new UpdatePushNotificationContentTemplateData(); // UpdatePushNotificationContentTemplateData | try { - UpdatePushNotificationContentTemplateResponse result = apiInstance.updatePushNotificationContentTemplate(apiToken, templateName, updatePushNotificationContentTemplateData); + UpdatePushNotificationContentTemplateResponse result = api.updatePushNotificationContentTemplate(templateName) + .apiToken(apiToken) + .updatePushNotificationContentTemplateData(updatePushNotificationContentTemplateData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#updatePushNotificationContentTemplate"); @@ -1966,7 +2041,7 @@ No authorization required ## viewDefaultChannelInvitationPreference -> ViewDefaultChannelInvitationPreferenceResponse viewDefaultChannelInvitationPreference(apiToken) +> ViewDefaultChannelInvitationPreferenceResponse viewDefaultChannelInvitationPreference().apiToken(apiToken).execute(); View default channel invitation preference @@ -1996,7 +2071,9 @@ public class Example { ApplicationApi apiInstance = new ApplicationApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - ViewDefaultChannelInvitationPreferenceResponse result = apiInstance.viewDefaultChannelInvitationPreference(apiToken); + ViewDefaultChannelInvitationPreferenceResponse result = api.viewDefaultChannelInvitationPreference() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#viewDefaultChannelInvitationPreference"); @@ -2037,7 +2114,7 @@ No authorization required ## viewPushConfigurationById -> ViewPushConfigurationByIdResponse viewPushConfigurationById(apiToken, pushType, providerId) +> ViewPushConfigurationByIdResponse viewPushConfigurationById(pushType, providerId).apiToken(apiToken).execute(); View a push configuration @@ -2068,7 +2145,9 @@ public class Example { String pushType = "pushType_example"; // String | String providerId = "providerId_example"; // String | try { - ViewPushConfigurationByIdResponse result = apiInstance.viewPushConfigurationById(apiToken, pushType, providerId); + ViewPushConfigurationByIdResponse result = api.viewPushConfigurationById(pushType, providerId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#viewPushConfigurationById"); @@ -2111,7 +2190,7 @@ No authorization required ## viewPushNotificationContentTemplate -> ViewPushNotificationContentTemplateResponse viewPushNotificationContentTemplate(apiToken, templateName) +> ViewPushNotificationContentTemplateResponse viewPushNotificationContentTemplate(templateName).apiToken(apiToken).execute(); View a push notification content template @@ -2141,7 +2220,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String templateName = "templateName_example"; // String | try { - ViewPushNotificationContentTemplateResponse result = apiInstance.viewPushNotificationContentTemplate(apiToken, templateName); + ViewPushNotificationContentTemplateResponse result = api.viewPushNotificationContentTemplate(templateName) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#viewPushNotificationContentTemplate"); @@ -2183,7 +2264,7 @@ No authorization required ## viewSecondaryApiTokenByToken -> ViewSecondaryApiTokenByTokenResponse viewSecondaryApiTokenByToken(apiToken, apiToken2) +> ViewSecondaryApiTokenByTokenResponse viewSecondaryApiTokenByToken(apiToken2).apiToken(apiToken).execute(); View a secondary API token @@ -2212,7 +2293,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String apiToken2 = "apiToken_example"; // String | try { - ViewSecondaryApiTokenByTokenResponse result = apiInstance.viewSecondaryApiTokenByToken(apiToken, apiToken2); + ViewSecondaryApiTokenByTokenResponse result = api.viewSecondaryApiTokenByToken(apiToken2) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApplicationApi#viewSecondaryApiTokenByToken"); diff --git a/docs/BotApi.md b/docs/BotApi.md index 9334e3ca..0140daa1 100644 --- a/docs/BotApi.md +++ b/docs/BotApi.md @@ -18,7 +18,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## createBot -> CreateBotResponse createBot(apiToken, createBotData) +> CreateBotResponse createBot().apiToken(apiToken).createBotData(createBotData).execute(); Create a bot @@ -49,7 +49,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | CreateBotData createBotData = new CreateBotData(); // CreateBotData | try { - CreateBotResponse result = apiInstance.createBot(apiToken, createBotData); + CreateBotResponse result = api.createBot() + .apiToken(apiToken) + .createBotData(createBotData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#createBot"); @@ -91,7 +94,7 @@ No authorization required ## deleteBotById -> Object deleteBotById(apiToken, botUserid) +> Object deleteBotById(botUserid).apiToken(apiToken).execute(); Delete a bot @@ -121,7 +124,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String botUserid = "botUserid_example"; // String | try { - Object result = apiInstance.deleteBotById(apiToken, botUserid); + Object result = api.deleteBotById(botUserid) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#deleteBotById"); @@ -163,7 +168,7 @@ No authorization required ## joinChannels -> JoinChannelsResponse joinChannels(apiToken, botUserid, joinChannelsData) +> JoinChannelsResponse joinChannels(botUserid).apiToken(apiToken).joinChannelsData(joinChannelsData).execute(); Join channels @@ -194,7 +199,10 @@ public class Example { String botUserid = "botUserid_example"; // String | JoinChannelsData joinChannelsData = new JoinChannelsData(); // JoinChannelsData | try { - JoinChannelsResponse result = apiInstance.joinChannels(apiToken, botUserid, joinChannelsData); + JoinChannelsResponse result = api.joinChannels(botUserid) + .apiToken(apiToken) + .joinChannelsData(joinChannelsData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#joinChannels"); @@ -237,7 +245,7 @@ No authorization required ## leaveChannels -> leaveChannels(apiToken, botUserid, channelUrl) +> leaveChannels(botUserid).apiToken(apiToken).channelUrl(channelUrl).execute(); Leave channels - When leaving all channels @@ -268,7 +276,10 @@ public class Example { String botUserid = "botUserid_example"; // String | String channelUrl = "channelUrl_example"; // String | try { - apiInstance.leaveChannels(apiToken, botUserid, channelUrl); + api.leaveChannels(botUserid) + .apiToken(apiToken) + .channelUrl(channelUrl) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling BotApi#leaveChannels"); System.err.println("Status code: " + e.getCode()); @@ -310,7 +321,7 @@ No authorization required ## leaveChannelsByUrl -> Object leaveChannelsByUrl(apiToken, botUserid, channelUrl) +> Object leaveChannelsByUrl(botUserid, channelUrl).apiToken(apiToken).execute(); Leave channels - When leaving a channel by its channel URL @@ -341,7 +352,9 @@ public class Example { String botUserid = "botUserid_example"; // String | String channelUrl = "channelUrl_example"; // String | try { - Object result = apiInstance.leaveChannelsByUrl(apiToken, botUserid, channelUrl); + Object result = api.leaveChannelsByUrl(botUserid, channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#leaveChannelsByUrl"); @@ -384,7 +397,7 @@ No authorization required ## listBots -> ListBotsResponse listBots(apiToken, token, limit) +> ListBotsResponse listBots().apiToken(apiToken).token(token).limit(limit).execute(); List bots @@ -415,7 +428,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListBotsResponse result = apiInstance.listBots(apiToken, token, limit); + ListBotsResponse result = api.listBots() + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#listBots"); @@ -458,7 +475,7 @@ No authorization required ## sendBotsMessage -> SendBirdMessageResponse sendBotsMessage(apiToken, botUserid, sendBotSMessageData) +> SendBirdMessageResponse sendBotsMessage(botUserid).apiToken(apiToken).sendBotSMessageData(sendBotSMessageData).execute(); Send a bot's message @@ -493,7 +510,10 @@ public class Example { String botUserid = "botUserid_example"; // String | SendBotSMessageData sendBotSMessageData = new SendBotSMessageData(); // SendBotSMessageData | try { - SendBirdMessageResponse result = apiInstance.sendBotsMessage(apiToken, botUserid, sendBotSMessageData); + SendBirdMessageResponse result = api.sendBotsMessage(botUserid) + .apiToken(apiToken) + .sendBotSMessageData(sendBotSMessageData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#sendBotsMessage"); @@ -536,7 +556,7 @@ No authorization required ## updateBotById -> UpdateBotByIdResponse updateBotById(apiToken, botUserid, updateBotByIdData) +> UpdateBotByIdResponse updateBotById(botUserid).apiToken(apiToken).updateBotByIdData(updateBotByIdData).execute(); Update a bot @@ -567,7 +587,10 @@ public class Example { String botUserid = "botUserid_example"; // String | UpdateBotByIdData updateBotByIdData = new UpdateBotByIdData(); // UpdateBotByIdData | try { - UpdateBotByIdResponse result = apiInstance.updateBotById(apiToken, botUserid, updateBotByIdData); + UpdateBotByIdResponse result = api.updateBotById(botUserid) + .apiToken(apiToken) + .updateBotByIdData(updateBotByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#updateBotById"); @@ -610,7 +633,7 @@ No authorization required ## viewBotById -> ViewBotByIdResponse viewBotById(apiToken, botUserid) +> ViewBotByIdResponse viewBotById(botUserid).apiToken(apiToken).execute(); View a bot @@ -640,7 +663,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String botUserid = "botUserid_example"; // String | try { - ViewBotByIdResponse result = apiInstance.viewBotById(apiToken, botUserid); + ViewBotByIdResponse result = api.viewBotById(botUserid) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BotApi#viewBotById"); diff --git a/docs/DataExportApi.md b/docs/DataExportApi.md index f241eae3..8d6b0ff9 100644 --- a/docs/DataExportApi.md +++ b/docs/DataExportApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## listDataExportsByMessageChannelOrUser -> ListDataExportsByMessageChannelOrUserResponse listDataExportsByMessageChannelOrUser(apiToken, dataType, token, limit) +> ListDataExportsByMessageChannelOrUserResponse listDataExportsByMessageChannelOrUser(dataType).apiToken(apiToken).token(token).limit(limit).execute(); List data exports by message, channel, or user @@ -48,7 +48,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListDataExportsByMessageChannelOrUserResponse result = apiInstance.listDataExportsByMessageChannelOrUser(apiToken, dataType, token, limit); + ListDataExportsByMessageChannelOrUserResponse result = api.listDataExportsByMessageChannelOrUser(dataType) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DataExportApi#listDataExportsByMessageChannelOrUser"); @@ -92,7 +96,7 @@ No authorization required ## registerAndScheduleDataExport -> RegisterAndScheduleDataExportResponse registerAndScheduleDataExport(apiToken, dataType, registerAndScheduleDataExportData) +> RegisterAndScheduleDataExportResponse registerAndScheduleDataExport(dataType).apiToken(apiToken).registerAndScheduleDataExportData(registerAndScheduleDataExportData).execute(); Register and schedule a data export @@ -123,7 +127,10 @@ public class Example { String dataType = "dataType_example"; // String | RegisterAndScheduleDataExportData registerAndScheduleDataExportData = new RegisterAndScheduleDataExportData(); // RegisterAndScheduleDataExportData | try { - RegisterAndScheduleDataExportResponse result = apiInstance.registerAndScheduleDataExport(apiToken, dataType, registerAndScheduleDataExportData); + RegisterAndScheduleDataExportResponse result = api.registerAndScheduleDataExport(dataType) + .apiToken(apiToken) + .registerAndScheduleDataExportData(registerAndScheduleDataExportData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DataExportApi#registerAndScheduleDataExport"); @@ -166,7 +173,7 @@ No authorization required ## viewDataExportById -> ViewDataExportByIdResponse viewDataExportById(apiToken, dataType, requestId) +> ViewDataExportByIdResponse viewDataExportById(dataType, requestId).apiToken(apiToken).execute(); View a data export @@ -204,7 +211,9 @@ public class Example { String dataType = "dataType_example"; // String | String requestId = "requestId_example"; // String | try { - ViewDataExportByIdResponse result = apiInstance.viewDataExportById(apiToken, dataType, requestId); + ViewDataExportByIdResponse result = api.viewDataExportById(dataType, requestId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DataExportApi#viewDataExportById"); diff --git a/docs/GroupChannelApi.md b/docs/GroupChannelApi.md index f39073b0..7b8a8b1c 100644 --- a/docs/GroupChannelApi.md +++ b/docs/GroupChannelApi.md @@ -27,7 +27,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## gcAcceptInvitation -> SendBirdGroupChannel gcAcceptInvitation(apiToken, channelUrl, gcAcceptInvitationData) +> SendBirdGroupChannel gcAcceptInvitation(channelUrl).apiToken(apiToken).gcAcceptInvitationData(gcAcceptInvitationData).execute(); Accept an invitation @@ -60,7 +60,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcAcceptInvitationData gcAcceptInvitationData = new GcAcceptInvitationData(); // GcAcceptInvitationData | try { - SendBirdGroupChannel result = apiInstance.gcAcceptInvitation(apiToken, channelUrl, gcAcceptInvitationData); + SendBirdGroupChannel result = api.gcAcceptInvitation(channelUrl) + .apiToken(apiToken) + .gcAcceptInvitationData(gcAcceptInvitationData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcAcceptInvitation"); @@ -103,7 +106,7 @@ No authorization required ## gcCancelTheRegistrationOfOperators -> OcDeleteChannelByUrl200Response gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, deleteAll) +> OcDeleteChannelByUrl200Response gcCancelTheRegistrationOfOperators(channelUrl).apiToken(apiToken).operatorIds(operatorIds).deleteAll(deleteAll).execute(); Cancel the registration of operators @@ -139,7 +142,11 @@ public class Example { List operatorIds = Arrays.asList(); // List | Boolean deleteAll = true; // Boolean | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, deleteAll); + OcDeleteChannelByUrl200Response result = api.gcCancelTheRegistrationOfOperators(channelUrl) + .apiToken(apiToken) + .operatorIds(operatorIds) + .deleteAll(deleteAll) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcCancelTheRegistrationOfOperators"); @@ -183,7 +190,7 @@ No authorization required ## gcCheckIfMemberById -> GcCheckIfMemberByIdResponse gcCheckIfMemberById(apiToken, channelUrl, userId) +> GcCheckIfMemberByIdResponse gcCheckIfMemberById(channelUrl, userId).apiToken(apiToken).execute(); Check if member @@ -214,7 +221,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String userId = "userId_example"; // String | try { - GcCheckIfMemberByIdResponse result = apiInstance.gcCheckIfMemberById(apiToken, channelUrl, userId); + GcCheckIfMemberByIdResponse result = api.gcCheckIfMemberById(channelUrl, userId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcCheckIfMemberById"); @@ -257,7 +266,7 @@ No authorization required ## gcCreateChannel -> SendBirdGroupChannel gcCreateChannel(apiToken, gcCreateChannelData) +> SendBirdGroupChannel gcCreateChannel().apiToken(apiToken).gcCreateChannelData(gcCreateChannelData).execute(); Create a channel @@ -288,7 +297,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); // GcCreateChannelData | try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); + SendBirdGroupChannel result = api.gcCreateChannel() + .apiToken(apiToken) + .gcCreateChannelData(gcCreateChannelData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); @@ -330,7 +342,7 @@ No authorization required ## gcDeclineInvitation -> OcDeleteChannelByUrl200Response gcDeclineInvitation(apiToken, channelUrl, gcDeclineInvitationData) +> OcDeleteChannelByUrl200Response gcDeclineInvitation(channelUrl).apiToken(apiToken).gcDeclineInvitationData(gcDeclineInvitationData).execute(); Decline an invitation @@ -363,7 +375,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcDeclineInvitationData gcDeclineInvitationData = new GcDeclineInvitationData(); // GcDeclineInvitationData | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcDeclineInvitation(apiToken, channelUrl, gcDeclineInvitationData); + OcDeleteChannelByUrl200Response result = api.gcDeclineInvitation(channelUrl) + .apiToken(apiToken) + .gcDeclineInvitationData(gcDeclineInvitationData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcDeclineInvitation"); @@ -406,7 +421,7 @@ No authorization required ## gcDeleteChannelByUrl -> OcDeleteChannelByUrl200Response gcDeleteChannelByUrl(apiToken, channelUrl) +> OcDeleteChannelByUrl200Response gcDeleteChannelByUrl(channelUrl).apiToken(apiToken).execute(); Delete a channel @@ -436,7 +451,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String channelUrl = "channelUrl_example"; // String | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(apiToken, channelUrl); + OcDeleteChannelByUrl200Response result = api.gcDeleteChannelByUrl(channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcDeleteChannelByUrl"); @@ -478,7 +495,7 @@ No authorization required ## gcHideOrArchiveChannel -> OcDeleteChannelByUrl200Response gcHideOrArchiveChannel(apiToken, channelUrl, gcHideOrArchiveChannelData) +> OcDeleteChannelByUrl200Response gcHideOrArchiveChannel(channelUrl).apiToken(apiToken).gcHideOrArchiveChannelData(gcHideOrArchiveChannelData).execute(); Hide or archive a channel @@ -511,7 +528,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcHideOrArchiveChannelData gcHideOrArchiveChannelData = new GcHideOrArchiveChannelData(); // GcHideOrArchiveChannelData | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcHideOrArchiveChannel(apiToken, channelUrl, gcHideOrArchiveChannelData); + OcDeleteChannelByUrl200Response result = api.gcHideOrArchiveChannel(channelUrl) + .apiToken(apiToken) + .gcHideOrArchiveChannelData(gcHideOrArchiveChannelData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcHideOrArchiveChannel"); @@ -554,7 +574,7 @@ No authorization required ## gcInviteAsMembers -> SendBirdGroupChannel gcInviteAsMembers(apiToken, channelUrl, gcInviteAsMembersData) +> SendBirdGroupChannel gcInviteAsMembers(channelUrl).apiToken(apiToken).gcInviteAsMembersData(gcInviteAsMembersData).execute(); Invite as members @@ -587,7 +607,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcInviteAsMembersData gcInviteAsMembersData = new GcInviteAsMembersData(); // GcInviteAsMembersData | try { - SendBirdGroupChannel result = apiInstance.gcInviteAsMembers(apiToken, channelUrl, gcInviteAsMembersData); + SendBirdGroupChannel result = api.gcInviteAsMembers(channelUrl) + .apiToken(apiToken) + .gcInviteAsMembersData(gcInviteAsMembersData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcInviteAsMembers"); @@ -630,7 +653,7 @@ No authorization required ## gcJoinChannel -> gcJoinChannel(apiToken, channelUrl, gcJoinChannelData) +> gcJoinChannel(channelUrl).apiToken(apiToken).gcJoinChannelData(gcJoinChannelData).execute(); Join a channel @@ -663,7 +686,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcJoinChannelData gcJoinChannelData = new GcJoinChannelData(); // GcJoinChannelData | try { - apiInstance.gcJoinChannel(apiToken, channelUrl, gcJoinChannelData); + api.gcJoinChannel(channelUrl) + .apiToken(apiToken) + .gcJoinChannelData(gcJoinChannelData) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcJoinChannel"); System.err.println("Status code: " + e.getCode()); @@ -705,7 +731,7 @@ No authorization required ## gcLeaveChannel -> OcDeleteChannelByUrl200Response gcLeaveChannel(apiToken, channelUrl, gcLeaveChannelData) +> OcDeleteChannelByUrl200Response gcLeaveChannel(channelUrl).apiToken(apiToken).gcLeaveChannelData(gcLeaveChannelData).execute(); Leave a channel @@ -736,7 +762,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcLeaveChannelData gcLeaveChannelData = new GcLeaveChannelData(); // GcLeaveChannelData | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcLeaveChannel(apiToken, channelUrl, gcLeaveChannelData); + OcDeleteChannelByUrl200Response result = api.gcLeaveChannel(channelUrl) + .apiToken(apiToken) + .gcLeaveChannelData(gcLeaveChannelData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcLeaveChannel"); @@ -779,7 +808,7 @@ No authorization required ## gcListChannels -> GcListChannelsResponse gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId) +> GcListChannelsResponse gcListChannels().apiToken(apiToken).token(token).limit(limit).distinctMode(distinctMode).publicMode(publicMode).superMode(superMode).createdAfter(createdAfter).createdBefore(createdBefore).showEmpty(showEmpty).showMember(showMember).showDeliveryReceipt(showDeliveryReceipt).showReadReceipt(showReadReceipt).showMetadata(showMetadata).showFrozen(showFrozen).order(order).metadataOrderKey(metadataOrderKey).customTypes(customTypes).customTypeStartswith(customTypeStartswith).channelUrls(channelUrls).name(name).nameContains(nameContains).nameStartswith(nameStartswith).membersExactlyIn(membersExactlyIn).membersIncludeIn(membersIncludeIn).queryType(queryType).membersNickname(membersNickname).membersNicknameContains(membersNicknameContains).metadataKey(metadataKey).metadataValues(metadataValues).metadataValueStartswith(metadataValueStartswith).metacounterKey(metacounterKey).metacounterValues(metacounterValues).metacounterValueGt(metacounterValueGt).metacounterValueGte(metacounterValueGte).metacounterValueLt(metacounterValueLt).metacounterValueLte(metacounterValueLte).includeSortedMetaarrayInLastMessage(includeSortedMetaarrayInLastMessage).customType(customType).readReceipt(readReceipt).member(member).isDistinct(isDistinct).membersIn(membersIn).userId(userId).execute(); List channels @@ -852,7 +881,51 @@ public class Example { String membersIn = "membersIn_example"; // String | String userId = "userId_example"; // String | try { - GcListChannelsResponse result = apiInstance.gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); + GcListChannelsResponse result = api.gcListChannels() + .apiToken(apiToken) + .token(token) + .limit(limit) + .distinctMode(distinctMode) + .publicMode(publicMode) + .superMode(superMode) + .createdAfter(createdAfter) + .createdBefore(createdBefore) + .showEmpty(showEmpty) + .showMember(showMember) + .showDeliveryReceipt(showDeliveryReceipt) + .showReadReceipt(showReadReceipt) + .showMetadata(showMetadata) + .showFrozen(showFrozen) + .order(order) + .metadataOrderKey(metadataOrderKey) + .customTypes(customTypes) + .customTypeStartswith(customTypeStartswith) + .channelUrls(channelUrls) + .name(name) + .nameContains(nameContains) + .nameStartswith(nameStartswith) + .membersExactlyIn(membersExactlyIn) + .membersIncludeIn(membersIncludeIn) + .queryType(queryType) + .membersNickname(membersNickname) + .membersNicknameContains(membersNicknameContains) + .metadataKey(metadataKey) + .metadataValues(metadataValues) + .metadataValueStartswith(metadataValueStartswith) + .metacounterKey(metacounterKey) + .metacounterValues(metacounterValues) + .metacounterValueGt(metacounterValueGt) + .metacounterValueGte(metacounterValueGte) + .metacounterValueLt(metacounterValueLt) + .metacounterValueLte(metacounterValueLte) + .includeSortedMetaarrayInLastMessage(includeSortedMetaarrayInLastMessage) + .customType(customType) + .readReceipt(readReceipt) + .member(member) + .isDistinct(isDistinct) + .membersIn(membersIn) + .userId(userId) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcListChannels"); @@ -935,7 +1008,7 @@ No authorization required ## gcListMembers -> GcListMembersResponse gcListMembers(apiToken, channelUrl, token, limit, showDeliveryReceipt, showReadReceipt, order, operatorFilter, memberStateFilter, mutedMemberFilter, nicknameStartswith) +> GcListMembersResponse gcListMembers(channelUrl).apiToken(apiToken).token(token).limit(limit).showDeliveryReceipt(showDeliveryReceipt).showReadReceipt(showReadReceipt).order(order).operatorFilter(operatorFilter).memberStateFilter(memberStateFilter).mutedMemberFilter(mutedMemberFilter).nicknameStartswith(nicknameStartswith).execute(); List members @@ -978,7 +1051,18 @@ public class Example { String mutedMemberFilter = "mutedMemberFilter_example"; // String | String nicknameStartswith = "nicknameStartswith_example"; // String | try { - GcListMembersResponse result = apiInstance.gcListMembers(apiToken, channelUrl, token, limit, showDeliveryReceipt, showReadReceipt, order, operatorFilter, memberStateFilter, mutedMemberFilter, nicknameStartswith); + GcListMembersResponse result = api.gcListMembers(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .showDeliveryReceipt(showDeliveryReceipt) + .showReadReceipt(showReadReceipt) + .order(order) + .operatorFilter(operatorFilter) + .memberStateFilter(memberStateFilter) + .mutedMemberFilter(mutedMemberFilter) + .nicknameStartswith(nicknameStartswith) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcListMembers"); @@ -1029,7 +1113,7 @@ No authorization required ## gcListOperators -> GcListOperatorsResponse gcListOperators(apiToken, channelUrl, token, limit) +> GcListOperatorsResponse gcListOperators(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List operators @@ -1065,7 +1149,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - GcListOperatorsResponse result = apiInstance.gcListOperators(apiToken, channelUrl, token, limit); + GcListOperatorsResponse result = api.gcListOperators(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcListOperators"); @@ -1109,7 +1197,7 @@ No authorization required ## gcRegisterOperators -> GcRegisterOperatorsResponse gcRegisterOperators(apiToken, channelUrl, gcRegisterOperatorsData) +> GcRegisterOperatorsResponse gcRegisterOperators(channelUrl).apiToken(apiToken).gcRegisterOperatorsData(gcRegisterOperatorsData).execute(); Register operators @@ -1140,7 +1228,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcRegisterOperatorsData gcRegisterOperatorsData = new GcRegisterOperatorsData(); // GcRegisterOperatorsData | try { - GcRegisterOperatorsResponse result = apiInstance.gcRegisterOperators(apiToken, channelUrl, gcRegisterOperatorsData); + GcRegisterOperatorsResponse result = api.gcRegisterOperators(channelUrl) + .apiToken(apiToken) + .gcRegisterOperatorsData(gcRegisterOperatorsData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcRegisterOperators"); @@ -1183,7 +1274,7 @@ No authorization required ## gcResetChatHistory -> GcResetChatHistoryResponse gcResetChatHistory(apiToken, channelUrl, gcResetChatHistoryData) +> GcResetChatHistoryResponse gcResetChatHistory(channelUrl).apiToken(apiToken).gcResetChatHistoryData(gcResetChatHistoryData).execute(); Reset chat history @@ -1218,7 +1309,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcResetChatHistoryData gcResetChatHistoryData = new GcResetChatHistoryData(); // GcResetChatHistoryData | try { - GcResetChatHistoryResponse result = apiInstance.gcResetChatHistory(apiToken, channelUrl, gcResetChatHistoryData); + GcResetChatHistoryResponse result = api.gcResetChatHistory(channelUrl) + .apiToken(apiToken) + .gcResetChatHistoryData(gcResetChatHistoryData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcResetChatHistory"); @@ -1261,7 +1355,7 @@ No authorization required ## gcUnhideOrUnarchiveChannel -> OcDeleteChannelByUrl200Response gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, shouldUnhideAll) +> OcDeleteChannelByUrl200Response gcUnhideOrUnarchiveChannel(channelUrl).apiToken(apiToken).userId(userId).shouldUnhideAll(shouldUnhideAll).execute(); Unhide or unarchive a channel @@ -1297,7 +1391,11 @@ public class Example { String userId = "userId_example"; // String | Boolean shouldUnhideAll = true; // Boolean | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, shouldUnhideAll); + OcDeleteChannelByUrl200Response result = api.gcUnhideOrUnarchiveChannel(channelUrl) + .apiToken(apiToken) + .userId(userId) + .shouldUnhideAll(shouldUnhideAll) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcUnhideOrUnarchiveChannel"); @@ -1341,7 +1439,7 @@ No authorization required ## gcUpdateChannelByUrl -> SendBirdGroupChannel gcUpdateChannelByUrl(apiToken, channelUrl, gcUpdateChannelByUrlData) +> SendBirdGroupChannel gcUpdateChannelByUrl(channelUrl).apiToken(apiToken).gcUpdateChannelByUrlData(gcUpdateChannelByUrlData).execute(); Update a channel @@ -1374,7 +1472,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcUpdateChannelByUrlData gcUpdateChannelByUrlData = new GcUpdateChannelByUrlData(); // GcUpdateChannelByUrlData | try { - SendBirdGroupChannel result = apiInstance.gcUpdateChannelByUrl(apiToken, channelUrl, gcUpdateChannelByUrlData); + SendBirdGroupChannel result = api.gcUpdateChannelByUrl(channelUrl) + .apiToken(apiToken) + .gcUpdateChannelByUrlData(gcUpdateChannelByUrlData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcUpdateChannelByUrl"); @@ -1417,7 +1518,7 @@ No authorization required ## gcViewChannelByUrl -> SendBirdGroupChannel gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member) +> SendBirdGroupChannel gcViewChannelByUrl(channelUrl).apiToken(apiToken).showDeliveryReceipt(showDeliveryReceipt).showReadReceipt(showReadReceipt).showMember(showMember).readReceipt(readReceipt).member(member).execute(); View a channel @@ -1456,7 +1557,14 @@ public class Example { Boolean readReceipt = true; // Boolean | Boolean member = true; // Boolean | try { - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); + SendBirdGroupChannel result = api.gcViewChannelByUrl(channelUrl) + .apiToken(apiToken) + .showDeliveryReceipt(showDeliveryReceipt) + .showReadReceipt(showReadReceipt) + .showMember(showMember) + .readReceipt(readReceipt) + .member(member) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); diff --git a/docs/MessageApi.md b/docs/MessageApi.md index b9d0635a..398c529e 100644 --- a/docs/MessageApi.md +++ b/docs/MessageApi.md @@ -39,7 +39,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## addEmojiCategories -> AddEmojiCategoriesResponse addEmojiCategories(apiToken, body) +> AddEmojiCategoriesResponse addEmojiCategories().apiToken(apiToken).body(body).execute(); Add emoji categories @@ -68,7 +68,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | Object body = null; // Object | try { - AddEmojiCategoriesResponse result = apiInstance.addEmojiCategories(apiToken, body); + AddEmojiCategoriesResponse result = api.addEmojiCategories() + .apiToken(apiToken) + .body(body) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#addEmojiCategories"); @@ -110,7 +113,7 @@ No authorization required ## addEmojis -> AddEmojisResponse addEmojis(apiToken, addEmojisData) +> AddEmojisResponse addEmojis().apiToken(apiToken).addEmojisData(addEmojisData).execute(); Add emojis @@ -139,7 +142,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | AddEmojisData addEmojisData = new AddEmojisData(); // AddEmojisData | try { - AddEmojisResponse result = apiInstance.addEmojis(apiToken, addEmojisData); + AddEmojisResponse result = api.addEmojis() + .apiToken(apiToken) + .addEmojisData(addEmojisData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#addEmojis"); @@ -181,7 +187,7 @@ No authorization required ## addExtraDataToMessage -> AddExtraDataToMessageResponse addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, addExtraDataToMessageData) +> AddExtraDataToMessageResponse addExtraDataToMessage(channelType, channelUrl, messageId).apiToken(apiToken).addExtraDataToMessageData(addExtraDataToMessageData).execute(); Add extra data to a message @@ -214,7 +220,10 @@ public class Example { String messageId = "messageId_example"; // String | AddExtraDataToMessageData addExtraDataToMessageData = new AddExtraDataToMessageData(); // AddExtraDataToMessageData | try { - AddExtraDataToMessageResponse result = apiInstance.addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, addExtraDataToMessageData); + AddExtraDataToMessageResponse result = api.addExtraDataToMessage(channelType, channelUrl, messageId) + .apiToken(apiToken) + .addExtraDataToMessageData(addExtraDataToMessageData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#addExtraDataToMessage"); @@ -259,7 +268,7 @@ No authorization required ## addReactionToAMessage -> AddReactionToAMessageResponse addReactionToAMessage(apiToken, channelType, channelUrl, messageId, addReactionToAMessageData) +> AddReactionToAMessageResponse addReactionToAMessage(channelType, channelUrl, messageId).apiToken(apiToken).addReactionToAMessageData(addReactionToAMessageData).execute(); Add a reaction to a message @@ -294,7 +303,10 @@ public class Example { String messageId = "messageId_example"; // String | AddReactionToAMessageData addReactionToAMessageData = new AddReactionToAMessageData(); // AddReactionToAMessageData | try { - AddReactionToAMessageResponse result = apiInstance.addReactionToAMessage(apiToken, channelType, channelUrl, messageId, addReactionToAMessageData); + AddReactionToAMessageResponse result = api.addReactionToAMessage(channelType, channelUrl, messageId) + .apiToken(apiToken) + .addReactionToAMessageData(addReactionToAMessageData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#addReactionToAMessage"); @@ -339,7 +351,7 @@ No authorization required ## deleteEmojiByKey -> deleteEmojiByKey(apiToken, emojiKey) +> deleteEmojiByKey(emojiKey).apiToken(apiToken).execute(); Delete an emoji @@ -369,7 +381,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String emojiKey = "emojiKey_example"; // String | try { - apiInstance.deleteEmojiByKey(apiToken, emojiKey); + api.deleteEmojiByKey(emojiKey) + .apiToken(apiToken) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#deleteEmojiByKey"); System.err.println("Status code: " + e.getCode()); @@ -410,7 +424,7 @@ No authorization required ## deleteEmojiCategoryById -> Object deleteEmojiCategoryById(apiToken, emojiCategoryId) +> Object deleteEmojiCategoryById(emojiCategoryId).apiToken(apiToken).execute(); Delete an emoji category @@ -440,7 +454,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String emojiCategoryId = "emojiCategoryId_example"; // String | try { - Object result = apiInstance.deleteEmojiCategoryById(apiToken, emojiCategoryId); + Object result = api.deleteEmojiCategoryById(emojiCategoryId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#deleteEmojiCategoryById"); @@ -482,7 +498,7 @@ No authorization required ## deleteMessageById -> Object deleteMessageById(apiToken, channelType, channelUrl, messageId) +> Object deleteMessageById(channelType, channelUrl, messageId).apiToken(apiToken).execute(); Delete a message @@ -514,7 +530,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String messageId = "messageId_example"; // String | try { - Object result = apiInstance.deleteMessageById(apiToken, channelType, channelUrl, messageId); + Object result = api.deleteMessageById(channelType, channelUrl, messageId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#deleteMessageById"); @@ -558,7 +576,7 @@ No authorization required ## enableReactions -> EnableReactionsResponse enableReactions(apiToken, enableReactionsData) +> EnableReactionsResponse enableReactions().apiToken(apiToken).enableReactionsData(enableReactionsData).execute(); Enable reactions @@ -589,7 +607,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | EnableReactionsData enableReactionsData = new EnableReactionsData(); // EnableReactionsData | try { - EnableReactionsResponse result = apiInstance.enableReactions(apiToken, enableReactionsData); + EnableReactionsResponse result = api.enableReactions() + .apiToken(apiToken) + .enableReactionsData(enableReactionsData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#enableReactions"); @@ -631,7 +652,7 @@ No authorization required ## gcMarkAllMessagesAsDelivered -> GcMarkAllMessagesAsDeliveredResponse gcMarkAllMessagesAsDelivered(apiToken, channelUrl, gcMarkAllMessagesAsDeliveredData) +> GcMarkAllMessagesAsDeliveredResponse gcMarkAllMessagesAsDelivered(channelUrl).apiToken(apiToken).gcMarkAllMessagesAsDeliveredData(gcMarkAllMessagesAsDeliveredData).execute(); Mark all messages as delivered @@ -662,7 +683,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData = new GcMarkAllMessagesAsDeliveredData(); // GcMarkAllMessagesAsDeliveredData | try { - GcMarkAllMessagesAsDeliveredResponse result = apiInstance.gcMarkAllMessagesAsDelivered(apiToken, channelUrl, gcMarkAllMessagesAsDeliveredData); + GcMarkAllMessagesAsDeliveredResponse result = api.gcMarkAllMessagesAsDelivered(channelUrl) + .apiToken(apiToken) + .gcMarkAllMessagesAsDeliveredData(gcMarkAllMessagesAsDeliveredData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#gcMarkAllMessagesAsDelivered"); @@ -705,7 +729,7 @@ No authorization required ## gcMarkAllMessagesAsRead -> Object gcMarkAllMessagesAsRead(apiToken, channelUrl, gcMarkAllMessagesAsReadData) +> Object gcMarkAllMessagesAsRead(channelUrl).apiToken(apiToken).gcMarkAllMessagesAsReadData(gcMarkAllMessagesAsReadData).execute(); Mark all messages as read @@ -736,7 +760,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData = new GcMarkAllMessagesAsReadData(); // GcMarkAllMessagesAsReadData | try { - Object result = apiInstance.gcMarkAllMessagesAsRead(apiToken, channelUrl, gcMarkAllMessagesAsReadData); + Object result = api.gcMarkAllMessagesAsRead(channelUrl) + .apiToken(apiToken) + .gcMarkAllMessagesAsReadData(gcMarkAllMessagesAsReadData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#gcMarkAllMessagesAsRead"); @@ -779,7 +806,7 @@ No authorization required ## gcViewNumberOfEachMembersUnreadMessages -> GcViewNumberOfEachMembersUnreadMessagesResponse gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, userIds) +> GcViewNumberOfEachMembersUnreadMessagesResponse gcViewNumberOfEachMembersUnreadMessages(channelUrl).apiToken(apiToken).userIds(userIds).execute(); View number of each member's unread messages @@ -810,7 +837,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String userIds = "userIds_example"; // String | try { - GcViewNumberOfEachMembersUnreadMessagesResponse result = apiInstance.gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, userIds); + GcViewNumberOfEachMembersUnreadMessagesResponse result = api.gcViewNumberOfEachMembersUnreadMessages(channelUrl) + .apiToken(apiToken) + .userIds(userIds) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#gcViewNumberOfEachMembersUnreadMessages"); @@ -853,7 +883,7 @@ No authorization required ## getEmojiByKey -> SendBirdEmoji getEmojiByKey(apiToken, emojiKey) +> SendBirdEmoji getEmojiByKey(emojiKey).apiToken(apiToken).execute(); Get an emoji @@ -883,7 +913,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String emojiKey = "emojiKey_example"; // String | try { - SendBirdEmoji result = apiInstance.getEmojiByKey(apiToken, emojiKey); + SendBirdEmoji result = api.getEmojiByKey(emojiKey) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#getEmojiByKey"); @@ -925,7 +957,7 @@ No authorization required ## getEmojiCategoryById -> SendBirdEmojiCategory getEmojiCategoryById(apiToken, emojiCategoryId) +> SendBirdEmojiCategory getEmojiCategoryById(emojiCategoryId).apiToken(apiToken).execute(); Get an emoji category @@ -959,7 +991,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String emojiCategoryId = "emojiCategoryId_example"; // String | try { - SendBirdEmojiCategory result = apiInstance.getEmojiCategoryById(apiToken, emojiCategoryId); + SendBirdEmojiCategory result = api.getEmojiCategoryById(emojiCategoryId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#getEmojiCategoryById"); @@ -1001,7 +1035,7 @@ No authorization required ## listAllEmojisAndEmojiCategories -> ListAllEmojisAndEmojiCategoriesResponse listAllEmojisAndEmojiCategories(apiToken) +> ListAllEmojisAndEmojiCategoriesResponse listAllEmojisAndEmojiCategories().apiToken(apiToken).execute(); List all emojis and emoji categories @@ -1029,7 +1063,9 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - ListAllEmojisAndEmojiCategoriesResponse result = apiInstance.listAllEmojisAndEmojiCategories(apiToken); + ListAllEmojisAndEmojiCategoriesResponse result = api.listAllEmojisAndEmojiCategories() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#listAllEmojisAndEmojiCategories"); @@ -1070,7 +1106,7 @@ No authorization required ## listAnnouncements -> ListAnnouncementsResponse listAnnouncements(apiToken, token, limit, order, status, announcementGroup) +> ListAnnouncementsResponse listAnnouncements().apiToken(apiToken).token(token).limit(limit).order(order).status(status).announcementGroup(announcementGroup).execute(); List announcements @@ -1104,7 +1140,14 @@ public class Example { String status = "status_example"; // String | String announcementGroup = "announcementGroup_example"; // String | try { - ListAnnouncementsResponse result = apiInstance.listAnnouncements(apiToken, token, limit, order, status, announcementGroup); + ListAnnouncementsResponse result = api.listAnnouncements() + .apiToken(apiToken) + .token(token) + .limit(limit) + .order(order) + .status(status) + .announcementGroup(announcementGroup) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#listAnnouncements"); @@ -1150,7 +1193,7 @@ No authorization required ## listEmojis -> ListEmojisResponse listEmojis(apiToken) +> ListEmojisResponse listEmojis().apiToken(apiToken).execute(); List emojis @@ -1178,7 +1221,9 @@ public class Example { MessageApi apiInstance = new MessageApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - ListEmojisResponse result = apiInstance.listEmojis(apiToken); + ListEmojisResponse result = api.listEmojis() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#listEmojis"); @@ -1219,7 +1264,7 @@ No authorization required ## listMessages -> ListMessagesResponse listMessages(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray) +> ListMessagesResponse listMessages(channelType, channelUrl).apiToken(apiToken).messageTs(messageTs).messageId(messageId).prevLimit(prevLimit).nextLimit(nextLimit).include(include).reverse(reverse).senderId(senderId).senderIds(senderIds).operatorFilter(operatorFilter).customTypes(customTypes).messageType(messageType).includingRemoved(includingRemoved).includeReactions(includeReactions).withSortedMetaArray(withSortedMetaArray).showSubchannelMessagesOnly(showSubchannelMessagesOnly).userId(userId).customType(customType).withMetaArray(withMetaArray).execute(); List messages @@ -1277,7 +1322,27 @@ public class Example { String customType = "customType_example"; // String | Boolean withMetaArray = true; // Boolean | try { - ListMessagesResponse result = apiInstance.listMessages(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray); + ListMessagesResponse result = api.listMessages(channelType, channelUrl) + .apiToken(apiToken) + .messageTs(messageTs) + .messageId(messageId) + .prevLimit(prevLimit) + .nextLimit(nextLimit) + .include(include) + .reverse(reverse) + .senderId(senderId) + .senderIds(senderIds) + .operatorFilter(operatorFilter) + .customTypes(customTypes) + .messageType(messageType) + .includingRemoved(includingRemoved) + .includeReactions(includeReactions) + .withSortedMetaArray(withSortedMetaArray) + .showSubchannelMessagesOnly(showSubchannelMessagesOnly) + .userId(userId) + .customType(customType) + .withMetaArray(withMetaArray) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#listMessages"); @@ -1338,7 +1403,7 @@ No authorization required ## listReactionsOfMessage -> ListReactionsOfMessageResponse listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, listUsers) +> ListReactionsOfMessageResponse listReactionsOfMessage(channelType, channelUrl, messageId).apiToken(apiToken).listUsers(listUsers).execute(); List reactions of a message @@ -1383,7 +1448,10 @@ public class Example { String messageId = "messageId_example"; // String | Boolean listUsers = true; // Boolean | try { - ListReactionsOfMessageResponse result = apiInstance.listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, listUsers); + ListReactionsOfMessageResponse result = api.listReactionsOfMessage(channelType, channelUrl, messageId) + .apiToken(apiToken) + .listUsers(listUsers) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#listReactionsOfMessage"); @@ -1428,7 +1496,7 @@ No authorization required ## migrateMessagesByUrl -> migrateMessagesByUrl(apiToken, targetChannelUrl, body) +> migrateMessagesByUrl(targetChannelUrl).apiToken(apiToken).body(body).execute(); Migrate messages @@ -1467,7 +1535,10 @@ public class Example { String targetChannelUrl = "targetChannelUrl_example"; // String | Object body = null; // Object | try { - apiInstance.migrateMessagesByUrl(apiToken, targetChannelUrl, body); + api.migrateMessagesByUrl(targetChannelUrl) + .apiToken(apiToken) + .body(body) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#migrateMessagesByUrl"); System.err.println("Status code: " + e.getCode()); @@ -1509,7 +1580,7 @@ No authorization required ## removeExtraDataFromMessage -> Object removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, keys) +> Object removeExtraDataFromMessage(channelType, channelUrl, messageId).apiToken(apiToken).keys(keys).execute(); Remove extra data from a message @@ -1542,7 +1613,10 @@ public class Example { String messageId = "messageId_example"; // String | List keys = Arrays.asList(); // List | try { - Object result = apiInstance.removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, keys); + Object result = api.removeExtraDataFromMessage(channelType, channelUrl, messageId) + .apiToken(apiToken) + .keys(keys) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#removeExtraDataFromMessage"); @@ -1587,7 +1661,7 @@ No authorization required ## removeReactionFromAMessage -> RemoveReactionFromAMessageResponse removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, userId, reaction) +> RemoveReactionFromAMessageResponse removeReactionFromAMessage(channelType, channelUrl, messageId).apiToken(apiToken).userId(userId).reaction(reaction).execute(); Remove a reaction from a message @@ -1623,7 +1697,11 @@ public class Example { String userId = "userId_example"; // String | String reaction = "reaction_example"; // String | try { - RemoveReactionFromAMessageResponse result = apiInstance.removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, userId, reaction); + RemoveReactionFromAMessageResponse result = api.removeReactionFromAMessage(channelType, channelUrl, messageId) + .apiToken(apiToken) + .userId(userId) + .reaction(reaction) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#removeReactionFromAMessage"); @@ -1669,7 +1747,7 @@ No authorization required ## sendMessage -> SendBirdMessageResponse sendMessage(apiToken, channelType, channelUrl, sendMessageData) +> SendBirdMessageResponse sendMessage(channelType, channelUrl).apiToken(apiToken).sendMessageData(sendMessageData).execute(); Send a message @@ -1703,7 +1781,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | SendMessageData sendMessageData = new SendMessageData(); // SendMessageData | try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); + SendBirdMessageResponse result = api.sendMessage(channelType, channelUrl) + .apiToken(apiToken) + .sendMessageData(sendMessageData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#sendMessage"); @@ -1747,7 +1828,7 @@ No authorization required ## translateMessageIntoOtherLanguages -> SendBirdMessageResponse translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, translateMessageIntoOtherLanguagesData) +> SendBirdMessageResponse translateMessageIntoOtherLanguages(channelType, channelUrl, messageId).apiToken(apiToken).translateMessageIntoOtherLanguagesData(translateMessageIntoOtherLanguagesData).execute(); Translate a message into other languages @@ -1782,7 +1863,10 @@ public class Example { String messageId = "messageId_example"; // String | TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData = new TranslateMessageIntoOtherLanguagesData(); // TranslateMessageIntoOtherLanguagesData | try { - SendBirdMessageResponse result = apiInstance.translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, translateMessageIntoOtherLanguagesData); + SendBirdMessageResponse result = api.translateMessageIntoOtherLanguages(channelType, channelUrl, messageId) + .apiToken(apiToken) + .translateMessageIntoOtherLanguagesData(translateMessageIntoOtherLanguagesData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#translateMessageIntoOtherLanguages"); @@ -1827,7 +1911,7 @@ No authorization required ## updateEmojiCategoryUrlById -> SendBirdEmojiCategory updateEmojiCategoryUrlById(apiToken, emojiCategoryId, updateEmojiCategoryUrlByIdData) +> SendBirdEmojiCategory updateEmojiCategoryUrlById(emojiCategoryId).apiToken(apiToken).updateEmojiCategoryUrlByIdData(updateEmojiCategoryUrlByIdData).execute(); Update an emoji category URL @@ -1858,7 +1942,10 @@ public class Example { String emojiCategoryId = "emojiCategoryId_example"; // String | UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData = new UpdateEmojiCategoryUrlByIdData(); // UpdateEmojiCategoryUrlByIdData | try { - SendBirdEmojiCategory result = apiInstance.updateEmojiCategoryUrlById(apiToken, emojiCategoryId, updateEmojiCategoryUrlByIdData); + SendBirdEmojiCategory result = api.updateEmojiCategoryUrlById(emojiCategoryId) + .apiToken(apiToken) + .updateEmojiCategoryUrlByIdData(updateEmojiCategoryUrlByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#updateEmojiCategoryUrlById"); @@ -1901,7 +1988,7 @@ No authorization required ## updateEmojiUrlByKey -> SendBirdEmoji updateEmojiUrlByKey(apiToken, emojiKey, updateEmojiUrlByKeyData) +> SendBirdEmoji updateEmojiUrlByKey(emojiKey).apiToken(apiToken).updateEmojiUrlByKeyData(updateEmojiUrlByKeyData).execute(); Update an emoji URL @@ -1932,7 +2019,10 @@ public class Example { String emojiKey = "emojiKey_example"; // String | UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData = new UpdateEmojiUrlByKeyData(); // UpdateEmojiUrlByKeyData | try { - SendBirdEmoji result = apiInstance.updateEmojiUrlByKey(apiToken, emojiKey, updateEmojiUrlByKeyData); + SendBirdEmoji result = api.updateEmojiUrlByKey(emojiKey) + .apiToken(apiToken) + .updateEmojiUrlByKeyData(updateEmojiUrlByKeyData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#updateEmojiUrlByKey"); @@ -1975,7 +2065,7 @@ No authorization required ## updateExtraDataInMessage -> UpdateExtraDataInMessageResponse updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, updateExtraDataInMessageData) +> UpdateExtraDataInMessageResponse updateExtraDataInMessage(channelType, channelUrl, messageId).apiToken(apiToken).updateExtraDataInMessageData(updateExtraDataInMessageData).execute(); Update extra data in a message @@ -2008,7 +2098,10 @@ public class Example { String messageId = "messageId_example"; // String | UpdateExtraDataInMessageData updateExtraDataInMessageData = new UpdateExtraDataInMessageData(); // UpdateExtraDataInMessageData | try { - UpdateExtraDataInMessageResponse result = apiInstance.updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, updateExtraDataInMessageData); + UpdateExtraDataInMessageResponse result = api.updateExtraDataInMessage(channelType, channelUrl, messageId) + .apiToken(apiToken) + .updateExtraDataInMessageData(updateExtraDataInMessageData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#updateExtraDataInMessage"); @@ -2053,7 +2146,7 @@ No authorization required ## updateMessageById -> SendBirdMessageResponse updateMessageById(apiToken, channelType, channelUrl, messageId, updateMessageByIdData) +> SendBirdMessageResponse updateMessageById(channelType, channelUrl, messageId).apiToken(apiToken).updateMessageByIdData(updateMessageByIdData).execute(); Update a message @@ -2086,7 +2179,10 @@ public class Example { String messageId = "messageId_example"; // String | UpdateMessageByIdData updateMessageByIdData = new UpdateMessageByIdData(); // UpdateMessageByIdData | try { - SendBirdMessageResponse result = apiInstance.updateMessageById(apiToken, channelType, channelUrl, messageId, updateMessageByIdData); + SendBirdMessageResponse result = api.updateMessageById(channelType, channelUrl, messageId) + .apiToken(apiToken) + .updateMessageByIdData(updateMessageByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#updateMessageById"); @@ -2131,7 +2227,7 @@ No authorization required ## useDefaultEmojis -> UseDefaultEmojisResponse useDefaultEmojis(apiToken, useDefaultEmojisData) +> UseDefaultEmojisResponse useDefaultEmojis().apiToken(apiToken).useDefaultEmojisData(useDefaultEmojisData).execute(); Use default emojis @@ -2160,7 +2256,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | UseDefaultEmojisData useDefaultEmojisData = new UseDefaultEmojisData(); // UseDefaultEmojisData | try { - UseDefaultEmojisResponse result = apiInstance.useDefaultEmojis(apiToken, useDefaultEmojisData); + UseDefaultEmojisResponse result = api.useDefaultEmojis() + .apiToken(apiToken) + .useDefaultEmojisData(useDefaultEmojisData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#useDefaultEmojis"); @@ -2202,7 +2301,7 @@ No authorization required ## viewMessageById -> SendBirdMessageResponse viewMessageById(apiToken, channelType, channelUrl, messageId, withSortedMetaArray, withMetaArray) +> SendBirdMessageResponse viewMessageById(channelType, channelUrl, messageId).apiToken(apiToken).withSortedMetaArray(withSortedMetaArray).withMetaArray(withMetaArray).execute(); View a message @@ -2246,7 +2345,11 @@ public class Example { Boolean withSortedMetaArray = true; // Boolean | Boolean withMetaArray = true; // Boolean | try { - SendBirdMessageResponse result = apiInstance.viewMessageById(apiToken, channelType, channelUrl, messageId, withSortedMetaArray, withMetaArray); + SendBirdMessageResponse result = api.viewMessageById(channelType, channelUrl, messageId) + .apiToken(apiToken) + .withSortedMetaArray(withSortedMetaArray) + .withMetaArray(withMetaArray) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#viewMessageById"); @@ -2292,7 +2395,7 @@ No authorization required ## viewTotalNumberOfMessagesInChannel -> ViewTotalNumberOfMessagesInChannelResponse viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl) +> ViewTotalNumberOfMessagesInChannelResponse viewTotalNumberOfMessagesInChannel(channelType, channelUrl).apiToken(apiToken).execute(); View total number of messages in a channel @@ -2323,7 +2426,9 @@ public class Example { String channelType = "channelType_example"; // String | String channelUrl = "channelUrl_example"; // String | try { - ViewTotalNumberOfMessagesInChannelResponse result = apiInstance.viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl); + ViewTotalNumberOfMessagesInChannelResponse result = api.viewTotalNumberOfMessagesInChannel(channelType, channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessageApi#viewTotalNumberOfMessagesInChannel"); diff --git a/docs/MetadataApi.md b/docs/MetadataApi.md index d226b470..0b2b093e 100644 --- a/docs/MetadataApi.md +++ b/docs/MetadataApi.md @@ -30,7 +30,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## createChannelMetacounter -> Object createChannelMetacounter(apiToken, channelType, channelUrl, createChannelMetacounterData) +> Object createChannelMetacounter(channelType, channelUrl).apiToken(apiToken).createChannelMetacounterData(createChannelMetacounterData).execute(); Create a channel metacounter @@ -62,7 +62,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | CreateChannelMetacounterData createChannelMetacounterData = new CreateChannelMetacounterData(); // CreateChannelMetacounterData | try { - Object result = apiInstance.createChannelMetacounter(apiToken, channelType, channelUrl, createChannelMetacounterData); + Object result = api.createChannelMetacounter(channelType, channelUrl) + .apiToken(apiToken) + .createChannelMetacounterData(createChannelMetacounterData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#createChannelMetacounter"); @@ -106,7 +109,7 @@ No authorization required ## createChannelMetadata -> CreateChannelMetadataResponse createChannelMetadata(apiToken, channelType, channelUrl, createChannelMetadataData) +> CreateChannelMetadataResponse createChannelMetadata(channelType, channelUrl).apiToken(apiToken).createChannelMetadataData(createChannelMetadataData).execute(); Create a channel metadata @@ -138,7 +141,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | CreateChannelMetadataData createChannelMetadataData = new CreateChannelMetadataData(); // CreateChannelMetadataData | try { - CreateChannelMetadataResponse result = apiInstance.createChannelMetadata(apiToken, channelType, channelUrl, createChannelMetadataData); + CreateChannelMetadataResponse result = api.createChannelMetadata(channelType, channelUrl) + .apiToken(apiToken) + .createChannelMetadataData(createChannelMetadataData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#createChannelMetadata"); @@ -182,7 +188,7 @@ No authorization required ## createUserMetadata -> CreateUserMetadataResponse createUserMetadata(apiToken, userId, createUserMetadataData) +> CreateUserMetadataResponse createUserMetadata(userId).apiToken(apiToken).createUserMetadataData(createUserMetadataData).execute(); Create a user metadata @@ -213,7 +219,10 @@ public class Example { String userId = "userId_example"; // String | CreateUserMetadataData createUserMetadataData = new CreateUserMetadataData(); // CreateUserMetadataData | try { - CreateUserMetadataResponse result = apiInstance.createUserMetadata(apiToken, userId, createUserMetadataData); + CreateUserMetadataResponse result = api.createUserMetadata(userId) + .apiToken(apiToken) + .createUserMetadataData(createUserMetadataData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#createUserMetadata"); @@ -256,7 +265,7 @@ No authorization required ## deleteChannelMetacounter -> deleteChannelMetacounter(apiToken, channelType, channelUrl) +> deleteChannelMetacounter(channelType, channelUrl).apiToken(apiToken).execute(); Delete a channel metacounter - When deleting all items of a channel metacounter @@ -294,7 +303,9 @@ public class Example { String channelType = "channelType_example"; // String | String channelUrl = "channelUrl_example"; // String | try { - apiInstance.deleteChannelMetacounter(apiToken, channelType, channelUrl); + api.deleteChannelMetacounter(channelType, channelUrl) + .apiToken(apiToken) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#deleteChannelMetacounter"); System.err.println("Status code: " + e.getCode()); @@ -336,7 +347,7 @@ No authorization required ## deleteChannelMetacounterByKey -> deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key) +> deleteChannelMetacounterByKey(channelType, channelUrl, key).apiToken(apiToken).execute(); Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key @@ -375,7 +386,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String key = "key_example"; // String | try { - apiInstance.deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key); + api.deleteChannelMetacounterByKey(channelType, channelUrl, key) + .apiToken(apiToken) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#deleteChannelMetacounterByKey"); System.err.println("Status code: " + e.getCode()); @@ -418,7 +431,7 @@ No authorization required ## deleteChannelMetadata -> deleteChannelMetadata(apiToken, channelType, channelUrl, key) +> deleteChannelMetadata(channelType, channelUrl).apiToken(apiToken).key(key).execute(); Delete a channel metadata - When deleting all items of a channel metadata @@ -457,7 +470,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String key = "key_example"; // String | try { - apiInstance.deleteChannelMetadata(apiToken, channelType, channelUrl, key); + api.deleteChannelMetadata(channelType, channelUrl) + .apiToken(apiToken) + .key(key) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#deleteChannelMetadata"); System.err.println("Status code: " + e.getCode()); @@ -500,7 +516,7 @@ No authorization required ## deleteChannelMetadataByKey -> deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key) +> deleteChannelMetadataByKey(channelType, channelUrl, key).apiToken(apiToken).execute(); Delete a channel metadata - When deleting a specific item of a channel metadata by its key @@ -539,7 +555,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String key = "key_example"; // String | try { - apiInstance.deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key); + api.deleteChannelMetadataByKey(channelType, channelUrl, key) + .apiToken(apiToken) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#deleteChannelMetadataByKey"); System.err.println("Status code: " + e.getCode()); @@ -582,7 +600,7 @@ No authorization required ## deleteUserMetadata -> deleteUserMetadata(apiToken, userId, key) +> deleteUserMetadata(userId).apiToken(apiToken).key(key).execute(); Delete a user metadata - When deleting all items of a user metadata @@ -617,7 +635,10 @@ public class Example { String userId = "userId_example"; // String | String key = "key_example"; // String | try { - apiInstance.deleteUserMetadata(apiToken, userId, key); + api.deleteUserMetadata(userId) + .apiToken(apiToken) + .key(key) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#deleteUserMetadata"); System.err.println("Status code: " + e.getCode()); @@ -659,7 +680,7 @@ No authorization required ## deleteUserMetadataByKey -> deleteUserMetadataByKey(apiToken, userId, key) +> deleteUserMetadataByKey(userId, key).apiToken(apiToken).execute(); Delete a user metadata - When deleting a specific item of a user metadata by its key @@ -694,7 +715,9 @@ public class Example { String userId = "userId_example"; // String | String key = "key_example"; // String | try { - apiInstance.deleteUserMetadataByKey(apiToken, userId, key); + api.deleteUserMetadataByKey(userId, key) + .apiToken(apiToken) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#deleteUserMetadataByKey"); System.err.println("Status code: " + e.getCode()); @@ -736,7 +759,7 @@ No authorization required ## updateChannelMetacounter -> Object updateChannelMetacounter(apiToken, channelType, channelUrl, updateChannelMetacounterData) +> Object updateChannelMetacounter(channelType, channelUrl).apiToken(apiToken).updateChannelMetacounterData(updateChannelMetacounterData).execute(); Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter @@ -775,7 +798,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | UpdateChannelMetacounterData updateChannelMetacounterData = new UpdateChannelMetacounterData(); // UpdateChannelMetacounterData | try { - Object result = apiInstance.updateChannelMetacounter(apiToken, channelType, channelUrl, updateChannelMetacounterData); + Object result = api.updateChannelMetacounter(channelType, channelUrl) + .apiToken(apiToken) + .updateChannelMetacounterData(updateChannelMetacounterData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#updateChannelMetacounter"); @@ -819,7 +845,7 @@ No authorization required ## updateChannelMetacounterByKey -> Map<String, String> updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, body) +> Map<String, String> updateChannelMetacounterByKey(channelType, channelUrl, key).apiToken(apiToken).body(body).execute(); Update a channel metacounter - When updating a specific item of a channel metacounter by its key @@ -859,7 +885,10 @@ public class Example { String key = "key_example"; // String | Object body = null; // Object | try { - Map result = apiInstance.updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, body); + Map result = api.updateChannelMetacounterByKey(channelType, channelUrl, key) + .apiToken(apiToken) + .body(body) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#updateChannelMetacounterByKey"); @@ -904,7 +933,7 @@ No authorization required ## updateChannelMetadata -> Map<String, String> updateChannelMetadata(apiToken, channelType, channelUrl, updateChannelMetadataData) +> Map<String, String> updateChannelMetadata(channelType, channelUrl).apiToken(apiToken).updateChannelMetadataData(updateChannelMetadataData).execute(); Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata @@ -943,7 +972,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | UpdateChannelMetadataData updateChannelMetadataData = new UpdateChannelMetadataData(); // UpdateChannelMetadataData | try { - Map result = apiInstance.updateChannelMetadata(apiToken, channelType, channelUrl, updateChannelMetadataData); + Map result = api.updateChannelMetadata(channelType, channelUrl) + .apiToken(apiToken) + .updateChannelMetadataData(updateChannelMetadataData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#updateChannelMetadata"); @@ -987,7 +1019,7 @@ No authorization required ## updateChannelMetadataByKey -> Map<String, String> updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, body) +> Map<String, String> updateChannelMetadataByKey(channelType, channelUrl, key).apiToken(apiToken).body(body).execute(); Update a channel metadata - When updating a specific item of a channel metadata by its key @@ -1027,7 +1059,10 @@ public class Example { String key = "key_example"; // String | Object body = null; // Object | try { - Map result = apiInstance.updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, body); + Map result = api.updateChannelMetadataByKey(channelType, channelUrl, key) + .apiToken(apiToken) + .body(body) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#updateChannelMetadataByKey"); @@ -1072,7 +1107,7 @@ No authorization required ## updateUserMetadata -> UpdateUserMetadataResponse updateUserMetadata(apiToken, userId, updateUserMetadataData) +> UpdateUserMetadataResponse updateUserMetadata(userId).apiToken(apiToken).updateUserMetadataData(updateUserMetadataData).execute(); Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata @@ -1107,7 +1142,10 @@ public class Example { String userId = "userId_example"; // String | UpdateUserMetadataData updateUserMetadataData = new UpdateUserMetadataData(); // UpdateUserMetadataData | try { - UpdateUserMetadataResponse result = apiInstance.updateUserMetadata(apiToken, userId, updateUserMetadataData); + UpdateUserMetadataResponse result = api.updateUserMetadata(userId) + .apiToken(apiToken) + .updateUserMetadataData(updateUserMetadataData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#updateUserMetadata"); @@ -1150,7 +1188,7 @@ No authorization required ## updateUserMetadataByKey -> Map<String, String> updateUserMetadataByKey(apiToken, userId, key, body) +> Map<String, String> updateUserMetadataByKey(userId, key).apiToken(apiToken).body(body).execute(); Update a user metadata - When updating a specific item of a user metadata by its key @@ -1186,7 +1224,10 @@ public class Example { String key = "key_example"; // String | Object body = null; // Object | try { - Map result = apiInstance.updateUserMetadataByKey(apiToken, userId, key, body); + Map result = api.updateUserMetadataByKey(userId, key) + .apiToken(apiToken) + .body(body) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#updateUserMetadataByKey"); @@ -1230,7 +1271,7 @@ No authorization required ## viewChannelMetacounter -> Map<String, String> viewChannelMetacounter(apiToken, channelType, channelUrl, key, keys) +> Map<String, String> viewChannelMetacounter(channelType, channelUrl).apiToken(apiToken).key(key).keys(keys).execute(); View a channel metacounter - When retrieving all items of a channel metacounter @@ -1270,7 +1311,11 @@ public class Example { String key = "key_example"; // String | List keys = Arrays.asList(); // List | try { - Map result = apiInstance.viewChannelMetacounter(apiToken, channelType, channelUrl, key, keys); + Map result = api.viewChannelMetacounter(channelType, channelUrl) + .apiToken(apiToken) + .key(key) + .keys(keys) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#viewChannelMetacounter"); @@ -1315,7 +1360,7 @@ No authorization required ## viewChannelMetacounterByKey -> Object viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key) +> Object viewChannelMetacounterByKey(channelType, channelUrl, key).apiToken(apiToken).execute(); View a channel metacounter - When retrieving a specific item of a channel metacounter by its key @@ -1354,7 +1399,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String key = "key_example"; // String | try { - Object result = apiInstance.viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key); + Object result = api.viewChannelMetacounterByKey(channelType, channelUrl, key) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#viewChannelMetacounterByKey"); @@ -1398,7 +1445,7 @@ No authorization required ## viewChannelMetadata -> Map<String, String> viewChannelMetadata(apiToken, channelType, channelUrl, key, keys) +> Map<String, String> viewChannelMetadata(channelType, channelUrl).apiToken(apiToken).key(key).keys(keys).execute(); View a channel metadata - When retrieving all items of a channel metadata @@ -1438,7 +1485,11 @@ public class Example { String key = "key_example"; // String | List keys = Arrays.asList(); // List | try { - Map result = apiInstance.viewChannelMetadata(apiToken, channelType, channelUrl, key, keys); + Map result = api.viewChannelMetadata(channelType, channelUrl) + .apiToken(apiToken) + .key(key) + .keys(keys) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#viewChannelMetadata"); @@ -1483,7 +1534,7 @@ No authorization required ## viewChannelMetadataByKey -> Map<String, String> viewChannelMetadataByKey(apiToken, channelType, channelUrl, key) +> Map<String, String> viewChannelMetadataByKey(channelType, channelUrl, key).apiToken(apiToken).execute(); View a channel metadata - When retrieving a specific item of a channel metadata by its key @@ -1522,7 +1573,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String key = "key_example"; // String | try { - Map result = apiInstance.viewChannelMetadataByKey(apiToken, channelType, channelUrl, key); + Map result = api.viewChannelMetadataByKey(channelType, channelUrl, key) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#viewChannelMetadataByKey"); @@ -1566,7 +1619,7 @@ No authorization required ## viewUserMetadata -> ViewUserMetadataResponse viewUserMetadata(apiToken, userId, key, keys) +> ViewUserMetadataResponse viewUserMetadata(userId).apiToken(apiToken).key(key).keys(keys).execute(); View a user metadata - When retrieving all items of a user metadata @@ -1602,7 +1655,11 @@ public class Example { String key = "key_example"; // String | List keys = Arrays.asList(); // List | try { - ViewUserMetadataResponse result = apiInstance.viewUserMetadata(apiToken, userId, key, keys); + ViewUserMetadataResponse result = api.viewUserMetadata(userId) + .apiToken(apiToken) + .key(key) + .keys(keys) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#viewUserMetadata"); @@ -1646,7 +1703,7 @@ No authorization required ## viewUserMetadataByKey -> Map<String, String> viewUserMetadataByKey(apiToken, userId, key) +> Map<String, String> viewUserMetadataByKey(userId, key).apiToken(apiToken).execute(); View a user metadata - When retrieving a specific item of a user metadata by its key @@ -1681,7 +1738,9 @@ public class Example { String userId = "userId_example"; // String | String key = "key_example"; // String | try { - Map result = apiInstance.viewUserMetadataByKey(apiToken, userId, key); + Map result = api.viewUserMetadataByKey(userId, key) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MetadataApi#viewUserMetadataByKey"); diff --git a/docs/ModerationApi.md b/docs/ModerationApi.md index ab95ed94..ab63a29e 100644 --- a/docs/ModerationApi.md +++ b/docs/ModerationApi.md @@ -36,7 +36,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## banFromChannelsWithCustomChannelTypes -> Object banFromChannelsWithCustomChannelTypes(apiToken, userId, banFromChannelsWithCustomChannelTypesData) +> Object banFromChannelsWithCustomChannelTypes(userId).apiToken(apiToken).banFromChannelsWithCustomChannelTypesData(banFromChannelsWithCustomChannelTypesData).execute(); Ban from channels with custom channel types @@ -67,7 +67,10 @@ public class Example { String userId = "userId_example"; // String | BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData = new BanFromChannelsWithCustomChannelTypesData(); // BanFromChannelsWithCustomChannelTypesData | try { - Object result = apiInstance.banFromChannelsWithCustomChannelTypes(apiToken, userId, banFromChannelsWithCustomChannelTypesData); + Object result = api.banFromChannelsWithCustomChannelTypes(userId) + .apiToken(apiToken) + .banFromChannelsWithCustomChannelTypesData(banFromChannelsWithCustomChannelTypesData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#banFromChannelsWithCustomChannelTypes"); @@ -110,7 +113,7 @@ No authorization required ## blockUser -> BlockUserResponse blockUser(apiToken, userId, blockUserData) +> BlockUserResponse blockUser(userId).apiToken(apiToken).blockUserData(blockUserData).execute(); Block a user @@ -141,7 +144,10 @@ public class Example { String userId = "userId_example"; // String | BlockUserData blockUserData = new BlockUserData(); // BlockUserData | try { - BlockUserResponse result = apiInstance.blockUser(apiToken, userId, blockUserData); + BlockUserResponse result = api.blockUser(userId) + .apiToken(apiToken) + .blockUserData(blockUserData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#blockUser"); @@ -184,7 +190,7 @@ No authorization required ## gcBanUser -> GcBanUserResponse gcBanUser(apiToken, channelUrl, gcBanUserData) +> GcBanUserResponse gcBanUser(channelUrl).apiToken(apiToken).gcBanUserData(gcBanUserData).execute(); Ban a user @@ -215,7 +221,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcBanUserData gcBanUserData = new GcBanUserData(); // GcBanUserData | try { - GcBanUserResponse result = apiInstance.gcBanUser(apiToken, channelUrl, gcBanUserData); + GcBanUserResponse result = api.gcBanUser(channelUrl) + .apiToken(apiToken) + .gcBanUserData(gcBanUserData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcBanUser"); @@ -258,7 +267,7 @@ No authorization required ## gcFreezeChannel -> SendBirdGroupChannel gcFreezeChannel(apiToken, channelUrl, gcFreezeChannelData) +> SendBirdGroupChannel gcFreezeChannel(channelUrl).apiToken(apiToken).gcFreezeChannelData(gcFreezeChannelData).execute(); Freeze a channel @@ -291,7 +300,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcFreezeChannelData gcFreezeChannelData = new GcFreezeChannelData(); // GcFreezeChannelData | try { - SendBirdGroupChannel result = apiInstance.gcFreezeChannel(apiToken, channelUrl, gcFreezeChannelData); + SendBirdGroupChannel result = api.gcFreezeChannel(channelUrl) + .apiToken(apiToken) + .gcFreezeChannelData(gcFreezeChannelData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcFreezeChannel"); @@ -334,7 +346,7 @@ No authorization required ## gcListBannedUsers -> GcListBannedUsersResponse gcListBannedUsers(apiToken, channelUrl, token, limit) +> GcListBannedUsersResponse gcListBannedUsers(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List banned users @@ -370,7 +382,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - GcListBannedUsersResponse result = apiInstance.gcListBannedUsers(apiToken, channelUrl, token, limit); + GcListBannedUsersResponse result = api.gcListBannedUsers(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcListBannedUsers"); @@ -414,7 +430,7 @@ No authorization required ## gcListMutedUsers -> GcListMutedUsersResponse gcListMutedUsers(apiToken, channelUrl, token, limit) +> GcListMutedUsersResponse gcListMutedUsers(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List muted users @@ -450,7 +466,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - GcListMutedUsersResponse result = apiInstance.gcListMutedUsers(apiToken, channelUrl, token, limit); + GcListMutedUsersResponse result = api.gcListMutedUsers(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcListMutedUsers"); @@ -494,7 +514,7 @@ No authorization required ## gcMuteUser -> SendBirdGroupChannel gcMuteUser(apiToken, channelUrl, gcMuteUserData) +> SendBirdGroupChannel gcMuteUser(channelUrl).apiToken(apiToken).gcMuteUserData(gcMuteUserData).execute(); Mute a user @@ -525,7 +545,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | GcMuteUserData gcMuteUserData = new GcMuteUserData(); // GcMuteUserData | try { - SendBirdGroupChannel result = apiInstance.gcMuteUser(apiToken, channelUrl, gcMuteUserData); + SendBirdGroupChannel result = api.gcMuteUser(channelUrl) + .apiToken(apiToken) + .gcMuteUserData(gcMuteUserData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcMuteUser"); @@ -568,7 +591,7 @@ No authorization required ## gcUnbanUserById -> OcDeleteChannelByUrl200Response gcUnbanUserById(apiToken, channelUrl, bannedUserId) +> OcDeleteChannelByUrl200Response gcUnbanUserById(channelUrl, bannedUserId).apiToken(apiToken).execute(); Unban a user @@ -599,7 +622,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String bannedUserId = "bannedUserId_example"; // String | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcUnbanUserById(apiToken, channelUrl, bannedUserId); + OcDeleteChannelByUrl200Response result = api.gcUnbanUserById(channelUrl, bannedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcUnbanUserById"); @@ -642,7 +667,7 @@ No authorization required ## gcUnmuteUserById -> OcDeleteChannelByUrl200Response gcUnmuteUserById(apiToken, channelUrl, mutedUserId) +> OcDeleteChannelByUrl200Response gcUnmuteUserById(channelUrl, mutedUserId).apiToken(apiToken).execute(); Unmute a user @@ -673,7 +698,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String mutedUserId = "mutedUserId_example"; // String | try { - OcDeleteChannelByUrl200Response result = apiInstance.gcUnmuteUserById(apiToken, channelUrl, mutedUserId); + OcDeleteChannelByUrl200Response result = api.gcUnmuteUserById(channelUrl, mutedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcUnmuteUserById"); @@ -716,7 +743,7 @@ No authorization required ## gcUpdateBanById -> GcUpdateBanByIdResponse gcUpdateBanById(apiToken, channelUrl, bannedUserId, gcUpdateBanByIdData) +> GcUpdateBanByIdResponse gcUpdateBanById(channelUrl, bannedUserId).apiToken(apiToken).gcUpdateBanByIdData(gcUpdateBanByIdData).execute(); Update a ban @@ -748,7 +775,10 @@ public class Example { String bannedUserId = "bannedUserId_example"; // String | GcUpdateBanByIdData gcUpdateBanByIdData = new GcUpdateBanByIdData(); // GcUpdateBanByIdData | try { - GcUpdateBanByIdResponse result = apiInstance.gcUpdateBanById(apiToken, channelUrl, bannedUserId, gcUpdateBanByIdData); + GcUpdateBanByIdResponse result = api.gcUpdateBanById(channelUrl, bannedUserId) + .apiToken(apiToken) + .gcUpdateBanByIdData(gcUpdateBanByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcUpdateBanById"); @@ -792,7 +822,7 @@ No authorization required ## gcViewBanById -> GcViewBanByIdResponse gcViewBanById(apiToken, channelUrl, bannedUserId) +> GcViewBanByIdResponse gcViewBanById(channelUrl, bannedUserId).apiToken(apiToken).execute(); View a ban @@ -823,7 +853,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String bannedUserId = "bannedUserId_example"; // String | try { - GcViewBanByIdResponse result = apiInstance.gcViewBanById(apiToken, channelUrl, bannedUserId); + GcViewBanByIdResponse result = api.gcViewBanById(channelUrl, bannedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcViewBanById"); @@ -866,7 +898,7 @@ No authorization required ## gcViewMuteById -> GcViewMuteByIdResponse gcViewMuteById(apiToken, channelUrl, mutedUserId) +> GcViewMuteByIdResponse gcViewMuteById(channelUrl, mutedUserId).apiToken(apiToken).execute(); View a mute @@ -897,7 +929,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String mutedUserId = "mutedUserId_example"; // String | try { - GcViewMuteByIdResponse result = apiInstance.gcViewMuteById(apiToken, channelUrl, mutedUserId); + GcViewMuteByIdResponse result = api.gcViewMuteById(channelUrl, mutedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#gcViewMuteById"); @@ -940,7 +974,7 @@ No authorization required ## listBannedChannels -> ListBannedChannelsResponse listBannedChannels(apiToken, userId, token, limit) +> ListBannedChannelsResponse listBannedChannels(userId).apiToken(apiToken).token(token).limit(limit).execute(); List banned channels @@ -976,7 +1010,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListBannedChannelsResponse result = apiInstance.listBannedChannels(apiToken, userId, token, limit); + ListBannedChannelsResponse result = api.listBannedChannels(userId) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#listBannedChannels"); @@ -1020,7 +1058,7 @@ No authorization required ## listBlockedUsers -> ListBlockedUsersResponse listBlockedUsers(apiToken, userId, token, limit, userIds, metadatakey, metadatavaluesIn) +> ListBlockedUsersResponse listBlockedUsers(userId).apiToken(apiToken).token(token).limit(limit).userIds(userIds).metadatakey(metadatakey).metadatavaluesIn(metadatavaluesIn).execute(); List blocked users @@ -1059,7 +1097,14 @@ public class Example { String metadatakey = "metadatakey_example"; // String | String metadatavaluesIn = "metadatavaluesIn_example"; // String | try { - ListBlockedUsersResponse result = apiInstance.listBlockedUsers(apiToken, userId, token, limit, userIds, metadatakey, metadatavaluesIn); + ListBlockedUsersResponse result = api.listBlockedUsers(userId) + .apiToken(apiToken) + .token(token) + .limit(limit) + .userIds(userIds) + .metadatakey(metadatakey) + .metadatavaluesIn(metadatavaluesIn) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#listBlockedUsers"); @@ -1106,7 +1151,7 @@ No authorization required ## listMutedChannels -> ListMutedChannelsResponse listMutedChannels(apiToken, userId, token, limit) +> ListMutedChannelsResponse listMutedChannels(userId).apiToken(apiToken).token(token).limit(limit).execute(); List muted channels @@ -1142,7 +1187,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListMutedChannelsResponse result = apiInstance.listMutedChannels(apiToken, userId, token, limit); + ListMutedChannelsResponse result = api.listMutedChannels(userId) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#listMutedChannels"); @@ -1186,7 +1235,7 @@ No authorization required ## muteInChannelsWithCustomChannelTypes -> Object muteInChannelsWithCustomChannelTypes(apiToken, userId, muteInChannelsWithCustomChannelTypesData) +> Object muteInChannelsWithCustomChannelTypes(userId).apiToken(apiToken).muteInChannelsWithCustomChannelTypesData(muteInChannelsWithCustomChannelTypesData).execute(); Mute in channels with custom channel types @@ -1217,7 +1266,10 @@ public class Example { String userId = "userId_example"; // String | MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData = new MuteInChannelsWithCustomChannelTypesData(); // MuteInChannelsWithCustomChannelTypesData | try { - Object result = apiInstance.muteInChannelsWithCustomChannelTypes(apiToken, userId, muteInChannelsWithCustomChannelTypesData); + Object result = api.muteInChannelsWithCustomChannelTypes(userId) + .apiToken(apiToken) + .muteInChannelsWithCustomChannelTypesData(muteInChannelsWithCustomChannelTypesData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#muteInChannelsWithCustomChannelTypes"); @@ -1260,7 +1312,7 @@ No authorization required ## ocBanUser -> OcBanUserResponse ocBanUser(apiToken, channelUrl, ocBanUserData) +> OcBanUserResponse ocBanUser(channelUrl).apiToken(apiToken).ocBanUserData(ocBanUserData).execute(); Ban a user @@ -1291,7 +1343,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | OcBanUserData ocBanUserData = new OcBanUserData(); // OcBanUserData | try { - OcBanUserResponse result = apiInstance.ocBanUser(apiToken, channelUrl, ocBanUserData); + OcBanUserResponse result = api.ocBanUser(channelUrl) + .apiToken(apiToken) + .ocBanUserData(ocBanUserData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocBanUser"); @@ -1334,7 +1389,7 @@ No authorization required ## ocFreezeChannel -> SendBirdOpenChannel ocFreezeChannel(apiToken, channelUrl, ocFreezeChannelData) +> SendBirdOpenChannel ocFreezeChannel(channelUrl).apiToken(apiToken).ocFreezeChannelData(ocFreezeChannelData).execute(); Freeze a channel @@ -1367,7 +1422,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | OcFreezeChannelData ocFreezeChannelData = new OcFreezeChannelData(); // OcFreezeChannelData | try { - SendBirdOpenChannel result = apiInstance.ocFreezeChannel(apiToken, channelUrl, ocFreezeChannelData); + SendBirdOpenChannel result = api.ocFreezeChannel(channelUrl) + .apiToken(apiToken) + .ocFreezeChannelData(ocFreezeChannelData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocFreezeChannel"); @@ -1410,7 +1468,7 @@ No authorization required ## ocListBannedUsers -> OcListBannedUsersResponse ocListBannedUsers(apiToken, channelUrl, token, limit) +> OcListBannedUsersResponse ocListBannedUsers(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List banned users @@ -1446,7 +1504,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - OcListBannedUsersResponse result = apiInstance.ocListBannedUsers(apiToken, channelUrl, token, limit); + OcListBannedUsersResponse result = api.ocListBannedUsers(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocListBannedUsers"); @@ -1490,7 +1552,7 @@ No authorization required ## ocListMutedUsers -> OcListMutedUsersResponse ocListMutedUsers(apiToken, channelUrl, token, limit) +> OcListMutedUsersResponse ocListMutedUsers(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List muted users @@ -1526,7 +1588,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - OcListMutedUsersResponse result = apiInstance.ocListMutedUsers(apiToken, channelUrl, token, limit); + OcListMutedUsersResponse result = api.ocListMutedUsers(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocListMutedUsers"); @@ -1570,7 +1636,7 @@ No authorization required ## ocMuteUser -> SendBirdOpenChannel ocMuteUser(apiToken, channelUrl, ocMuteUserData) +> SendBirdOpenChannel ocMuteUser(channelUrl).apiToken(apiToken).ocMuteUserData(ocMuteUserData).execute(); Mute a user @@ -1600,7 +1666,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | OcMuteUserData ocMuteUserData = new OcMuteUserData(); // OcMuteUserData | try { - SendBirdOpenChannel result = apiInstance.ocMuteUser(apiToken, channelUrl, ocMuteUserData); + SendBirdOpenChannel result = api.ocMuteUser(channelUrl) + .apiToken(apiToken) + .ocMuteUserData(ocMuteUserData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocMuteUser"); @@ -1643,7 +1712,7 @@ No authorization required ## ocUnbanUserById -> OcDeleteChannelByUrl200Response ocUnbanUserById(apiToken, channelUrl, bannedUserId) +> OcDeleteChannelByUrl200Response ocUnbanUserById(channelUrl, bannedUserId).apiToken(apiToken).execute(); Unban a user @@ -1674,7 +1743,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String bannedUserId = "bannedUserId_example"; // String | try { - OcDeleteChannelByUrl200Response result = apiInstance.ocUnbanUserById(apiToken, channelUrl, bannedUserId); + OcDeleteChannelByUrl200Response result = api.ocUnbanUserById(channelUrl, bannedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocUnbanUserById"); @@ -1717,7 +1788,7 @@ No authorization required ## ocUnmuteUserById -> OcDeleteChannelByUrl200Response ocUnmuteUserById(apiToken, channelUrl, mutedUserId) +> OcDeleteChannelByUrl200Response ocUnmuteUserById(channelUrl, mutedUserId).apiToken(apiToken).execute(); Unmute a user @@ -1748,7 +1819,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String mutedUserId = "mutedUserId_example"; // String | try { - OcDeleteChannelByUrl200Response result = apiInstance.ocUnmuteUserById(apiToken, channelUrl, mutedUserId); + OcDeleteChannelByUrl200Response result = api.ocUnmuteUserById(channelUrl, mutedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocUnmuteUserById"); @@ -1791,7 +1864,7 @@ No authorization required ## ocUpdateBanById -> OcUpdateBanByIdResponse ocUpdateBanById(apiToken, channelUrl, bannedUserId, ocUpdateBanByIdData) +> OcUpdateBanByIdResponse ocUpdateBanById(channelUrl, bannedUserId).apiToken(apiToken).ocUpdateBanByIdData(ocUpdateBanByIdData).execute(); Update a ban @@ -1823,7 +1896,10 @@ public class Example { String bannedUserId = "bannedUserId_example"; // String | OcUpdateBanByIdData ocUpdateBanByIdData = new OcUpdateBanByIdData(); // OcUpdateBanByIdData | try { - OcUpdateBanByIdResponse result = apiInstance.ocUpdateBanById(apiToken, channelUrl, bannedUserId, ocUpdateBanByIdData); + OcUpdateBanByIdResponse result = api.ocUpdateBanById(channelUrl, bannedUserId) + .apiToken(apiToken) + .ocUpdateBanByIdData(ocUpdateBanByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocUpdateBanById"); @@ -1867,7 +1943,7 @@ No authorization required ## ocViewBanById -> OcViewBanByIdResponse ocViewBanById(apiToken, channelUrl, bannedUserId) +> OcViewBanByIdResponse ocViewBanById(channelUrl, bannedUserId).apiToken(apiToken).execute(); View a ban @@ -1898,7 +1974,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String bannedUserId = "bannedUserId_example"; // String | try { - OcViewBanByIdResponse result = apiInstance.ocViewBanById(apiToken, channelUrl, bannedUserId); + OcViewBanByIdResponse result = api.ocViewBanById(channelUrl, bannedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocViewBanById"); @@ -1941,7 +2019,7 @@ No authorization required ## ocViewMuteById -> OcViewMuteByIdResponse ocViewMuteById(apiToken, channelUrl, mutedUserId) +> OcViewMuteByIdResponse ocViewMuteById(channelUrl, mutedUserId).apiToken(apiToken).execute(); View a mute @@ -1972,7 +2050,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String mutedUserId = "mutedUserId_example"; // String | try { - OcViewMuteByIdResponse result = apiInstance.ocViewMuteById(apiToken, channelUrl, mutedUserId); + OcViewMuteByIdResponse result = api.ocViewMuteById(channelUrl, mutedUserId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#ocViewMuteById"); @@ -2015,7 +2095,7 @@ No authorization required ## unblockUserById -> Object unblockUserById(apiToken, userId, targetId) +> Object unblockUserById(userId, targetId).apiToken(apiToken).execute(); Unblock a user @@ -2046,7 +2126,9 @@ public class Example { String userId = "userId_example"; // String | String targetId = "targetId_example"; // String | try { - Object result = apiInstance.unblockUserById(apiToken, userId, targetId); + Object result = api.unblockUserById(userId, targetId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModerationApi#unblockUserById"); diff --git a/docs/OpenChannelApi.md b/docs/OpenChannelApi.md index 31d8d55a..f21e5cf8 100644 --- a/docs/OpenChannelApi.md +++ b/docs/OpenChannelApi.md @@ -18,7 +18,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## ocCancelTheRegistrationOfOperators -> ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, deleteAll) +> ocCancelTheRegistrationOfOperators(channelUrl).apiToken(apiToken).operatorIds(operatorIds).deleteAll(deleteAll).execute(); Cancel the registration of operators @@ -54,7 +54,11 @@ public class Example { List operatorIds = Arrays.asList(); // List | Boolean deleteAll = true; // Boolean | try { - apiInstance.ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, deleteAll); + api.ocCancelTheRegistrationOfOperators(channelUrl) + .apiToken(apiToken) + .operatorIds(operatorIds) + .deleteAll(deleteAll) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocCancelTheRegistrationOfOperators"); System.err.println("Status code: " + e.getCode()); @@ -97,7 +101,7 @@ No authorization required ## ocCreateChannel -> SendBirdOpenChannel ocCreateChannel(apiToken, ocCreateChannelData) +> SendBirdOpenChannel ocCreateChannel().apiToken(apiToken).ocCreateChannelData(ocCreateChannelData).execute(); Create a channel @@ -128,7 +132,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | OcCreateChannelData ocCreateChannelData = new OcCreateChannelData(); // OcCreateChannelData | try { - SendBirdOpenChannel result = apiInstance.ocCreateChannel(apiToken, ocCreateChannelData); + SendBirdOpenChannel result = api.ocCreateChannel() + .apiToken(apiToken) + .ocCreateChannelData(ocCreateChannelData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocCreateChannel"); @@ -170,7 +177,7 @@ No authorization required ## ocDeleteChannelByUrl -> OcDeleteChannelByUrl200Response ocDeleteChannelByUrl(apiToken, channelUrl) +> OcDeleteChannelByUrl200Response ocDeleteChannelByUrl(channelUrl).apiToken(apiToken).execute(); Delete a channel @@ -200,7 +207,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String channelUrl = "channelUrl_example"; // String | try { - OcDeleteChannelByUrl200Response result = apiInstance.ocDeleteChannelByUrl(apiToken, channelUrl); + OcDeleteChannelByUrl200Response result = api.ocDeleteChannelByUrl(channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocDeleteChannelByUrl"); @@ -242,7 +251,7 @@ No authorization required ## ocListChannels -> OcListChannelsResponse ocListChannels(apiToken, token, limit, customTypes, nameContains, urlContains, showFrozen, showMetadata, customType) +> OcListChannelsResponse ocListChannels().apiToken(apiToken).token(token).limit(limit).customTypes(customTypes).nameContains(nameContains).urlContains(urlContains).showFrozen(showFrozen).showMetadata(showMetadata).customType(customType).execute(); List channels @@ -279,7 +288,17 @@ public class Example { Boolean showMetadata = true; // Boolean | String customType = "customType_example"; // String | try { - OcListChannelsResponse result = apiInstance.ocListChannels(apiToken, token, limit, customTypes, nameContains, urlContains, showFrozen, showMetadata, customType); + OcListChannelsResponse result = api.ocListChannels() + .apiToken(apiToken) + .token(token) + .limit(limit) + .customTypes(customTypes) + .nameContains(nameContains) + .urlContains(urlContains) + .showFrozen(showFrozen) + .showMetadata(showMetadata) + .customType(customType) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocListChannels"); @@ -328,7 +347,7 @@ No authorization required ## ocListOperators -> OcListOperatorsResponse ocListOperators(apiToken, channelUrl, token, limit) +> OcListOperatorsResponse ocListOperators(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List operators @@ -364,7 +383,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - OcListOperatorsResponse result = apiInstance.ocListOperators(apiToken, channelUrl, token, limit); + OcListOperatorsResponse result = api.ocListOperators(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocListOperators"); @@ -408,7 +431,7 @@ No authorization required ## ocListParticipants -> OcListParticipantsResponse ocListParticipants(apiToken, channelUrl, token, limit) +> OcListParticipantsResponse ocListParticipants(channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List participants @@ -444,7 +467,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - OcListParticipantsResponse result = apiInstance.ocListParticipants(apiToken, channelUrl, token, limit); + OcListParticipantsResponse result = api.ocListParticipants(channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocListParticipants"); @@ -488,7 +515,7 @@ No authorization required ## ocRegisterOperators -> OcDeleteChannelByUrl200Response ocRegisterOperators(apiToken, channelUrl, ocRegisterOperatorsData) +> OcDeleteChannelByUrl200Response ocRegisterOperators(channelUrl).apiToken(apiToken).ocRegisterOperatorsData(ocRegisterOperatorsData).execute(); Register operators @@ -519,7 +546,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | OcRegisterOperatorsData ocRegisterOperatorsData = new OcRegisterOperatorsData(); // OcRegisterOperatorsData | try { - OcDeleteChannelByUrl200Response result = apiInstance.ocRegisterOperators(apiToken, channelUrl, ocRegisterOperatorsData); + OcDeleteChannelByUrl200Response result = api.ocRegisterOperators(channelUrl) + .apiToken(apiToken) + .ocRegisterOperatorsData(ocRegisterOperatorsData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocRegisterOperators"); @@ -562,7 +592,7 @@ No authorization required ## ocUpdateChannelByUrl -> SendBirdOpenChannel ocUpdateChannelByUrl(apiToken, channelUrl, ocUpdateChannelByUrlData) +> SendBirdOpenChannel ocUpdateChannelByUrl(channelUrl).apiToken(apiToken).ocUpdateChannelByUrlData(ocUpdateChannelByUrlData).execute(); Update a channel @@ -593,7 +623,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | OcUpdateChannelByUrlData ocUpdateChannelByUrlData = new OcUpdateChannelByUrlData(); // OcUpdateChannelByUrlData | try { - SendBirdOpenChannel result = apiInstance.ocUpdateChannelByUrl(apiToken, channelUrl, ocUpdateChannelByUrlData); + SendBirdOpenChannel result = api.ocUpdateChannelByUrl(channelUrl) + .apiToken(apiToken) + .ocUpdateChannelByUrlData(ocUpdateChannelByUrlData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocUpdateChannelByUrl"); @@ -636,7 +669,7 @@ No authorization required ## ocViewChannelByUrl -> SendBirdOpenChannel ocViewChannelByUrl(apiToken, channelUrl) +> SendBirdOpenChannel ocViewChannelByUrl(channelUrl).apiToken(apiToken).execute(); View a channel @@ -666,7 +699,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String channelUrl = "channelUrl_example"; // String | try { - SendBirdOpenChannel result = apiInstance.ocViewChannelByUrl(apiToken, channelUrl); + SendBirdOpenChannel result = api.ocViewChannelByUrl(channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OpenChannelApi#ocViewChannelByUrl"); diff --git a/docs/PrivacyApi.md b/docs/PrivacyApi.md index 9f352b29..15d127a7 100644 --- a/docs/PrivacyApi.md +++ b/docs/PrivacyApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## cancelTheRegistrationOfGdprRequestById -> cancelTheRegistrationOfGdprRequestById(apiToken, requestId) +> cancelTheRegistrationOfGdprRequestById(requestId).apiToken(apiToken).execute(); Cancel the registration of a GDPR request @@ -43,7 +43,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String requestId = "requestId_example"; // String | try { - apiInstance.cancelTheRegistrationOfGdprRequestById(apiToken, requestId); + api.cancelTheRegistrationOfGdprRequestById(requestId) + .apiToken(apiToken) + .execute(); } catch (ApiException e) { System.err.println("Exception when calling PrivacyApi#cancelTheRegistrationOfGdprRequestById"); System.err.println("Status code: " + e.getCode()); @@ -84,7 +86,7 @@ No authorization required ## listGdprRequests -> ListGdprRequestsResponse listGdprRequests(apiToken, token, limit) +> ListGdprRequestsResponse listGdprRequests().apiToken(apiToken).token(token).limit(limit).execute(); List GDPR requests @@ -115,7 +117,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListGdprRequestsResponse result = apiInstance.listGdprRequests(apiToken, token, limit); + ListGdprRequestsResponse result = api.listGdprRequests() + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivacyApi#listGdprRequests"); @@ -158,7 +164,7 @@ No authorization required ## registerGdprRequest -> RegisterGdprRequestResponse registerGdprRequest(apiToken, registerGdprRequestData) +> RegisterGdprRequestResponse registerGdprRequest().apiToken(apiToken).registerGdprRequestData(registerGdprRequestData).execute(); Register a GDPR request @@ -189,7 +195,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | RegisterGdprRequestData registerGdprRequestData = new RegisterGdprRequestData(); // RegisterGdprRequestData | try { - RegisterGdprRequestResponse result = apiInstance.registerGdprRequest(apiToken, registerGdprRequestData); + RegisterGdprRequestResponse result = api.registerGdprRequest() + .apiToken(apiToken) + .registerGdprRequestData(registerGdprRequestData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivacyApi#registerGdprRequest"); @@ -231,7 +240,7 @@ No authorization required ## viewGdprRequestById -> ViewGdprRequestByIdResponse viewGdprRequestById(apiToken, requestId) +> ViewGdprRequestByIdResponse viewGdprRequestById(requestId).apiToken(apiToken).execute(); View a GDPR request @@ -261,7 +270,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String requestId = "requestId_example"; // String | try { - ViewGdprRequestByIdResponse result = apiInstance.viewGdprRequestById(apiToken, requestId); + ViewGdprRequestByIdResponse result = api.viewGdprRequestById(requestId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivacyApi#viewGdprRequestById"); diff --git a/docs/ReportApi.md b/docs/ReportApi.md index db19945f..1124aed1 100644 --- a/docs/ReportApi.md +++ b/docs/ReportApi.md @@ -17,7 +17,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## listReports -> ListReportsResponse listReports(apiToken, token, limit, startTs, endTs) +> ListReportsResponse listReports().apiToken(apiToken).token(token).limit(limit).startTs(startTs).endTs(endTs).execute(); List reports @@ -50,7 +50,13 @@ public class Example { Integer startTs = 56; // Integer | Integer endTs = 56; // Integer | try { - ListReportsResponse result = apiInstance.listReports(apiToken, token, limit, startTs, endTs); + ListReportsResponse result = api.listReports() + .apiToken(apiToken) + .token(token) + .limit(limit) + .startTs(startTs) + .endTs(endTs) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#listReports"); @@ -95,7 +101,7 @@ No authorization required ## listReportsOnChannelByUrl -> ListReportsOnChannelByUrlResponse listReportsOnChannelByUrl(apiToken, channelType, channelUrl, token, limit) +> ListReportsOnChannelByUrlResponse listReportsOnChannelByUrl(channelType, channelUrl).apiToken(apiToken).token(token).limit(limit).execute(); List reports on a channel @@ -135,7 +141,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListReportsOnChannelByUrlResponse result = apiInstance.listReportsOnChannelByUrl(apiToken, channelType, channelUrl, token, limit); + ListReportsOnChannelByUrlResponse result = api.listReportsOnChannelByUrl(channelType, channelUrl) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#listReportsOnChannelByUrl"); @@ -180,7 +190,7 @@ No authorization required ## listReportsOnMessageById -> ListReportsOnMessageByIdResponse listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, token, limit) +> ListReportsOnMessageByIdResponse listReportsOnMessageById(channelType, channelUrl, messageId).apiToken(apiToken).token(token).limit(limit).execute(); List reports on a message @@ -224,7 +234,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListReportsOnMessageByIdResponse result = apiInstance.listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, token, limit); + ListReportsOnMessageByIdResponse result = api.listReportsOnMessageById(channelType, channelUrl, messageId) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#listReportsOnMessageById"); @@ -270,7 +284,7 @@ No authorization required ## listReportsOnUserById -> ListReportsOnUserByIdResponse listReportsOnUserById(apiToken, offendingUserId, token, limit) +> ListReportsOnUserByIdResponse listReportsOnUserById(offendingUserId).apiToken(apiToken).token(token).limit(limit).execute(); List reports on a user @@ -306,7 +320,11 @@ public class Example { String token = "token_example"; // String | Integer limit = 56; // Integer | try { - ListReportsOnUserByIdResponse result = apiInstance.listReportsOnUserById(apiToken, offendingUserId, token, limit); + ListReportsOnUserByIdResponse result = api.listReportsOnUserById(offendingUserId) + .apiToken(apiToken) + .token(token) + .limit(limit) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#listReportsOnUserById"); @@ -350,7 +368,7 @@ No authorization required ## reportChannelByUrl -> ReportChannelByUrlResponse reportChannelByUrl(apiToken, channelType, channelUrl, reportChannelByUrlData) +> ReportChannelByUrlResponse reportChannelByUrl(channelType, channelUrl).apiToken(apiToken).reportChannelByUrlData(reportChannelByUrlData).execute(); Report a channel @@ -382,7 +400,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | ReportChannelByUrlData reportChannelByUrlData = new ReportChannelByUrlData(); // ReportChannelByUrlData | try { - ReportChannelByUrlResponse result = apiInstance.reportChannelByUrl(apiToken, channelType, channelUrl, reportChannelByUrlData); + ReportChannelByUrlResponse result = api.reportChannelByUrl(channelType, channelUrl) + .apiToken(apiToken) + .reportChannelByUrlData(reportChannelByUrlData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#reportChannelByUrl"); @@ -426,7 +447,7 @@ No authorization required ## reportMessageById -> ReportMessageByIdResponse reportMessageById(apiToken, channelType, channelUrl, messageId, reportMessageByIdData) +> ReportMessageByIdResponse reportMessageById(channelType, channelUrl, messageId).apiToken(apiToken).reportMessageByIdData(reportMessageByIdData).execute(); Report a message @@ -459,7 +480,10 @@ public class Example { String messageId = "messageId_example"; // String | ReportMessageByIdData reportMessageByIdData = new ReportMessageByIdData(); // ReportMessageByIdData | try { - ReportMessageByIdResponse result = apiInstance.reportMessageById(apiToken, channelType, channelUrl, messageId, reportMessageByIdData); + ReportMessageByIdResponse result = api.reportMessageById(channelType, channelUrl, messageId) + .apiToken(apiToken) + .reportMessageByIdData(reportMessageByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#reportMessageById"); @@ -504,7 +528,7 @@ No authorization required ## reportUserById -> ReportUserByIdResponse reportUserById(apiToken, offendingUserId, reportUserByIdData) +> ReportUserByIdResponse reportUserById(offendingUserId).apiToken(apiToken).reportUserByIdData(reportUserByIdData).execute(); Report a user @@ -535,7 +559,10 @@ public class Example { String offendingUserId = "offendingUserId_example"; // String | ReportUserByIdData reportUserByIdData = new ReportUserByIdData(); // ReportUserByIdData | try { - ReportUserByIdResponse result = apiInstance.reportUserById(apiToken, offendingUserId, reportUserByIdData); + ReportUserByIdResponse result = api.reportUserById(offendingUserId) + .apiToken(apiToken) + .reportUserByIdData(reportUserByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#reportUserById"); @@ -578,7 +605,7 @@ No authorization required ## viewModeratedMessageById -> Object viewModeratedMessageById(apiToken, channelType, channelUrl, messageId) +> Object viewModeratedMessageById(channelType, channelUrl, messageId).apiToken(apiToken).execute(); View a moderated message @@ -610,7 +637,9 @@ public class Example { String channelUrl = "channelUrl_example"; // String | String messageId = "messageId_example"; // String | try { - Object result = apiInstance.viewModeratedMessageById(apiToken, channelType, channelUrl, messageId); + Object result = api.viewModeratedMessageById(channelType, channelUrl, messageId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportApi#viewModeratedMessageById"); diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 78d91d71..8a4836c3 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -16,7 +16,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## getDetailedOpenRateOfAnnouncementById -> GetDetailedOpenRateOfAnnouncementByIdResponse getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId) +> GetDetailedOpenRateOfAnnouncementByIdResponse getDetailedOpenRateOfAnnouncementById(uniqueId).apiToken(apiToken).execute(); Get detailed open rate of an announcement @@ -50,7 +50,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String uniqueId = "uniqueId_example"; // String | try { - GetDetailedOpenRateOfAnnouncementByIdResponse result = apiInstance.getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId); + GetDetailedOpenRateOfAnnouncementByIdResponse result = api.getDetailedOpenRateOfAnnouncementById(uniqueId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#getDetailedOpenRateOfAnnouncementById"); @@ -92,7 +94,7 @@ No authorization required ## getDetailedOpenStatusOfAnnouncementById -> GetDetailedOpenStatusOfAnnouncementByIdResponse getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, limit, next, uniqueIds, channelUrls, hasOpened) +> GetDetailedOpenStatusOfAnnouncementByIdResponse getDetailedOpenStatusOfAnnouncementById(uniqueId).apiToken(apiToken).limit(limit).next(next).uniqueIds(uniqueIds).channelUrls(channelUrls).hasOpened(hasOpened).execute(); Get detailed open status of an announcement @@ -127,7 +129,14 @@ public class Example { List channelUrls = Arrays.asList(); // List | Boolean hasOpened = true; // Boolean | try { - GetDetailedOpenStatusOfAnnouncementByIdResponse result = apiInstance.getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, limit, next, uniqueIds, channelUrls, hasOpened); + GetDetailedOpenStatusOfAnnouncementByIdResponse result = api.getDetailedOpenStatusOfAnnouncementById(uniqueId) + .apiToken(apiToken) + .limit(limit) + .next(next) + .uniqueIds(uniqueIds) + .channelUrls(channelUrls) + .hasOpened(hasOpened) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#getDetailedOpenStatusOfAnnouncementById"); @@ -174,7 +183,7 @@ No authorization required ## retrieveAdvancedAnalyticsMetrics -> RetrieveAdvancedAnalyticsMetricsResponse retrieveAdvancedAnalyticsMetrics(apiToken) +> RetrieveAdvancedAnalyticsMetricsResponse retrieveAdvancedAnalyticsMetrics().apiToken(apiToken).execute(); Retrieve Advanced analytics metrics @@ -205,7 +214,9 @@ public class Example { StatisticsApi apiInstance = new StatisticsApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - RetrieveAdvancedAnalyticsMetricsResponse result = apiInstance.retrieveAdvancedAnalyticsMetrics(apiToken); + RetrieveAdvancedAnalyticsMetricsResponse result = api.retrieveAdvancedAnalyticsMetrics() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#retrieveAdvancedAnalyticsMetrics"); @@ -246,7 +257,7 @@ No authorization required ## viewNumberOfConcurrentConnections -> ViewNumberOfConcurrentConnectionsResponse viewNumberOfConcurrentConnections(apiToken) +> ViewNumberOfConcurrentConnectionsResponse viewNumberOfConcurrentConnections().apiToken(apiToken).execute(); View number of concurrent connections @@ -274,7 +285,9 @@ public class Example { StatisticsApi apiInstance = new StatisticsApi(defaultClient); String apiToken = "{{API_TOKEN}}"; // String | try { - ViewNumberOfConcurrentConnectionsResponse result = apiInstance.viewNumberOfConcurrentConnections(apiToken); + ViewNumberOfConcurrentConnectionsResponse result = api.viewNumberOfConcurrentConnections() + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#viewNumberOfConcurrentConnections"); @@ -315,7 +328,7 @@ No authorization required ## viewNumberOfDailyActiveUsers -> ViewNumberOfDailyActiveUsersResponse viewNumberOfDailyActiveUsers(apiToken, date) +> ViewNumberOfDailyActiveUsersResponse viewNumberOfDailyActiveUsers().apiToken(apiToken).date(date).execute(); View number of daily active users @@ -345,7 +358,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String date = "date_example"; // String | try { - ViewNumberOfDailyActiveUsersResponse result = apiInstance.viewNumberOfDailyActiveUsers(apiToken, date); + ViewNumberOfDailyActiveUsersResponse result = api.viewNumberOfDailyActiveUsers() + .apiToken(apiToken) + .date(date) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#viewNumberOfDailyActiveUsers"); @@ -387,7 +403,7 @@ No authorization required ## viewNumberOfMonthlyActiveUsers -> ViewNumberOfMonthlyActiveUsersResponse viewNumberOfMonthlyActiveUsers(apiToken, date) +> ViewNumberOfMonthlyActiveUsersResponse viewNumberOfMonthlyActiveUsers().apiToken(apiToken).date(date).execute(); View number of monthly active users @@ -417,7 +433,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String date = "date_example"; // String | try { - ViewNumberOfMonthlyActiveUsersResponse result = apiInstance.viewNumberOfMonthlyActiveUsers(apiToken, date); + ViewNumberOfMonthlyActiveUsersResponse result = api.viewNumberOfMonthlyActiveUsers() + .apiToken(apiToken) + .date(date) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#viewNumberOfMonthlyActiveUsers"); @@ -459,7 +478,7 @@ No authorization required ## viewNumberOfPeakConnections -> ViewNumberOfPeakConnectionsResponse viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, startDay, endDay) +> ViewNumberOfPeakConnectionsResponse viewNumberOfPeakConnections().apiToken(apiToken).timeDimension(timeDimension).startYear(startYear).startMonth(startMonth).endYear(endYear).endMonth(endMonth).startDay(startDay).endDay(endDay).execute(); View number of peak connections @@ -495,7 +514,16 @@ public class Example { Integer startDay = 56; // Integer | Integer endDay = 56; // Integer | try { - ViewNumberOfPeakConnectionsResponse result = apiInstance.viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, startDay, endDay); + ViewNumberOfPeakConnectionsResponse result = api.viewNumberOfPeakConnections() + .apiToken(apiToken) + .timeDimension(timeDimension) + .startYear(startYear) + .startMonth(startMonth) + .endYear(endYear) + .endMonth(endMonth) + .startDay(startDay) + .endDay(endDay) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatisticsApi#viewNumberOfPeakConnections"); diff --git a/docs/UserApi.md b/docs/UserApi.md index 27794a92..1cb66c4a 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -39,7 +39,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## addRegistrationOrDeviceToken -> AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData) +> AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(userId, tokenType).apiToken(apiToken).addRegistrationOrDeviceTokenData(addRegistrationOrDeviceTokenData).execute(); Add a registration or device token @@ -77,7 +77,10 @@ public class Example { String tokenType = "tokenType_example"; // String | AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); + AddRegistrationOrDeviceTokenResponse result = api.addRegistrationOrDeviceToken(userId, tokenType) + .apiToken(apiToken) + .addRegistrationOrDeviceTokenData(addRegistrationOrDeviceTokenData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); @@ -121,7 +124,7 @@ No authorization required ## choosePushNotificationContentTemplate -> ChoosePushNotificationContentTemplateResponse choosePushNotificationContentTemplate(apiToken, userId, body) +> ChoosePushNotificationContentTemplateResponse choosePushNotificationContentTemplate(userId).apiToken(apiToken).body(body).execute(); Choose a push notification content template @@ -152,7 +155,10 @@ public class Example { String userId = "userId_example"; // String | Object body = null; // Object | try { - ChoosePushNotificationContentTemplateResponse result = apiInstance.choosePushNotificationContentTemplate(apiToken, userId, body); + ChoosePushNotificationContentTemplateResponse result = api.choosePushNotificationContentTemplate(userId) + .apiToken(apiToken) + .body(body) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#choosePushNotificationContentTemplate"); @@ -195,7 +201,7 @@ No authorization required ## createUser -> SendBirdUser createUser(apiToken, createUserData) +> SendBirdUser createUser().apiToken(apiToken).createUserData(createUserData).execute(); Create a user @@ -224,7 +230,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | CreateUserData createUserData = new CreateUserData(); // CreateUserData | try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); + SendBirdUser result = api.createUser() + .apiToken(apiToken) + .createUserData(createUserData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUser"); @@ -266,7 +275,7 @@ No authorization required ## createUserToken -> CreateUserTokenResponse createUserToken(apiToken, userId, createUserTokenData) +> CreateUserTokenResponse createUserToken(userId).apiToken(apiToken).createUserTokenData(createUserTokenData).execute(); Create user token @@ -292,7 +301,10 @@ public class Example { String userId = "userId_example"; // String | CreateUserTokenData createUserTokenData = new CreateUserTokenData(); // CreateUserTokenData | try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenData); + CreateUserTokenResponse result = api.createUserToken(userId) + .apiToken(apiToken) + .createUserTokenData(createUserTokenData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#createUserToken"); @@ -335,7 +347,7 @@ No authorization required ## deleteUserById -> Object deleteUserById(apiToken, userId) +> Object deleteUserById(userId).apiToken(apiToken).execute(); Delete a user @@ -365,7 +377,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String userId = "userId_example"; // String | try { - Object result = apiInstance.deleteUserById(apiToken, userId); + Object result = api.deleteUserById(userId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#deleteUserById"); @@ -407,7 +421,7 @@ No authorization required ## leaveMyGroupChannels -> Object leaveMyGroupChannels(apiToken, userId, leaveMyGroupChannelsData) +> Object leaveMyGroupChannels(userId).apiToken(apiToken).leaveMyGroupChannelsData(leaveMyGroupChannelsData).execute(); Leave my group channels @@ -442,7 +456,10 @@ public class Example { String userId = "userId_example"; // String | LeaveMyGroupChannelsData leaveMyGroupChannelsData = new LeaveMyGroupChannelsData(); // LeaveMyGroupChannelsData | try { - Object result = apiInstance.leaveMyGroupChannels(apiToken, userId, leaveMyGroupChannelsData); + Object result = api.leaveMyGroupChannels(userId) + .apiToken(apiToken) + .leaveMyGroupChannelsData(leaveMyGroupChannelsData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#leaveMyGroupChannels"); @@ -485,7 +502,7 @@ No authorization required ## listMyGroupChannels -> ListMyGroupChannelsResponse listMyGroupChannels(apiToken, userId, token, limit, distinctMode, publicMode, superMode, hiddenMode, memberStateFilter, unreadFilter, createdAfter, createdBefore, showEmpty, showFrozen, showMember, showDeliveryReceipt, showReadReceipt, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, searchQuery, searchFields, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, customType) +> ListMyGroupChannelsResponse listMyGroupChannels(userId).apiToken(apiToken).token(token).limit(limit).distinctMode(distinctMode).publicMode(publicMode).superMode(superMode).hiddenMode(hiddenMode).memberStateFilter(memberStateFilter).unreadFilter(unreadFilter).createdAfter(createdAfter).createdBefore(createdBefore).showEmpty(showEmpty).showFrozen(showFrozen).showMember(showMember).showDeliveryReceipt(showDeliveryReceipt).showReadReceipt(showReadReceipt).order(order).metadataOrderKey(metadataOrderKey).customTypes(customTypes).customTypeStartswith(customTypeStartswith).channelUrls(channelUrls).name(name).nameContains(nameContains).nameStartswith(nameStartswith).membersExactlyIn(membersExactlyIn).membersIncludeIn(membersIncludeIn).queryType(queryType).membersNickname(membersNickname).membersNicknameContains(membersNicknameContains).searchQuery(searchQuery).searchFields(searchFields).metadataKey(metadataKey).metadataValues(metadataValues).metadataValueStartswith(metadataValueStartswith).metacounterKey(metacounterKey).metacounterValues(metacounterValues).metacounterValueGt(metacounterValueGt).metacounterValueGte(metacounterValueGte).metacounterValueLt(metacounterValueLt).metacounterValueLte(metacounterValueLte).customType(customType).execute(); List my group channels @@ -559,7 +576,49 @@ public class Example { String metacounterValueLte = "metacounterValueLte_example"; // String | String customType = "customType_example"; // String | try { - ListMyGroupChannelsResponse result = apiInstance.listMyGroupChannels(apiToken, userId, token, limit, distinctMode, publicMode, superMode, hiddenMode, memberStateFilter, unreadFilter, createdAfter, createdBefore, showEmpty, showFrozen, showMember, showDeliveryReceipt, showReadReceipt, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, searchQuery, searchFields, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, customType); + ListMyGroupChannelsResponse result = api.listMyGroupChannels(userId) + .apiToken(apiToken) + .token(token) + .limit(limit) + .distinctMode(distinctMode) + .publicMode(publicMode) + .superMode(superMode) + .hiddenMode(hiddenMode) + .memberStateFilter(memberStateFilter) + .unreadFilter(unreadFilter) + .createdAfter(createdAfter) + .createdBefore(createdBefore) + .showEmpty(showEmpty) + .showFrozen(showFrozen) + .showMember(showMember) + .showDeliveryReceipt(showDeliveryReceipt) + .showReadReceipt(showReadReceipt) + .order(order) + .metadataOrderKey(metadataOrderKey) + .customTypes(customTypes) + .customTypeStartswith(customTypeStartswith) + .channelUrls(channelUrls) + .name(name) + .nameContains(nameContains) + .nameStartswith(nameStartswith) + .membersExactlyIn(membersExactlyIn) + .membersIncludeIn(membersIncludeIn) + .queryType(queryType) + .membersNickname(membersNickname) + .membersNicknameContains(membersNicknameContains) + .searchQuery(searchQuery) + .searchFields(searchFields) + .metadataKey(metadataKey) + .metadataValues(metadataValues) + .metadataValueStartswith(metadataValueStartswith) + .metacounterKey(metacounterKey) + .metacounterValues(metacounterValues) + .metacounterValueGt(metacounterValueGt) + .metacounterValueGte(metacounterValueGte) + .metacounterValueLt(metacounterValueLt) + .metacounterValueLte(metacounterValueLte) + .customType(customType) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#listMyGroupChannels"); @@ -641,7 +700,7 @@ No authorization required ## listRegistrationOrDeviceTokens -> ListRegistrationOrDeviceTokensResponse listRegistrationOrDeviceTokens(apiToken, userId, tokenType) +> ListRegistrationOrDeviceTokensResponse listRegistrationOrDeviceTokens(userId, tokenType).apiToken(apiToken).execute(); List registration or device tokens @@ -672,7 +731,9 @@ public class Example { String userId = "userId_example"; // String | String tokenType = "tokenType_example"; // String | try { - ListRegistrationOrDeviceTokensResponse result = apiInstance.listRegistrationOrDeviceTokens(apiToken, userId, tokenType); + ListRegistrationOrDeviceTokensResponse result = api.listRegistrationOrDeviceTokens(userId, tokenType) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#listRegistrationOrDeviceTokens"); @@ -715,7 +776,7 @@ No authorization required ## listUsers -> ListUsersResponse listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn) +> ListUsersResponse listUsers().apiToken(apiToken).token(token).limit(limit).activeMode(activeMode).showBot(showBot).userIds(userIds).nickname(nickname).nicknameStartswith(nicknameStartswith).metadatakey(metadatakey).metadatavaluesIn(metadatavaluesIn).execute(); List users @@ -753,7 +814,18 @@ public class Example { String metadatakey = "metadatakey_example"; // String | String metadatavaluesIn = "metadatavaluesIn_example"; // String | try { - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); + ListUsersResponse result = api.listUsers() + .apiToken(apiToken) + .token(token) + .limit(limit) + .activeMode(activeMode) + .showBot(showBot) + .userIds(userIds) + .nickname(nickname) + .nicknameStartswith(nicknameStartswith) + .metadatakey(metadatakey) + .metadatavaluesIn(metadatavaluesIn) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#listUsers"); @@ -803,7 +875,7 @@ No authorization required ## markAllMessagesAsRead -> Object markAllMessagesAsRead(apiToken, userId, markAllMessagesAsReadData) +> Object markAllMessagesAsRead(userId).apiToken(apiToken).markAllMessagesAsReadData(markAllMessagesAsReadData).execute(); Mark all messages as read @@ -834,7 +906,10 @@ public class Example { String userId = "userId_example"; // String | MarkAllMessagesAsReadData markAllMessagesAsReadData = new MarkAllMessagesAsReadData(); // MarkAllMessagesAsReadData | try { - Object result = apiInstance.markAllMessagesAsRead(apiToken, userId, markAllMessagesAsReadData); + Object result = api.markAllMessagesAsRead(userId) + .apiToken(apiToken) + .markAllMessagesAsReadData(markAllMessagesAsReadData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#markAllMessagesAsRead"); @@ -877,7 +952,7 @@ No authorization required ## registerAsOperatorToChannelsWithCustomChannelTypes -> Object registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, registerAsOperatorToChannelsWithCustomChannelTypesData) +> Object registerAsOperatorToChannelsWithCustomChannelTypes(userId).apiToken(apiToken).registerAsOperatorToChannelsWithCustomChannelTypesData(registerAsOperatorToChannelsWithCustomChannelTypesData).execute(); Register as an operator to channels with custom channel types @@ -908,7 +983,10 @@ public class Example { String userId = "userId_example"; // String | RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData = new RegisterAsOperatorToChannelsWithCustomChannelTypesData(); // RegisterAsOperatorToChannelsWithCustomChannelTypesData | try { - Object result = apiInstance.registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, registerAsOperatorToChannelsWithCustomChannelTypesData); + Object result = api.registerAsOperatorToChannelsWithCustomChannelTypes(userId) + .apiToken(apiToken) + .registerAsOperatorToChannelsWithCustomChannelTypesData(registerAsOperatorToChannelsWithCustomChannelTypesData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#registerAsOperatorToChannelsWithCustomChannelTypes"); @@ -951,7 +1029,7 @@ No authorization required ## removeRegistrationOrDeviceToken -> RemoveRegistrationOrDeviceTokenResponse removeRegistrationOrDeviceToken(apiToken, userId) +> RemoveRegistrationOrDeviceTokenResponse removeRegistrationOrDeviceToken(userId).apiToken(apiToken).execute(); Remove a registration or device token - When unregistering all device tokens @@ -981,7 +1059,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String userId = "userId_example"; // String | try { - RemoveRegistrationOrDeviceTokenResponse result = apiInstance.removeRegistrationOrDeviceToken(apiToken, userId); + RemoveRegistrationOrDeviceTokenResponse result = api.removeRegistrationOrDeviceToken(userId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#removeRegistrationOrDeviceToken"); @@ -1023,7 +1103,7 @@ No authorization required ## removeRegistrationOrDeviceTokenByToken -> RemoveRegistrationOrDeviceTokenByTokenResponse removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token) +> RemoveRegistrationOrDeviceTokenByTokenResponse removeRegistrationOrDeviceTokenByToken(userId, tokenType, token).apiToken(apiToken).execute(); Remove a registration or device token - When unregistering a specific token @@ -1055,7 +1135,9 @@ public class Example { String tokenType = "tokenType_example"; // String | String token = "token_example"; // String | try { - RemoveRegistrationOrDeviceTokenByTokenResponse result = apiInstance.removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token); + RemoveRegistrationOrDeviceTokenByTokenResponse result = api.removeRegistrationOrDeviceTokenByToken(userId, tokenType, token) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#removeRegistrationOrDeviceTokenByToken"); @@ -1099,7 +1181,7 @@ No authorization required ## removeRegistrationOrDeviceTokenFromOwnerByToken -> RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token) +> RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse removeRegistrationOrDeviceTokenFromOwnerByToken(tokenType, token).apiToken(apiToken).execute(); Remove a registration or device token from an owner @@ -1130,7 +1212,9 @@ public class Example { String tokenType = "tokenType_example"; // String | String token = "token_example"; // String | try { - RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse result = apiInstance.removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token); + RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse result = api.removeRegistrationOrDeviceTokenFromOwnerByToken(tokenType, token) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#removeRegistrationOrDeviceTokenFromOwnerByToken"); @@ -1173,7 +1257,7 @@ No authorization required ## resetPushPreferences -> ResetPushPreferencesResponse resetPushPreferences(apiToken, userId) +> ResetPushPreferencesResponse resetPushPreferences(userId).apiToken(apiToken).execute(); Reset push preferences @@ -1208,7 +1292,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String userId = "userId_example"; // String | try { - ResetPushPreferencesResponse result = apiInstance.resetPushPreferences(apiToken, userId); + ResetPushPreferencesResponse result = api.resetPushPreferences(userId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#resetPushPreferences"); @@ -1250,7 +1336,7 @@ No authorization required ## updateChannelInvitationPreference -> UpdateChannelInvitationPreferenceResponse updateChannelInvitationPreference(apiToken, userId, updateChannelInvitationPreferenceData) +> UpdateChannelInvitationPreferenceResponse updateChannelInvitationPreference(userId).apiToken(apiToken).updateChannelInvitationPreferenceData(updateChannelInvitationPreferenceData).execute(); Update channel invitation preference @@ -1282,7 +1368,10 @@ public class Example { String userId = "userId_example"; // String | UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData = new UpdateChannelInvitationPreferenceData(); // UpdateChannelInvitationPreferenceData | try { - UpdateChannelInvitationPreferenceResponse result = apiInstance.updateChannelInvitationPreference(apiToken, userId, updateChannelInvitationPreferenceData); + UpdateChannelInvitationPreferenceResponse result = api.updateChannelInvitationPreference(userId) + .apiToken(apiToken) + .updateChannelInvitationPreferenceData(updateChannelInvitationPreferenceData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateChannelInvitationPreference"); @@ -1325,7 +1414,7 @@ No authorization required ## updateCountPreferenceOfChannelByUrl -> UpdateCountPreferenceOfChannelByUrlResponse updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, updateCountPreferenceOfChannelByUrlData) +> UpdateCountPreferenceOfChannelByUrlResponse updateCountPreferenceOfChannelByUrl(userId, channelUrl).apiToken(apiToken).updateCountPreferenceOfChannelByUrlData(updateCountPreferenceOfChannelByUrlData).execute(); Update count preference of a channel @@ -1357,7 +1446,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData = new UpdateCountPreferenceOfChannelByUrlData(); // UpdateCountPreferenceOfChannelByUrlData | try { - UpdateCountPreferenceOfChannelByUrlResponse result = apiInstance.updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, updateCountPreferenceOfChannelByUrlData); + UpdateCountPreferenceOfChannelByUrlResponse result = api.updateCountPreferenceOfChannelByUrl(userId, channelUrl) + .apiToken(apiToken) + .updateCountPreferenceOfChannelByUrlData(updateCountPreferenceOfChannelByUrlData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateCountPreferenceOfChannelByUrl"); @@ -1401,7 +1493,7 @@ No authorization required ## updatePushPreferences -> UpdatePushPreferencesResponse updatePushPreferences(apiToken, userId, updatePushPreferencesData) +> UpdatePushPreferencesResponse updatePushPreferences(userId).apiToken(apiToken).updatePushPreferencesData(updatePushPreferencesData).execute(); Update push preferences @@ -1432,7 +1524,10 @@ public class Example { String userId = "userId_example"; // String | UpdatePushPreferencesData updatePushPreferencesData = new UpdatePushPreferencesData(); // UpdatePushPreferencesData | try { - UpdatePushPreferencesResponse result = apiInstance.updatePushPreferences(apiToken, userId, updatePushPreferencesData); + UpdatePushPreferencesResponse result = api.updatePushPreferences(userId) + .apiToken(apiToken) + .updatePushPreferencesData(updatePushPreferencesData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updatePushPreferences"); @@ -1475,7 +1570,7 @@ No authorization required ## updatePushPreferencesForChannelByUrl -> UpdatePushPreferencesForChannelByUrlResponse updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, updatePushPreferencesForChannelByUrlData) +> UpdatePushPreferencesForChannelByUrlResponse updatePushPreferencesForChannelByUrl(userId, channelUrl).apiToken(apiToken).updatePushPreferencesForChannelByUrlData(updatePushPreferencesForChannelByUrlData).execute(); Update push preferences for a channel @@ -1507,7 +1602,10 @@ public class Example { String channelUrl = "channelUrl_example"; // String | UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData = new UpdatePushPreferencesForChannelByUrlData(); // UpdatePushPreferencesForChannelByUrlData | try { - UpdatePushPreferencesForChannelByUrlResponse result = apiInstance.updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, updatePushPreferencesForChannelByUrlData); + UpdatePushPreferencesForChannelByUrlResponse result = api.updatePushPreferencesForChannelByUrl(userId, channelUrl) + .apiToken(apiToken) + .updatePushPreferencesForChannelByUrlData(updatePushPreferencesForChannelByUrlData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updatePushPreferencesForChannelByUrl"); @@ -1551,7 +1649,7 @@ No authorization required ## updateUserById -> SendBirdUser updateUserById(apiToken, userId, updateUserByIdData) +> SendBirdUser updateUserById(userId).apiToken(apiToken).updateUserByIdData(updateUserByIdData).execute(); Update a user @@ -1584,7 +1682,10 @@ public class Example { String userId = "userId_example"; // String | UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); // UpdateUserByIdData | try { - SendBirdUser result = apiInstance.updateUserById(apiToken, userId, updateUserByIdData); + SendBirdUser result = api.updateUserById(userId) + .apiToken(apiToken) + .updateUserByIdData(updateUserByIdData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#updateUserById"); @@ -1627,7 +1728,7 @@ No authorization required ## viewChannelInvitationPreference -> ViewChannelInvitationPreferenceResponse viewChannelInvitationPreference(apiToken, userId) +> ViewChannelInvitationPreferenceResponse viewChannelInvitationPreference(userId).apiToken(apiToken).execute(); View channel invitation preference @@ -1658,7 +1759,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String userId = "userId_example"; // String | try { - ViewChannelInvitationPreferenceResponse result = apiInstance.viewChannelInvitationPreference(apiToken, userId); + ViewChannelInvitationPreferenceResponse result = api.viewChannelInvitationPreference(userId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewChannelInvitationPreference"); @@ -1700,7 +1803,7 @@ No authorization required ## viewCountPreferenceOfChannelByUrl -> ViewCountPreferenceOfChannelByUrlResponse viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl) +> ViewCountPreferenceOfChannelByUrlResponse viewCountPreferenceOfChannelByUrl(userId, channelUrl).apiToken(apiToken).execute(); View count preference of a channel @@ -1731,7 +1834,9 @@ public class Example { String userId = "userId_example"; // String | String channelUrl = "channelUrl_example"; // String | try { - ViewCountPreferenceOfChannelByUrlResponse result = apiInstance.viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl); + ViewCountPreferenceOfChannelByUrlResponse result = api.viewCountPreferenceOfChannelByUrl(userId, channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewCountPreferenceOfChannelByUrl"); @@ -1774,7 +1879,7 @@ No authorization required ## viewNumberOfChannelsByJoinStatus -> ViewNumberOfChannelsByJoinStatusResponse viewNumberOfChannelsByJoinStatus(apiToken, userId, state) +> ViewNumberOfChannelsByJoinStatusResponse viewNumberOfChannelsByJoinStatus(userId).apiToken(apiToken).state(state).execute(); View number of channels by join status @@ -1809,7 +1914,10 @@ public class Example { String userId = "userId_example"; // String | String state = "state_example"; // String | try { - ViewNumberOfChannelsByJoinStatusResponse result = apiInstance.viewNumberOfChannelsByJoinStatus(apiToken, userId, state); + ViewNumberOfChannelsByJoinStatusResponse result = api.viewNumberOfChannelsByJoinStatus(userId) + .apiToken(apiToken) + .state(state) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewNumberOfChannelsByJoinStatus"); @@ -1852,7 +1960,7 @@ No authorization required ## viewNumberOfChannelsWithUnreadMessages -> ViewNumberOfChannelsWithUnreadMessagesResponse viewNumberOfChannelsWithUnreadMessages(apiToken, userId, customTypes, superMode) +> ViewNumberOfChannelsWithUnreadMessagesResponse viewNumberOfChannelsWithUnreadMessages(userId).apiToken(apiToken).customTypes(customTypes).superMode(superMode).execute(); View number of channels with unread messages @@ -1884,7 +1992,11 @@ public class Example { List customTypes = Arrays.asList(); // List | String superMode = "superMode_example"; // String | try { - ViewNumberOfChannelsWithUnreadMessagesResponse result = apiInstance.viewNumberOfChannelsWithUnreadMessages(apiToken, userId, customTypes, superMode); + ViewNumberOfChannelsWithUnreadMessagesResponse result = api.viewNumberOfChannelsWithUnreadMessages(userId) + .apiToken(apiToken) + .customTypes(customTypes) + .superMode(superMode) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewNumberOfChannelsWithUnreadMessages"); @@ -1928,7 +2040,7 @@ No authorization required ## viewNumberOfUnreadItems -> ViewNumberOfUnreadItemsResponse viewNumberOfUnreadItems(apiToken, userId, customType, itemKeys) +> ViewNumberOfUnreadItemsResponse viewNumberOfUnreadItems(userId).apiToken(apiToken).customType(customType).itemKeys(itemKeys).execute(); View number of unread items @@ -1960,7 +2072,11 @@ public class Example { String customType = "customType_example"; // String | String itemKeys = "itemKeys_example"; // String | try { - ViewNumberOfUnreadItemsResponse result = apiInstance.viewNumberOfUnreadItems(apiToken, userId, customType, itemKeys); + ViewNumberOfUnreadItemsResponse result = api.viewNumberOfUnreadItems(userId) + .apiToken(apiToken) + .customType(customType) + .itemKeys(itemKeys) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewNumberOfUnreadItems"); @@ -2004,7 +2120,7 @@ No authorization required ## viewNumberOfUnreadMessages -> ViewNumberOfUnreadMessagesResponse viewNumberOfUnreadMessages(apiToken, userId, customTypes, superMode) +> ViewNumberOfUnreadMessagesResponse viewNumberOfUnreadMessages(userId).apiToken(apiToken).customTypes(customTypes).superMode(superMode).execute(); View number of unread messages @@ -2040,7 +2156,11 @@ public class Example { String customTypes = "customTypes_example"; // String | String superMode = "superMode_example"; // String | try { - ViewNumberOfUnreadMessagesResponse result = apiInstance.viewNumberOfUnreadMessages(apiToken, userId, customTypes, superMode); + ViewNumberOfUnreadMessagesResponse result = api.viewNumberOfUnreadMessages(userId) + .apiToken(apiToken) + .customTypes(customTypes) + .superMode(superMode) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewNumberOfUnreadMessages"); @@ -2084,7 +2204,7 @@ No authorization required ## viewPushPreferences -> ViewPushPreferencesResponse viewPushPreferences(apiToken, userId) +> ViewPushPreferencesResponse viewPushPreferences(userId).apiToken(apiToken).execute(); View push preferences @@ -2114,7 +2234,9 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | String userId = "userId_example"; // String | try { - ViewPushPreferencesResponse result = apiInstance.viewPushPreferences(apiToken, userId); + ViewPushPreferencesResponse result = api.viewPushPreferences(userId) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewPushPreferences"); @@ -2156,7 +2278,7 @@ No authorization required ## viewPushPreferencesForChannelByUrl -> ViewPushPreferencesForChannelByUrlResponse viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl) +> ViewPushPreferencesForChannelByUrlResponse viewPushPreferencesForChannelByUrl(userId, channelUrl).apiToken(apiToken).execute(); View push preferences for a channel @@ -2187,7 +2309,9 @@ public class Example { String userId = "userId_example"; // String | String channelUrl = "channelUrl_example"; // String | try { - ViewPushPreferencesForChannelByUrlResponse result = apiInstance.viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl); + ViewPushPreferencesForChannelByUrlResponse result = api.viewPushPreferencesForChannelByUrl(userId, channelUrl) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewPushPreferencesForChannelByUrl"); @@ -2230,7 +2354,7 @@ No authorization required ## viewUserById -> SendBirdUser viewUserById(apiToken, userId, includeUnreadCount, customTypes, superMode) +> SendBirdUser viewUserById(userId).apiToken(apiToken).includeUnreadCount(includeUnreadCount).customTypes(customTypes).superMode(superMode).execute(); View a user @@ -2267,7 +2391,12 @@ public class Example { String customTypes = "customTypes_example"; // String | String superMode = "superMode_example"; // String | try { - SendBirdUser result = apiInstance.viewUserById(apiToken, userId, includeUnreadCount, customTypes, superMode); + SendBirdUser result = api.viewUserById(userId) + .apiToken(apiToken) + .includeUnreadCount(includeUnreadCount) + .customTypes(customTypes) + .superMode(superMode) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewUserById"); @@ -2312,7 +2441,7 @@ No authorization required ## viewWhoOwnsRegistrationOrDeviceTokenByToken -> List<ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner> viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token) +> List<ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner> viewWhoOwnsRegistrationOrDeviceTokenByToken(tokenType, token).apiToken(apiToken).execute(); View who owns a registration or device token @@ -2343,7 +2472,9 @@ public class Example { String tokenType = "tokenType_example"; // String | String token = "token_example"; // String | try { - List result = apiInstance.viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token); + List result = api.viewWhoOwnsRegistrationOrDeviceTokenByToken(tokenType, token) + .apiToken(apiToken) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#viewWhoOwnsRegistrationOrDeviceTokenByToken"); diff --git a/docs/WebhookApi.md b/docs/WebhookApi.md index e367802c..ecef8734 100644 --- a/docs/WebhookApi.md +++ b/docs/WebhookApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* ## chooseWhichEventsToSubscribeTo -> ChooseWhichEventsToSubscribeToResponse chooseWhichEventsToSubscribeTo(apiToken, chooseWhichEventsToSubscribeToData) +> ChooseWhichEventsToSubscribeToResponse chooseWhichEventsToSubscribeTo().apiToken(apiToken).chooseWhichEventsToSubscribeToData(chooseWhichEventsToSubscribeToData).execute(); Choose which events to subscribe to @@ -40,7 +40,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData = new ChooseWhichEventsToSubscribeToData(); // ChooseWhichEventsToSubscribeToData | try { - ChooseWhichEventsToSubscribeToResponse result = apiInstance.chooseWhichEventsToSubscribeTo(apiToken, chooseWhichEventsToSubscribeToData); + ChooseWhichEventsToSubscribeToResponse result = api.chooseWhichEventsToSubscribeTo() + .apiToken(apiToken) + .chooseWhichEventsToSubscribeToData(chooseWhichEventsToSubscribeToData) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookApi#chooseWhichEventsToSubscribeTo"); @@ -82,7 +85,7 @@ No authorization required ## retrieveListOfSubscribedEvents -> RetrieveListOfSubscribedEventsResponse retrieveListOfSubscribedEvents(apiToken, displayAllWebhookCategories) +> RetrieveListOfSubscribedEventsResponse retrieveListOfSubscribedEvents().apiToken(apiToken).displayAllWebhookCategories(displayAllWebhookCategories).execute(); Retrieve a list of subscribed events @@ -112,7 +115,10 @@ public class Example { String apiToken = "{{API_TOKEN}}"; // String | Boolean displayAllWebhookCategories = true; // Boolean | try { - RetrieveListOfSubscribedEventsResponse result = apiInstance.retrieveListOfSubscribedEvents(apiToken, displayAllWebhookCategories); + RetrieveListOfSubscribedEventsResponse result = api.retrieveListOfSubscribedEvents() + .apiToken(apiToken) + .displayAllWebhookCategories(displayAllWebhookCategories) + .execute(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhookApi#retrieveListOfSubscribedEvents"); diff --git a/pom.xml b/pom.xml index bace8ea7..f8bf0f20 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sendbird-platform-sdk jar sendbird-platform-sdk - 0.0.15 + 0.0.16 https://github.com/sendbird/sendbird-platform-sdk-java Sendbird Platform API SDK diff --git a/samples/.idea/libraries/sendbird_platform_sdk_0_0_16.xml b/samples/.idea/libraries/sendbird_platform_sdk_0_0_16.xml new file mode 100644 index 00000000..aa1b12e2 --- /dev/null +++ b/samples/.idea/libraries/sendbird_platform_sdk_0_0_16.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/samples/announcements/src/main/java/Announcements.java b/samples/announcements/src/main/java/Announcements.java index 211cc41e..4a046dd9 100644 --- a/samples/announcements/src/main/java/Announcements.java +++ b/samples/announcements/src/main/java/Announcements.java @@ -6,6 +6,11 @@ import java.util.ArrayList; import java.util.List; +import org.openapitools.client.model.*; +import org.sendbird.client.ApiException; +import org.sendbird.client.api.*; +import java.util.UUID; + public class Announcements { public void sendAnnouncement(){ @@ -29,3 +34,176 @@ public void sendAnnouncement(){ announcement.scheduleAnnouncement("Test", "ADMM", createUserResultA.getUserId(), "Test", "target_channels", targetList, "all"); } } + + +class GroupChannel { + ApiClient defaultClient; + String apiToken; + GroupChannelApi apiInstance; + public GroupChannel(ApiClient defaultClient){ + apiInstance = new GroupChannelApi(defaultClient); + apiToken = Config.apiToken; + + } + + public OcDeleteChannelByUrl200Response deleteChannelByUrl(String channelUrl){ + + try { + OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(channelUrl).apiToken(apiToken).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + } + + public GcListChannelsResponse listChannels(String nameStartswith){ + + + try { + GcListChannelsResponse result = apiInstance.gcListChannels().apiToken(apiToken).limit(10).distinctMode("all").showEmpty(true).nameStartswith(nameStartswith).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcListChannels"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + + } + + public SendBirdGroupChannel createChannel(List userIds){ + GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); + gcCreateChannelData.name("SB::test-gc::Java::e2e::"+UUID.randomUUID().toString()); + + gcCreateChannelData.userIds(userIds); + gcCreateChannelData.isDistinct(false); + + try { + SendBirdGroupChannel result = apiInstance.gcCreateChannel().apiToken(apiToken).gcCreateChannelData(gcCreateChannelData).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + + } + +} + +class User { + ApiClient defaultClient; + String apiToken; + UserApi apiInstance; + public User(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new UserApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdUser createUser(){ + CreateUserData createUserData = new CreateUserData(); // CreateUserData | + createUserData.userId(UUID.randomUUID().toString()); + createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); + try { + SendBirdUser result = apiInstance.createUser().apiToken(apiToken).createUserData(createUserData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public SendBirdUser deleteUserById(String userId){ + + try { + apiInstance.deleteUserById(userId).apiToken(apiToken); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public ListUsersResponse listUsers(String nicknameStartswith){ + + try { + + ListUsersResponse result = apiInstance.listUsers().apiToken(apiToken).nicknameStartswith(nicknameStartswith).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + +} + +class Announcement { + ApiClient defaultClient; + String apiToken; + AnnouncementApi apiInstance; + + public Announcement(ApiClient defaultClient) { + System.out.println("constructor"); + apiInstance = new AnnouncementApi(defaultClient); + apiToken = Config.apiToken; + } + + public ScheduleAnnouncementResponse scheduleAnnouncement(String message, String type, String userId, String content, String targetAt, List targetList, String channelType){ + ScheduleAnnouncementData scheduleAnnouncementData = new ScheduleAnnouncementData(); + ScheduleAnnouncementDataMessage scheduleAnnouncementDataMessage = new ScheduleAnnouncementDataMessage(); + + scheduleAnnouncementDataMessage.type(type); + scheduleAnnouncementDataMessage.userId(userId); + scheduleAnnouncementDataMessage.content(content); + + + scheduleAnnouncementData.message(scheduleAnnouncementDataMessage); + scheduleAnnouncementData.messageType(type); + scheduleAnnouncementData.userId(userId); + scheduleAnnouncementData.content(content); + scheduleAnnouncementData.targetAt(targetAt); + scheduleAnnouncementData.targetList(targetList); + scheduleAnnouncementData.targetChannelType(channelType); + + System.out.println(scheduleAnnouncementData); + + try { + ScheduleAnnouncementResponse result = apiInstance.scheduleAnnouncement().apiToken(apiToken).scheduleAnnouncementData(scheduleAnnouncementData).execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#scheduleAnnouncement"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } +} \ No newline at end of file diff --git a/samples/announcements/src/main/java/Sendbird.java b/samples/announcements/src/main/java/Sendbird.java deleted file mode 100644 index df7ff39d..00000000 --- a/samples/announcements/src/main/java/Sendbird.java +++ /dev/null @@ -1,338 +0,0 @@ -import org.openapitools.client.model.*; -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.api.*; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - - -class GroupChannel { - ApiClient defaultClient; - String apiToken; - GroupChannelApi apiInstance; - public GroupChannel(ApiClient defaultClient){ - apiInstance = new GroupChannelApi(defaultClient); - apiToken = Config.apiToken; - - } - - public SendBirdGroupChannel viewChannelByUrl(String channelUrl){ - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = false; // Boolean | - Boolean showMember = true; // Boolean | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - try { - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public OcDeleteChannelByUrl200Response deleteChannelByUrl(String channelUrl){ - - try { - OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(apiToken, channelUrl); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public GcListChannelsResponse listChannels(String nameStartswith){ - String token = null; // String | - Integer limit = 10; // Integer | - String distinctMode = "all"; // String | - String publicMode = null; // String | - String superMode = null; // String | - Integer createdAfter = null; // Integer | - Integer createdBefore = null; // Integer | - Boolean showEmpty = true; // Boolean | - Boolean showMember = true; // Boolean | - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = true; // Boolean | - Boolean showMetadata = true; // Boolean | - Boolean showFrozen = false; // Boolean | - String order = null; // String | - String metadataOrderKey = null; // String | - String customTypes = null; // String | - String customTypeStartswith = null; // String | - String channelUrls = null; // String | - String name = null; // String | -// String nameStartswith = null; // String | - String nameContains = null; // String | - String membersExactlyIn = null; // String | - String membersIncludeIn = null; // String | - String queryType = null; // String | - String membersNickname = null; // String | - String membersNicknameContains = null; // String | - String metadataKey = null; // String | - String metadataValues = null; // String | - String metadataValueStartswith = null; // String | - String metacounterKey = null; // String | - String metacounterValues = null; // String | - String metacounterValueGt = null; // String | - String metacounterValueGte = null; // String | - String metacounterValueLt = null; // String | - String metacounterValueLte = null; // String | - Boolean includeSortedMetaarrayInLastMessage = true; // Boolean | - String customType = null; // String | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - Boolean isDistinct = false; // Boolean | - String membersIn = null; // String | - String userId = null; // String | - try { - GcListChannelsResponse result = apiInstance.gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcListChannels"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - - } - - public SendBirdGroupChannel createChannel(List userIds){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - gcCreateChannelData.name("SB::test-gc::Java::e2e::"+UUID.randomUUID().toString()); - - gcCreateChannelData.userIds(userIds); - gcCreateChannelData.isDistinct(false); - - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - - } - - public SendBirdGroupChannel createChannelWithUserObjects(SendBirdUser user){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - - List users=new ArrayList(); - users.add(user); - - gcCreateChannelData.setUsers(users); - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdGroupChannel viewChannel(){ - try { - Boolean showDeliveryReceipt=false; - Boolean showReadReceipt=false; - Boolean showMember=true; - Boolean readReceipt=false; - Boolean member=true; - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, "sendbird_group_channel_37422_a4ed586747d860434545bcdfd9464b348bb08210",showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class User { - ApiClient defaultClient; - String apiToken; - UserApi apiInstance; - public User(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new UserApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdUser createUser(){ - CreateUserData createUserData = new CreateUserData(); // CreateUserData | - createUserData.userId(UUID.randomUUID().toString()); - createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); - try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser updateUserById(String userId, String nickname){ - UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); - updateUserByIdData.nickname(nickname); - try { - SendBirdUser result = apiInstance.updateUserById(apiToken,userId, updateUserByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser deleteUserById(String userId){ - - try { - apiInstance.deleteUserById(apiToken, userId); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListUsersResponse listUsers(String nicknameStartswith){ - - try { - String token = null; - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - String userIds = null; - String nickname = null; -// String nicknameStartswith = nicknameStartswith; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public CreateUserTokenResponse createSessionToken(String userId){ - CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | - - try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenRequest); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String userId){ - String tokenType = "apns"; // String | - AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | - addRegistrationOrDeviceTokenData.apnsDeviceToken("1234"); - try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Announcement { - ApiClient defaultClient; - String apiToken; - AnnouncementApi apiInstance; - - public Announcement(ApiClient defaultClient) { - System.out.println("constructor"); - apiInstance = new AnnouncementApi(defaultClient); - apiToken = Config.apiToken; - } - - public ScheduleAnnouncementResponse scheduleAnnouncement(String message, String type, String userId, String content, String targetAt, List targetList, String channelType){ - ScheduleAnnouncementData scheduleAnnouncementData = new ScheduleAnnouncementData(); - ScheduleAnnouncementDataMessage scheduleAnnouncementDataMessage = new ScheduleAnnouncementDataMessage(); - - scheduleAnnouncementDataMessage.type(type); - scheduleAnnouncementDataMessage.userId(userId); - scheduleAnnouncementDataMessage.content(content); - - - scheduleAnnouncementData.message(scheduleAnnouncementDataMessage); - scheduleAnnouncementData.messageType(type); - scheduleAnnouncementData.userId(userId); - scheduleAnnouncementData.content(content); - scheduleAnnouncementData.targetAt(targetAt); - scheduleAnnouncementData.targetList(targetList); - scheduleAnnouncementData.targetChannelType(channelType); - - System.out.println(scheduleAnnouncementData); - - try { - ScheduleAnnouncementResponse result = apiInstance.scheduleAnnouncement(apiToken, scheduleAnnouncementData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#scheduleAnnouncement"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} diff --git a/samples/announcements/src/test/java/AnnouncementsTest.java b/samples/announcements/src/test/java/AnnouncementsTest.java index 05fa93c4..a5fb85b8 100644 --- a/samples/announcements/src/test/java/AnnouncementsTest.java +++ b/samples/announcements/src/test/java/AnnouncementsTest.java @@ -21,6 +21,7 @@ void testSendAnnouncement() { @AfterAll public static void tearDown() { System.out.println("AbstractBaseTest.tearDown"); + ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("https://api-"+Config.appId+".sendbird.com"); User user = new User(defaultClient); diff --git a/samples/authentication/src/main/java/Authentication.java b/samples/authentication/src/main/java/Authentication.java index 711a620c..2f6aac3c 100644 --- a/samples/authentication/src/main/java/Authentication.java +++ b/samples/authentication/src/main/java/Authentication.java @@ -1,7 +1,10 @@ -import org.openapitools.client.model.CreateUserTokenResponse; -import org.openapitools.client.model.SendBirdUser; +import org.openapitools.client.model.*; import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; import org.sendbird.client.Configuration; +import org.sendbird.client.api.UserApi; + +import java.util.UUID; public class Authentication { public void generateSessionToken(){ @@ -14,3 +17,88 @@ public void generateSessionToken(){ System.out.println(result); } } + +class User { + ApiClient defaultClient; + String apiToken; + UserApi apiInstance; + public User(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new UserApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdUser createUser(){ + CreateUserData createUserData = new CreateUserData(); // CreateUserData | + createUserData.userId(UUID.randomUUID().toString()); + createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); + try { + SendBirdUser result = apiInstance.createUser().apiToken(apiToken).createUserData(createUserData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + + public SendBirdUser deleteUserById(String userId){ + + try { + apiInstance.deleteUserById(userId).apiToken(apiToken).execute(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public ListUsersResponse listUsers(String nicknameStartswith){ + + try { + String token = null; + Integer limit = 56; + String activeMode = "activated"; + Boolean showBot = true; + String userIds = null; + String nickname = null; + String metadatakey = null; + String metadatavaluesIn = null; + ListUsersResponse result = apiInstance.listUsers().apiToken(apiToken).nicknameStartswith(nicknameStartswith).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public CreateUserTokenResponse createSessionToken(String userId){ + CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | + + try { + CreateUserTokenResponse result = apiInstance.createUserToken(userId).apiToken(apiToken).createUserTokenData(createUserTokenRequest).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + +} + diff --git a/samples/authentication/src/main/java/Sendbird.java b/samples/authentication/src/main/java/Sendbird.java deleted file mode 100644 index 92198732..00000000 --- a/samples/authentication/src/main/java/Sendbird.java +++ /dev/null @@ -1,126 +0,0 @@ -import org.openapitools.client.model.*; -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.api.*; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - - -class User { - ApiClient defaultClient; - String apiToken; - UserApi apiInstance; - public User(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new UserApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdUser createUser(){ - CreateUserData createUserData = new CreateUserData(); // CreateUserData | - createUserData.userId(UUID.randomUUID().toString()); - createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); - try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser updateUserById(String userId, String nickname){ - UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); - updateUserByIdData.nickname(nickname); - try { - SendBirdUser result = apiInstance.updateUserById(apiToken,userId, updateUserByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser deleteUserById(String userId){ - - try { - apiInstance.deleteUserById(apiToken, userId); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListUsersResponse listUsers(String nicknameStartswith){ - - try { - String token = null; - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - String userIds = null; - String nickname = null; -// String nicknameStartswith = null; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public CreateUserTokenResponse createSessionToken(String userId){ - CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | - - try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenRequest); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String userId){ - String tokenType = "apns"; // String | - AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | - addRegistrationOrDeviceTokenData.apnsDeviceToken("1234"); - try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} diff --git a/samples/message-count/src/main/java/MessageCount.java b/samples/message-count/src/main/java/MessageCount.java index e9d922f3..f8530d03 100644 --- a/samples/message-count/src/main/java/MessageCount.java +++ b/samples/message-count/src/main/java/MessageCount.java @@ -1,13 +1,16 @@ -import org.openapitools.client.model.GcViewNumberOfEachMembersUnreadMessagesResponse; -import org.openapitools.client.model.SendBirdGroupChannel; -import org.openapitools.client.model.SendBirdMessageResponse; -import org.openapitools.client.model.SendBirdUser; +import org.openapitools.client.model.*; import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; import org.sendbird.client.Configuration; +import org.sendbird.client.api.AnnouncementApi; +import org.sendbird.client.api.GroupChannelApi; +import org.sendbird.client.api.MessageApi; +import org.sendbird.client.api.UserApi; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import java.util.UUID; public class MessageCount { public BigDecimal countUnreadMessages(){ @@ -31,3 +34,185 @@ public BigDecimal countUnreadMessages(){ return unreadMessages.getUnread().get(createUserResultA.getUserId()); } } + +class GroupChannel { + ApiClient defaultClient; + String apiToken; + GroupChannelApi apiInstance; + public GroupChannel(ApiClient defaultClient){ + apiInstance = new GroupChannelApi(defaultClient); + apiToken = Config.apiToken; + + } + + public OcDeleteChannelByUrl200Response deleteChannelByUrl(String channelUrl){ + + try { + OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(channelUrl).apiToken(apiToken).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + } + + + public GcListChannelsResponse listChannels(String nameStartswith){ + + try { + GcListChannelsResponse result = apiInstance.gcListChannels().apiToken(apiToken).distinctMode("all").showEmpty(true).showMember(true).nameStartswith(nameStartswith).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcListChannels"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + + } + + public SendBirdGroupChannel createChannel(List userIds){ + GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); + gcCreateChannelData.name("SB::test-gc::Java::e2e::"+ UUID.randomUUID().toString()); + + + gcCreateChannelData.userIds(userIds); + gcCreateChannelData.isDistinct(false); + + try { + SendBirdGroupChannel result = apiInstance.gcCreateChannel().apiToken(apiToken).gcCreateChannelData(gcCreateChannelData).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + + } + + +} + + +class User { + ApiClient defaultClient; + String apiToken; + UserApi apiInstance; + public User(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new UserApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdUser createUser(){ + CreateUserData createUserData = new CreateUserData(); // CreateUserData | + createUserData.userId(UUID.randomUUID().toString()); + createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); + try { + SendBirdUser result = apiInstance.createUser().apiToken(apiToken).createUserData(createUserData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + + public SendBirdUser deleteUserById(String userId){ + + try { + apiInstance.deleteUserById(userId).apiToken(apiToken).execute(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public ListUsersResponse listUsers(String nicknameStartswith){ + + try { + + ListUsersResponse result = apiInstance.listUsers().apiToken(apiToken).activeMode("activated").nicknameStartswith(nicknameStartswith).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + +} + +class Message { + ApiClient defaultClient; + String apiToken; + MessageApi apiInstance; + public Message(ApiClient defaultClient){ + apiInstance = new MessageApi(defaultClient); + apiToken = Config.apiToken; + + } + + public SendBirdMessageResponse sendMessage(String channelType, String channelUrl, String userId, String message, String messageType){ + + SendMessageData sendMessageData = new SendMessageData(); + sendMessageData.channelType(channelType); + sendMessageData.channelUrl(channelUrl); + sendMessageData.userId(userId); + sendMessageData.message(message); + sendMessageData.messageType(messageType); + + try { + SendBirdMessageResponse result = apiInstance.sendMessage(channelType, channelUrl).apiToken(apiToken).sendMessageData(sendMessageData).execute(); + System.out.println(result); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#sendMessage"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + + public GcViewNumberOfEachMembersUnreadMessagesResponse membersUnreadMessageCount(String channelUrl, String userIds){ + + try { + GcViewNumberOfEachMembersUnreadMessagesResponse result = apiInstance.gcViewNumberOfEachMembersUnreadMessages(channelUrl).apiToken(apiToken).userIds(userIds).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#gcViewNumberOfEachMembersUnreadMessages"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } +} diff --git a/samples/message-count/src/main/java/Sendbird.java b/samples/message-count/src/main/java/Sendbird.java index 05481ec4..e69de29b 100644 --- a/samples/message-count/src/main/java/Sendbird.java +++ b/samples/message-count/src/main/java/Sendbird.java @@ -1,447 +0,0 @@ -import org.openapitools.client.model.*; -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.api.*; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - - -class GroupChannel { - ApiClient defaultClient; - String apiToken; - GroupChannelApi apiInstance; - public GroupChannel(ApiClient defaultClient){ - apiInstance = new GroupChannelApi(defaultClient); - apiToken = Config.apiToken; - - } - - public OcDeleteChannelByUrl200Response deleteChannelByUrl(String channelUrl){ - - try { - OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(apiToken, channelUrl); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public SendBirdGroupChannel viewChannelByUrl(String channelUrl){ - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = false; // Boolean | - Boolean showMember = true; // Boolean | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - try { - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public GcListChannelsResponse listChannels(String nameStartswith){ - String token = null; // String | - Integer limit = 10; // Integer | - String distinctMode = "all"; // String | - String publicMode = null; // String | - String superMode = null; // String | - Integer createdAfter = null; // Integer | - Integer createdBefore = null; // Integer | - Boolean showEmpty = true; // Boolean | - Boolean showMember = true; // Boolean | - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = true; // Boolean | - Boolean showMetadata = true; // Boolean | - Boolean showFrozen = false; // Boolean | - String order = null; // String | - String metadataOrderKey = null; // String | - String customTypes = null; // String | - String customTypeStartswith = null; // String | - String channelUrls = null; // String | - String name = null; // String | - String nameContains = null; // String | -// String nameStartswith = null; // String | - String membersExactlyIn = null; // String | - String membersIncludeIn = null; // String | - String queryType = null; // String | - String membersNickname = null; // String | - String membersNicknameContains = null; // String | - String metadataKey = null; // String | - String metadataValues = null; // String | - String metadataValueStartswith = null; // String | - String metacounterKey = null; // String | - String metacounterValues = null; // String | - String metacounterValueGt = null; // String | - String metacounterValueGte = null; // String | - String metacounterValueLt = null; // String | - String metacounterValueLte = null; // String | - Boolean includeSortedMetaarrayInLastMessage = true; // Boolean | - String customType = null; // String | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - Boolean isDistinct = false; // Boolean | - String membersIn = null; // String | - String userId = null; // String | - try { - GcListChannelsResponse result = apiInstance.gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcListChannels"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - - } - - public SendBirdGroupChannel createChannel(List userIds){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - gcCreateChannelData.name("SB::test-gc::Java::e2e::"+UUID.randomUUID().toString()); - - - gcCreateChannelData.userIds(userIds); - gcCreateChannelData.isDistinct(false); - - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - - } - - public SendBirdGroupChannel createChannelWithUserObjects(SendBirdUser user){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - - List users=new ArrayList(); - users.add(user); - - gcCreateChannelData.setUsers(users); - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdGroupChannel viewChannel(){ - try { - Boolean showDeliveryReceipt=false; - Boolean showReadReceipt=false; - Boolean showMember=true; - Boolean readReceipt=false; - Boolean member=true; - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, "sendbird_group_channel_37422_a4ed586747d860434545bcdfd9464b348bb08210",showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - - -class User { - ApiClient defaultClient; - String apiToken; - UserApi apiInstance; - public User(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new UserApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdUser createUser(){ - CreateUserData createUserData = new CreateUserData(); // CreateUserData | - createUserData.userId(UUID.randomUUID().toString()); - createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); - try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser updateUserById(String userId, String nickname){ - UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); - updateUserByIdData.nickname(nickname); - try { - SendBirdUser result = apiInstance.updateUserById(apiToken,userId, updateUserByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser deleteUserById(String userId){ - - try { - apiInstance.deleteUserById(apiToken, userId); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListUsersResponse listUsers(String nicknameStartswith){ - - try { - String token = null; - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - String userIds = null; - String nickname = null; -// String nicknameStartswith = null; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public CreateUserTokenResponse createSessionToken(String userId){ - CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | - - try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenRequest); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String userId){ - String tokenType = "apns"; // String | - AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | - addRegistrationOrDeviceTokenData.apnsDeviceToken("1234"); - try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Announcement { - ApiClient defaultClient; - String apiToken; - AnnouncementApi apiInstance; - - public Announcement(ApiClient defaultClient) { - System.out.println("constructor"); - apiInstance = new AnnouncementApi(defaultClient); - apiToken = Config.apiToken; - } - - public ScheduleAnnouncementResponse scheduleAnnouncement(String message, String type, String userId, String content, String targetAt, List targetList, String channelType){ - ScheduleAnnouncementData scheduleAnnouncementData = new ScheduleAnnouncementData(); - ScheduleAnnouncementDataMessage scheduleAnnouncementDataMessage = new ScheduleAnnouncementDataMessage(); - - scheduleAnnouncementDataMessage.type(type); - scheduleAnnouncementDataMessage.userId(userId); - scheduleAnnouncementDataMessage.content(content); - - - scheduleAnnouncementData.message(scheduleAnnouncementDataMessage); - scheduleAnnouncementData.messageType(type); - scheduleAnnouncementData.userId(userId); - scheduleAnnouncementData.content(content); - scheduleAnnouncementData.targetAt(targetAt); - scheduleAnnouncementData.targetList(targetList); - scheduleAnnouncementData.targetChannelType(channelType); - - System.out.println(scheduleAnnouncementData); - - try { - ScheduleAnnouncementResponse result = apiInstance.scheduleAnnouncement(apiToken, scheduleAnnouncementData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#scheduleAnnouncement"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Message { - ApiClient defaultClient; - String apiToken; - MessageApi apiInstance; - public Message(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new MessageApi(defaultClient); - apiToken = Config.apiToken; - - } - - public SendBirdMessageResponse sendMessage(String channelType, String channelUrl, String userId, String message, String messageType){ - - SendMessageData sendMessageData = new SendMessageData(); - sendMessageData.channelType(channelType); - sendMessageData.channelUrl(channelUrl); - sendMessageData.userId(userId); - sendMessageData.message(message); - sendMessageData.messageType(messageType); - - try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#sendMessage"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdMessageResponse sendFileMessage(String channelType, String channelUrl, String userId, String message, String messageType){ - - SendMessageData sendMessageData = new SendMessageData(); - sendMessageData.channelType(channelType); - // try file and url - sendMessageData.url("https://assets.vercel.com/image/upload/v1661135356/front/next-conf-2022/og.png"); - sendMessageData.channelUrl(channelUrl); - sendMessageData.userId(userId); - sendMessageData.message(message); - sendMessageData.messageType(messageType); - - try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#sendMessage"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListMessagesResponse listMessages(String channelUrl){ - String channelType = "group_channels"; // String | - String messageTs = "0"; // Integer | - Integer messageId = null; // Integer | - Integer prevLimit = 56; // Integer | - Integer nextLimit = 56; // Integer | - Boolean include = true; // Boolean | - Boolean reverse = true; // Boolean | - String senderId = null; // String | - String senderIds = null; // String | - String operatorFilter = null; // String | - String customTypes = null; // String | - String messageType = "ADMM"; // String | - Boolean includingRemoved = false; // Boolean | - Boolean includeReactions = null; // Boolean | - Boolean withSortedMetaArray = false; // Boolean | - Boolean showSubchannelMessagesOnly = false; // Boolean | - String userId = null; // String | - String customType = null; // String | - Boolean withMetaArray = false; // Boolean | - try { - ListMessagesResponse result = apiInstance.listMessages(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#listMessages"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public GcViewNumberOfEachMembersUnreadMessagesResponse membersUnreadMessageCount(String channelUrl, String userIds){ - - try { - GcViewNumberOfEachMembersUnreadMessagesResponse result = apiInstance.gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, userIds); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#gcViewNumberOfEachMembersUnreadMessages"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} \ No newline at end of file diff --git a/samples/message-count/src/test/java/MessageCountTest.java b/samples/message-count/src/test/java/MessageCountTest.java index 537572e3..637a57e0 100644 --- a/samples/message-count/src/test/java/MessageCountTest.java +++ b/samples/message-count/src/test/java/MessageCountTest.java @@ -31,13 +31,15 @@ public static void tearDown() { GroupChannel groupChannel = new GroupChannel(defaultClient); ListUsersResponse users = user.listUsers("SB::test-user::Java::e2e::"); + for (int i = 0; i < users.getUsers().size(); i++) { String userIdToDelete = users.getUsers().get(i).getUserId(); + System.out.println(userIdToDelete); + user.deleteUserById(userIdToDelete); } GcListChannelsResponse groupChannelResponse = groupChannel.listChannels("SB::test-gc::Java::e2e::"); - System.out.println(groupChannelResponse); for (int i = 0; i < groupChannelResponse.getChannels().size(); i++) { String channelUrlToDelete = groupChannelResponse.getChannels().get(i).getChannelUrl(); diff --git a/samples/moderation/src/main/java/Moderate.java b/samples/moderation/src/main/java/Moderate.java index f22b1757..c3ce71c6 100644 --- a/samples/moderation/src/main/java/Moderate.java +++ b/samples/moderation/src/main/java/Moderate.java @@ -1,9 +1,12 @@ import org.openapitools.client.model.*; import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; import org.sendbird.client.Configuration; +import org.sendbird.client.api.*; import java.util.ArrayList; import java.util.List; +import java.util.UUID; public class Moderate { public void freezeChannel(){ @@ -52,3 +55,245 @@ public void reportMessage(){ ListReportsOnChannelByUrlResponse result = report.listReportsOnChannelByUrl(createChannelResult.getChannelUrl()); } } + +class GroupChannel { + ApiClient defaultClient; + String apiToken; + GroupChannelApi apiInstance; + public GroupChannel(ApiClient defaultClient){ + apiInstance = new GroupChannelApi(defaultClient); + apiToken = Config.apiToken; + + } + + + public GcListChannelsResponse listChannels(String nameStartswith){ + try { + GcListChannelsResponse result = apiInstance.gcListChannels().apiToken(apiToken).distinctMode("all").nameStartswith(nameStartswith).showEmpty(true).showMember(true).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcListChannels"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + + } + + public SendBirdGroupChannel createChannel(List userIds){ + GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); + gcCreateChannelData.name("SB::test-gc::Java::e2e::"+ UUID.randomUUID().toString()); + + + gcCreateChannelData.userIds(userIds); + gcCreateChannelData.isDistinct(false); + + try { + SendBirdGroupChannel result = apiInstance.gcCreateChannel().apiToken(apiToken).gcCreateChannelData(gcCreateChannelData).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + + } + + + public OcDeleteChannelByUrl200Response deleteChannelByUrl(String channelUrl){ + + try { + OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(channelUrl).apiToken(apiToken).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + } + +} + +class User { + ApiClient defaultClient; + String apiToken; + UserApi apiInstance; + public User(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new UserApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdUser createUser(){ + CreateUserData createUserData = new CreateUserData(); // CreateUserData | + createUserData.userId(UUID.randomUUID().toString()); + createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); + try { + SendBirdUser result = apiInstance.createUser().apiToken(apiToken).createUserData(createUserData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + + public SendBirdUser deleteUserById(String userId){ + + try { + apiInstance.deleteUserById(userId).apiToken(apiToken).execute(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public ListUsersResponse listUsers(String nicknameStartswith){ + + try { + ListUsersResponse result = apiInstance.listUsers().apiToken(apiToken).nicknameStartswith(nicknameStartswith).activeMode("activated").execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + + + +} + +class Message { + ApiClient defaultClient; + String apiToken; + MessageApi apiInstance; + public Message(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new MessageApi(defaultClient); + apiToken = Config.apiToken; + + } + + public SendBirdMessageResponse sendMessage(String channelType, String channelUrl, String userId, String message, String messageType){ + + SendMessageData sendMessageData = new SendMessageData(); + sendMessageData.channelType(channelType); + sendMessageData.channelUrl(channelUrl); + sendMessageData.userId(userId); + sendMessageData.message(message); + sendMessageData.messageType(messageType); + + try { + SendBirdMessageResponse result = apiInstance.sendMessage(channelType, channelUrl).apiToken(apiToken).sendMessageData(sendMessageData).execute(); + System.out.println(result); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#sendMessage"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + +} + +class Moderation { + ApiClient defaultClient; + String apiToken; + ModerationApi apiInstance; + public Moderation(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new ModerationApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdGroupChannel freezeChannel(String channelUrl){ + + GcFreezeChannelData gcFreezeChannelData = new GcFreezeChannelData(); // GcFreezeChannelData | + gcFreezeChannelData.freeze(true); + try { + SendBirdGroupChannel result = apiInstance.gcFreezeChannel(channelUrl).apiToken(apiToken).gcFreezeChannelData(gcFreezeChannelData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling ModerationApi#gcFreezeChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } +} + +class Report { + ApiClient defaultClient; + String apiToken; + ReportApi apiInstance; + public Report(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new ReportApi(defaultClient); + apiToken = Config.apiToken; + + } + public ReportMessageByIdResponse reportMessageById(String messageId, String channelUrl, String offendingUserId){ + + String channelType = "group_channels"; // String | + ReportMessageByIdData reportMessageByIdData = new ReportMessageByIdData(); // ReportMessageByIdData | + reportMessageByIdData.offendingUserId(offendingUserId); + reportMessageByIdData.reportCategory("spam"); + try { + ReportMessageByIdResponse result = apiInstance.reportMessageById(channelType, channelUrl, messageId).apiToken(apiToken).reportMessageByIdData(reportMessageByIdData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling ReportApi#reportMessageById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public ListReportsOnChannelByUrlResponse listReportsOnChannelByUrl(String channelUrl){ + + try { + ListReportsOnChannelByUrlResponse result = apiInstance.listReportsOnChannelByUrl("group_channels", channelUrl).apiToken(apiToken).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling ReportApi#listReportsOnChannelByUrl"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } +} diff --git a/samples/moderation/src/main/java/Sendbird.java b/samples/moderation/src/main/java/Sendbird.java deleted file mode 100644 index 582712c2..00000000 --- a/samples/moderation/src/main/java/Sendbird.java +++ /dev/null @@ -1,476 +0,0 @@ -import org.openapitools.client.model.*; -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.api.*; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - -class GroupChannel { - ApiClient defaultClient; - String apiToken; - GroupChannelApi apiInstance; - public GroupChannel(ApiClient defaultClient){ - apiInstance = new GroupChannelApi(defaultClient); - apiToken = Config.apiToken; - - } - - public SendBirdGroupChannel viewChannelByUrl(String channelUrl){ - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = false; // Boolean | - Boolean showMember = true; // Boolean | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - try { - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public GcListChannelsResponse listChannels(String nameStartswith){ - String token = null; // String | - Integer limit = 10; // Integer | - String distinctMode = "all"; // String | - String publicMode = null; // String | - String superMode = null; // String | - Integer createdAfter = null; // Integer | - Integer createdBefore = null; // Integer | - Boolean showEmpty = true; // Boolean | - Boolean showMember = true; // Boolean | - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = true; // Boolean | - Boolean showMetadata = true; // Boolean | - Boolean showFrozen = false; // Boolean | - String order = null; // String | - String metadataOrderKey = null; // String | - String customTypes = null; // String | - String customTypeStartswith = null; // String | - String channelUrls = null; // String | - String name = null; // String | - String nameContains = null; // String | -// String nameStartswith = null; // String | - String membersExactlyIn = null; // String | - String membersIncludeIn = null; // String | - String queryType = null; // String | - String membersNickname = null; // String | - String membersNicknameContains = null; // String | - String metadataKey = null; // String | - String metadataValues = null; // String | - String metadataValueStartswith = null; // String | - String metacounterKey = null; // String | - String metacounterValues = null; // String | - String metacounterValueGt = null; // String | - String metacounterValueGte = null; // String | - String metacounterValueLt = null; // String | - String metacounterValueLte = null; // String | - Boolean includeSortedMetaarrayInLastMessage = true; // Boolean | - String customType = null; // String | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - Boolean isDistinct = false; // Boolean | - String membersIn = null; // String | - String userId = null; // String | - try { - GcListChannelsResponse result = apiInstance.gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcListChannels"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - - } - - public SendBirdGroupChannel createChannel(List userIds){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - gcCreateChannelData.name("SB::test-gc::Java::e2e::"+UUID.randomUUID().toString()); - - - gcCreateChannelData.userIds(userIds); - gcCreateChannelData.isDistinct(false); - - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - - } - - public SendBirdGroupChannel createChannelWithUserObjects(SendBirdUser user){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - - List users=new ArrayList(); - users.add(user); - - gcCreateChannelData.setUsers(users); - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public OcDeleteChannelByUrl200Response deleteChannelByUrl(String channelUrl){ - - try { - OcDeleteChannelByUrl200Response result = apiInstance.gcDeleteChannelByUrl(apiToken, channelUrl); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public SendBirdGroupChannel viewChannel(){ - try { - Boolean showDeliveryReceipt=false; - Boolean showReadReceipt=false; - Boolean showMember=true; - Boolean readReceipt=false; - Boolean member=true; - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, "sendbird_group_channel_37422_a4ed586747d860434545bcdfd9464b348bb08210",showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class User { - ApiClient defaultClient; - String apiToken; - UserApi apiInstance; - public User(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new UserApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdUser createUser(){ - CreateUserData createUserData = new CreateUserData(); // CreateUserData | - createUserData.userId(UUID.randomUUID().toString()); - createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); - try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser updateUserById(String userId, String nickname){ - UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); - updateUserByIdData.nickname(nickname); - try { - SendBirdUser result = apiInstance.updateUserById(apiToken,userId, updateUserByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser deleteUserById(String userId){ - - try { - apiInstance.deleteUserById(apiToken, userId); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListUsersResponse listUsers(String nicknameStartswith){ - - try { - String token = null; - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - String userIds = null; - String nickname = null; -// String nicknameStartswith = null; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public CreateUserTokenResponse createSessionToken(String userId){ - CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | - - try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenRequest); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String userId){ - String tokenType = "apns"; // String | - AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | - addRegistrationOrDeviceTokenData.apnsDeviceToken("1234"); - try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Message { - ApiClient defaultClient; - String apiToken; - MessageApi apiInstance; - public Message(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new MessageApi(defaultClient); - apiToken = Config.apiToken; - - } - - public SendBirdMessageResponse sendMessage(String channelType, String channelUrl, String userId, String message, String messageType){ - - SendMessageData sendMessageData = new SendMessageData(); - sendMessageData.channelType(channelType); - sendMessageData.channelUrl(channelUrl); - sendMessageData.userId(userId); - sendMessageData.message(message); - sendMessageData.messageType(messageType); - - try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#sendMessage"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdMessageResponse sendFileMessage(String channelType, String channelUrl, String userId, String message, String messageType){ - - SendMessageData sendMessageData = new SendMessageData(); - sendMessageData.channelType(channelType); - // try file and url - sendMessageData.url("https://assets.vercel.com/image/upload/v1661135356/front/next-conf-2022/og.png"); - sendMessageData.channelUrl(channelUrl); - sendMessageData.userId(userId); - sendMessageData.message(message); - sendMessageData.messageType(messageType); - - try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#sendMessage"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListMessagesResponse listMessages(String channelUrl){ - String channelType = "group_channels"; // String | - String messageTs = "0"; // Integer | - Integer messageId = null; // Integer | - Integer prevLimit = 56; // Integer | - Integer nextLimit = 56; // Integer | - Boolean include = true; // Boolean | - Boolean reverse = true; // Boolean | - String senderId = null; // String | - String senderIds = null; // String | - String operatorFilter = null; // String | - String customTypes = null; // String | - String messageType = "ADMM"; // String | - Boolean includingRemoved = false; // Boolean | - Boolean includeReactions = null; // Boolean | - Boolean withSortedMetaArray = false; // Boolean | - Boolean showSubchannelMessagesOnly = false; // Boolean | - String userId = null; // String | - String customType = null; // String | - Boolean withMetaArray = false; // Boolean | - try { - ListMessagesResponse result = apiInstance.listMessages(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#listMessages"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public GcViewNumberOfEachMembersUnreadMessagesResponse membersUnreadMessageCount(String channelUrl, String userIds){ - - try { - GcViewNumberOfEachMembersUnreadMessagesResponse result = apiInstance.gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, userIds); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#gcViewNumberOfEachMembersUnreadMessages"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Moderation { - ApiClient defaultClient; - String apiToken; - ModerationApi apiInstance; - public Moderation(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new ModerationApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdGroupChannel freezeChannel(String channelUrl){ - - GcFreezeChannelData gcFreezeChannelData = new GcFreezeChannelData(); // GcFreezeChannelData | - gcFreezeChannelData.freeze(true); - try { - SendBirdGroupChannel result = apiInstance.gcFreezeChannel(apiToken, channelUrl, gcFreezeChannelData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling ModerationApi#gcFreezeChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Report { - ApiClient defaultClient; - String apiToken; - ReportApi apiInstance; - public Report(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new ReportApi(defaultClient); - apiToken = Config.apiToken; - - } - public ReportMessageByIdResponse reportMessageById(String messageId, String channelUrl, String offendingUserId){ - - String channelType = "group_channels"; // String | - ReportMessageByIdData reportMessageByIdData = new ReportMessageByIdData(); // ReportMessageByIdData | - reportMessageByIdData.offendingUserId(offendingUserId); - reportMessageByIdData.reportCategory("spam"); - try { - ReportMessageByIdResponse result = apiInstance.reportMessageById(apiToken, channelType, channelUrl, messageId, reportMessageByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling ReportApi#reportMessageById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListReportsOnChannelByUrlResponse listReportsOnChannelByUrl(String channelUrl){ - String channelType = "group_channels"; // String | - String token = null; - Integer limit = 56; // Integer | - try { - ListReportsOnChannelByUrlResponse result = apiInstance.listReportsOnChannelByUrl(apiToken, channelType, channelUrl, token, limit); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling ReportApi#listReportsOnChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} \ No newline at end of file diff --git a/samples/pom.xml b/samples/pom.xml index 8782f716..df861985 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -9,7 +9,7 @@ pom 1.0-SNAPSHOT - Announcements + announcements authentication user-management message-count @@ -125,11 +125,11 @@ 4.9.3 - - org.sendbird - sendbird-platform-sdk - 0.0.14 - + + + + + org.junit.jupiter diff --git a/samples/send-messages/src/main/java/SendMessages.java b/samples/send-messages/src/main/java/SendMessages.java index 1574e8c7..fce2980b 100644 --- a/samples/send-messages/src/main/java/SendMessages.java +++ b/samples/send-messages/src/main/java/SendMessages.java @@ -1,12 +1,15 @@ -import org.openapitools.client.model.ListMessagesResponse; -import org.openapitools.client.model.SendBirdGroupChannel; -import org.openapitools.client.model.SendBirdMessageResponse; -import org.openapitools.client.model.SendBirdUser; +import org.openapitools.client.model.*; import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; import org.sendbird.client.Configuration; +import org.sendbird.client.api.AnnouncementApi; +import org.sendbird.client.api.GroupChannelApi; +import org.sendbird.client.api.MessageApi; +import org.sendbird.client.api.UserApi; import java.util.ArrayList; import java.util.List; +import java.util.UUID; public class SendMessages { public void sendMessage(){ @@ -59,3 +62,150 @@ public void sendFileMessage(){ } } + +class GroupChannel { + ApiClient defaultClient; + String apiToken; + GroupChannelApi apiInstance; + public GroupChannel(ApiClient defaultClient){ + apiInstance = new GroupChannelApi(defaultClient); + apiToken = Config.apiToken; + + } + + + + public SendBirdGroupChannel createChannel(List userIds){ + GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); + gcCreateChannelData.name("JAVA-SDK-GROUP"); + + + gcCreateChannelData.userIds(userIds); + gcCreateChannelData.isDistinct(false); + + try { + SendBirdGroupChannel result = apiInstance.gcCreateChannel().apiToken(apiToken).gcCreateChannelData(gcCreateChannelData).execute(); + return result; + + } catch (ApiException e) { + System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + return null; + + } + +} + + +class User { + ApiClient defaultClient; + String apiToken; + UserApi apiInstance; + public User(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new UserApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdUser createUser(){ + CreateUserData createUserData = new CreateUserData(); // CreateUserData | + createUserData.userId(UUID.randomUUID().toString()); + createUserData.nickname("nickname"); + try { + SendBirdUser result = apiInstance.createUser().apiToken(apiToken).createUserData(createUserData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + +} + +class Message { + ApiClient defaultClient; + String apiToken; + MessageApi apiInstance; + public Message(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new MessageApi(defaultClient); + apiToken = Config.apiToken; + + } + + public SendBirdMessageResponse sendMessage(String channelType, String channelUrl, String userId, String message, String messageType){ + + SendMessageData sendMessageData = new SendMessageData(); + sendMessageData.channelType(channelType); + sendMessageData.channelUrl(channelUrl); + sendMessageData.userId(userId); + sendMessageData.message(message); + sendMessageData.messageType(messageType); + System.out.println(sendMessageData); + + try { + SendBirdMessageResponse result = apiInstance.sendMessage(channelType, channelUrl).apiToken(apiToken).sendMessageData(sendMessageData).execute(); + System.out.println(result); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#sendMessage"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public SendBirdMessageResponse sendFileMessage(String channelType, String channelUrl, String userId, String message, String messageType){ + + SendMessageData sendMessageData = new SendMessageData(); + sendMessageData.channelType(channelType); + // try file and url + sendMessageData.url("https://assets.vercel.com/image/upload/v1661135356/front/next-conf-2022/og.png"); + sendMessageData.channelUrl(channelUrl); + sendMessageData.userId(userId); + sendMessageData.message(message); + sendMessageData.messageType(messageType); + + try { + SendBirdMessageResponse result = apiInstance.sendMessage(channelType, channelUrl).apiToken(apiToken).sendMessageData(sendMessageData).execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#sendMessage"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public ListMessagesResponse listMessages(String channelUrl){ + String channelType = "group_channels"; + + try { + ListMessagesResponse result = apiInstance.listMessages(channelType, channelUrl).apiToken(apiToken).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling MessageApi#listMessages"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + +} + diff --git a/samples/send-messages/src/main/java/Sendbird.java b/samples/send-messages/src/main/java/Sendbird.java deleted file mode 100644 index 2fba94e4..00000000 --- a/samples/send-messages/src/main/java/Sendbird.java +++ /dev/null @@ -1,431 +0,0 @@ -import org.openapitools.client.model.*; -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.api.*; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - -class GroupChannel { - ApiClient defaultClient; - String apiToken; - GroupChannelApi apiInstance; - public GroupChannel(ApiClient defaultClient){ - apiInstance = new GroupChannelApi(defaultClient); - apiToken = Config.apiToken; - - } - - public SendBirdGroupChannel viewChannelByUrl(String channelUrl){ - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = false; // Boolean | - Boolean showMember = true; // Boolean | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - try { - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcViewChannelByUrl"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - } - - public GcListChannelsResponse listChannels(){ - String token = null; // String | - Integer limit = 10; // Integer | - String distinctMode = "all"; // String | - String publicMode = null; // String | - String superMode = null; // String | - Integer createdAfter = null; // Integer | - Integer createdBefore = null; // Integer | - Boolean showEmpty = true; // Boolean | - Boolean showMember = true; // Boolean | - Boolean showDeliveryReceipt = false; // Boolean | - Boolean showReadReceipt = true; // Boolean | - Boolean showMetadata = true; // Boolean | - Boolean showFrozen = false; // Boolean | - String order = null; // String | - String metadataOrderKey = null; // String | - String customTypes = null; // String | - String customTypeStartswith = null; // String | - String channelUrls = null; // String | - String name = null; // String | - String nameContains = null; // String | - String nameStartswith = null; // String | - String membersExactlyIn = null; // String | - String membersIncludeIn = null; // String | - String queryType = null; // String | - String membersNickname = null; // String | - String membersNicknameContains = null; // String | - String metadataKey = null; // String | - String metadataValues = null; // String | - String metadataValueStartswith = null; // String | - String metacounterKey = null; // String | - String metacounterValues = null; // String | - String metacounterValueGt = null; // String | - String metacounterValueGte = null; // String | - String metacounterValueLt = null; // String | - String metacounterValueLte = null; // String | - Boolean includeSortedMetaarrayInLastMessage = true; // Boolean | - String customType = null; // String | - Boolean readReceipt = true; // Boolean | - Boolean member = true; // Boolean | - Boolean isDistinct = false; // Boolean | - String membersIn = null; // String | - String userId = null; // String | - try { - GcListChannelsResponse result = apiInstance.gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcListChannels"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - - } - - public SendBirdGroupChannel createChannel(List userIds){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - gcCreateChannelData.name("JAVA-SDK-GROUP"); - - - gcCreateChannelData.userIds(userIds); - gcCreateChannelData.isDistinct(false); - - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - - return null; - - } - - public SendBirdGroupChannel createChannelWithUserObjects(SendBirdUser user){ - GcCreateChannelData gcCreateChannelData = new GcCreateChannelData(); - - List users=new ArrayList(); - users.add(user); - - gcCreateChannelData.setUsers(users); - try { - SendBirdGroupChannel result = apiInstance.gcCreateChannel(apiToken, gcCreateChannelData); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdGroupChannel viewChannel(){ - try { - Boolean showDeliveryReceipt=false; - Boolean showReadReceipt=false; - Boolean showMember=true; - Boolean readReceipt=false; - Boolean member=true; - SendBirdGroupChannel result = apiInstance.gcViewChannelByUrl(apiToken, "sendbird_group_channel_37422_a4ed586747d860434545bcdfd9464b348bb08210",showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - - -class User { - ApiClient defaultClient; - String apiToken; - UserApi apiInstance; - public User(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new UserApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdUser createUser(){ - CreateUserData createUserData = new CreateUserData(); // CreateUserData | - createUserData.userId(UUID.randomUUID().toString()); - createUserData.nickname("nickname"); - try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser updateUserById(String userId, String nickname){ - UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); - updateUserByIdData.nickname(nickname); - try { - SendBirdUser result = apiInstance.updateUserById(apiToken,userId, updateUserByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser deleteUserById(String userId){ - - try { - apiInstance.deleteUserById(apiToken, userId); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListUsersResponse listUsers(){ - - try { - String token = null; - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - String userIds = null; - String nickname = null; - String nicknameStartswith = null; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public CreateUserTokenResponse createSessionToken(String userId){ - CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | - - try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenRequest); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String userId){ - String tokenType = "apns"; // String | - AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | - addRegistrationOrDeviceTokenData.apnsDeviceToken("1234"); - try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Announcement { - ApiClient defaultClient; - String apiToken; - AnnouncementApi apiInstance; - - public Announcement(ApiClient defaultClient) { - System.out.println("constructor"); - apiInstance = new AnnouncementApi(defaultClient); - apiToken = Config.apiToken; - } - - public ScheduleAnnouncementResponse scheduleAnnouncement(String message, String type, String userId, String content, String targetAt, List targetList, String channelType){ - ScheduleAnnouncementData scheduleAnnouncementData = new ScheduleAnnouncementData(); - ScheduleAnnouncementDataMessage scheduleAnnouncementDataMessage = new ScheduleAnnouncementDataMessage(); - - scheduleAnnouncementDataMessage.type(type); - scheduleAnnouncementDataMessage.userId(userId); - scheduleAnnouncementDataMessage.content(content); - - - scheduleAnnouncementData.message(scheduleAnnouncementDataMessage); - scheduleAnnouncementData.messageType(type); - scheduleAnnouncementData.userId(userId); - scheduleAnnouncementData.content(content); - scheduleAnnouncementData.targetAt(targetAt); - scheduleAnnouncementData.targetList(targetList); - scheduleAnnouncementData.targetChannelType(channelType); - - System.out.println(scheduleAnnouncementData); - - try { - ScheduleAnnouncementResponse result = apiInstance.scheduleAnnouncement(apiToken, scheduleAnnouncementData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#scheduleAnnouncement"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Message { - ApiClient defaultClient; - String apiToken; - MessageApi apiInstance; - public Message(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new MessageApi(defaultClient); - apiToken = Config.apiToken; - - } - - public SendBirdMessageResponse sendMessage(String channelType, String channelUrl, String userId, String message, String messageType){ - - SendMessageData sendMessageData = new SendMessageData(); - sendMessageData.channelType(channelType); - sendMessageData.channelUrl(channelUrl); - sendMessageData.userId(userId); - sendMessageData.message(message); - sendMessageData.messageType(messageType); - System.out.println(sendMessageData); - - try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#sendMessage"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdMessageResponse sendFileMessage(String channelType, String channelUrl, String userId, String message, String messageType){ - - SendMessageData sendMessageData = new SendMessageData(); - sendMessageData.channelType(channelType); - // try file and url - sendMessageData.url("https://assets.vercel.com/image/upload/v1661135356/front/next-conf-2022/og.png"); - sendMessageData.channelUrl(channelUrl); - sendMessageData.userId(userId); - sendMessageData.message(message); - sendMessageData.messageType(messageType); - - try { - SendBirdMessageResponse result = apiInstance.sendMessage(apiToken, channelType, channelUrl, sendMessageData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#sendMessage"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListMessagesResponse listMessages(String channelUrl){ - String channelType = "group_channels"; // String | - String messageTs = "0"; // Integer | - Integer messageId = null; // Integer | - Integer prevLimit = 56; // Integer | - Integer nextLimit = 56; // Integer | - Boolean include = true; // Boolean | - Boolean reverse = true; // Boolean | - String senderId = null; // String | - String senderIds = null; // String | - String operatorFilter = null; // String | - String customTypes = null; // String | - String messageType = "ADMM"; // String | - Boolean includingRemoved = false; // Boolean | - Boolean includeReactions = null; // Boolean | - Boolean withSortedMetaArray = false; // Boolean | - Boolean showSubchannelMessagesOnly = false; // Boolean | - String userId = null; // String | - String customType = null; // String | - Boolean withMetaArray = false; // Boolean | - try { - ListMessagesResponse result = apiInstance.listMessages(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#listMessages"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public GcViewNumberOfEachMembersUnreadMessagesResponse membersUnreadMessageCount(String channelUrl, String userIds){ - - try { - GcViewNumberOfEachMembersUnreadMessagesResponse result = apiInstance.gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, userIds); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#gcViewNumberOfEachMembersUnreadMessages"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} diff --git a/samples/user-management/src/main/java/Sendbird.java b/samples/user-management/src/main/java/Sendbird.java deleted file mode 100644 index 9cd076af..00000000 --- a/samples/user-management/src/main/java/Sendbird.java +++ /dev/null @@ -1,169 +0,0 @@ -import org.openapitools.client.model.*; -import org.sendbird.client.ApiClient; -import org.sendbird.client.ApiException; -import org.sendbird.client.api.*; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - -class User { - ApiClient defaultClient; - String apiToken; - UserApi apiInstance; - public User(ApiClient defaultClient){ - System.out.println("constructor"); - apiInstance = new UserApi(defaultClient); - apiToken = Config.apiToken; - - } - public SendBirdUser createUser(){ - CreateUserData createUserData = new CreateUserData(); // CreateUserData | - createUserData.userId(UUID.randomUUID().toString()); - createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); - try { - SendBirdUser result = apiInstance.createUser(apiToken, createUserData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser updateUserById(String userId, String nickname){ - UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); - updateUserByIdData.nickname(nickname); - try { - SendBirdUser result = apiInstance.updateUserById(apiToken,userId, updateUserByIdData); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public SendBirdUser deleteUserById(String userId){ - - try { - apiInstance.deleteUserById(apiToken, userId); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public ListUsersResponse listUsers(String nicknameStartswith){ - - try { - String token = null; - Integer limit = 56; - String activeMode = "activated"; - Boolean showBot = true; - String userIds = null; - String nickname = null; -// String nicknameStartswith = null; - String metadatakey = null; - String metadatavaluesIn = null; - ListUsersResponse result = apiInstance.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); - return result; - - } catch (ApiException e) { - System.err.println("Exception when calling GroupChannelApi#gcCreateChannel"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public CreateUserTokenResponse createSessionToken(String userId){ - CreateUserTokenData createUserTokenRequest = new CreateUserTokenData(); // CreateUserData | - - try { - CreateUserTokenResponse result = apiInstance.createUserToken(apiToken, userId, createUserTokenRequest); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } - - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String userId){ - String tokenType = "apns"; // String | - AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = new AddRegistrationOrDeviceTokenData(); // AddRegistrationOrDeviceTokenData | - addRegistrationOrDeviceTokenData.apnsDeviceToken("1234"); - try { - AddRegistrationOrDeviceTokenResponse result = apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); - System.out.println(result); - return result; - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addRegistrationOrDeviceToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} - -class Announcement { - ApiClient defaultClient; - String apiToken; - AnnouncementApi apiInstance; - - public Announcement(ApiClient defaultClient) { - System.out.println("constructor"); - apiInstance = new AnnouncementApi(defaultClient); - apiToken = Config.apiToken; - } - - public ScheduleAnnouncementResponse scheduleAnnouncement(String message, String type, String userId, String content, String targetAt, List targetList, String channelType){ - ScheduleAnnouncementData scheduleAnnouncementData = new ScheduleAnnouncementData(); - ScheduleAnnouncementDataMessage scheduleAnnouncementDataMessage = new ScheduleAnnouncementDataMessage(); - - scheduleAnnouncementDataMessage.type(type); - scheduleAnnouncementDataMessage.userId(userId); - scheduleAnnouncementDataMessage.content(content); - - - scheduleAnnouncementData.message(scheduleAnnouncementDataMessage); - scheduleAnnouncementData.messageType(type); - scheduleAnnouncementData.userId(userId); - scheduleAnnouncementData.content(content); - scheduleAnnouncementData.targetAt(targetAt); - scheduleAnnouncementData.targetList(targetList); - scheduleAnnouncementData.targetChannelType(channelType); - - System.out.println(scheduleAnnouncementData); - - try { - ScheduleAnnouncementResponse result = apiInstance.scheduleAnnouncement(apiToken, scheduleAnnouncementData); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling MessageApi#scheduleAnnouncement"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - return null; - } -} \ No newline at end of file diff --git a/samples/user-management/src/main/java/UserManagement.java b/samples/user-management/src/main/java/UserManagement.java index 52cbe1db..2c2c11c9 100644 --- a/samples/user-management/src/main/java/UserManagement.java +++ b/samples/user-management/src/main/java/UserManagement.java @@ -1,6 +1,12 @@ -import org.openapitools.client.model.SendBirdUser; +import org.openapitools.client.model.*; import org.sendbird.client.ApiClient; +import org.sendbird.client.ApiException; import org.sendbird.client.Configuration; +import org.sendbird.client.api.AnnouncementApi; +import org.sendbird.client.api.UserApi; + +import java.util.List; +import java.util.UUID; public class UserManagement { public SendBirdUser manageUser(){ @@ -13,3 +19,62 @@ public SendBirdUser manageUser(){ return updatedUserResult; } } + + +class User { + ApiClient defaultClient; + String apiToken; + UserApi apiInstance; + public User(ApiClient defaultClient){ + System.out.println("constructor"); + apiInstance = new UserApi(defaultClient); + apiToken = Config.apiToken; + + } + public SendBirdUser createUser(){ + CreateUserData createUserData = new CreateUserData(); // CreateUserData | + createUserData.userId(UUID.randomUUID().toString()); + createUserData.nickname("SB::test-user::Java::e2e::"+UUID.randomUUID().toString()); + try { + SendBirdUser result = apiInstance.createUser().apiToken(apiToken).createUserData(createUserData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public SendBirdUser updateUserById(String userId, String nickname){ + UpdateUserByIdData updateUserByIdData = new UpdateUserByIdData(); + updateUserByIdData.nickname(nickname); + try { + SendBirdUser result = apiInstance.updateUserById(userId).apiToken(apiToken).updateUserByIdData(updateUserByIdData).execute(); + return result; + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } + + public SendBirdUser deleteUserById(String userId){ + + try { + apiInstance.deleteUserById(userId).apiToken(apiToken).execute(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + return null; + } +} diff --git a/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java index d66dc177..8ffdff91 100644 --- a/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationData.java b/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationData.java index eb35a7b3..2db91378 100644 --- a/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationData.java +++ b/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationData.java @@ -43,7 +43,7 @@ AddApnsPushConfigurationData.JSON_PROPERTY_APNS_TYPE }) @JsonTypeName("addApnsPushConfigurationData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddApnsPushConfigurationData { public static final String JSON_PROPERTY_APNS_CERT = "apns_cert"; private File apnsCert; diff --git a/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponse.java b/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponse.java index 990c6594..cd955ea6 100644 --- a/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponse.java +++ b/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponse.java @@ -38,7 +38,7 @@ AddApnsPushConfigurationResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("addApnsPushConfigurationResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddApnsPushConfigurationResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponsePushConfigurationsInner.java b/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponsePushConfigurationsInner.java index e4b5ab3c..7cc5180d 100644 --- a/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponsePushConfigurationsInner.java +++ b/src/main/java/org/openapitools/client/model/AddApnsPushConfigurationResponsePushConfigurationsInner.java @@ -45,7 +45,7 @@ AddApnsPushConfigurationResponsePushConfigurationsInner.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("addApnsPushConfigurationResponse_push_configurations_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddApnsPushConfigurationResponsePushConfigurationsInner { public static final String JSON_PROPERTY_ID = "id"; private String id; diff --git a/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponse.java b/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponse.java index d0542900..4244344b 100644 --- a/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponse.java +++ b/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponse.java @@ -38,7 +38,7 @@ AddEmojiCategoriesResponse.JSON_PROPERTY_EMOJI_CATEGORIES }) @JsonTypeName("addEmojiCategoriesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddEmojiCategoriesResponse { public static final String JSON_PROPERTY_EMOJI_CATEGORIES = "emoji_categories"; private List emojiCategories = null; diff --git a/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponseEmojiCategoriesInner.java b/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponseEmojiCategoriesInner.java index 4671836b..15212076 100644 --- a/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponseEmojiCategoriesInner.java +++ b/src/main/java/org/openapitools/client/model/AddEmojiCategoriesResponseEmojiCategoriesInner.java @@ -38,7 +38,7 @@ AddEmojiCategoriesResponseEmojiCategoriesInner.JSON_PROPERTY_URL }) @JsonTypeName("addEmojiCategoriesResponse_emoji_categories_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddEmojiCategoriesResponseEmojiCategoriesInner { public static final String JSON_PROPERTY_ID = "id"; private BigDecimal id; diff --git a/src/main/java/org/openapitools/client/model/AddEmojisData.java b/src/main/java/org/openapitools/client/model/AddEmojisData.java index dac195c2..8f4e4249 100644 --- a/src/main/java/org/openapitools/client/model/AddEmojisData.java +++ b/src/main/java/org/openapitools/client/model/AddEmojisData.java @@ -38,7 +38,7 @@ AddEmojisData.JSON_PROPERTY_EMOJIS }) @JsonTypeName("addEmojisData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddEmojisData { public static final String JSON_PROPERTY_EMOJI_CATEGORY_ID = "emoji_category_id"; private Integer emojiCategoryId; diff --git a/src/main/java/org/openapitools/client/model/AddEmojisResponse.java b/src/main/java/org/openapitools/client/model/AddEmojisResponse.java index 9dba48f2..8295ed44 100644 --- a/src/main/java/org/openapitools/client/model/AddEmojisResponse.java +++ b/src/main/java/org/openapitools/client/model/AddEmojisResponse.java @@ -38,7 +38,7 @@ AddEmojisResponse.JSON_PROPERTY_EMOJIS }) @JsonTypeName("addEmojisResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddEmojisResponse { public static final String JSON_PROPERTY_EMOJIS = "emojis"; private List emojis = null; diff --git a/src/main/java/org/openapitools/client/model/AddExtraDataToMessageData.java b/src/main/java/org/openapitools/client/model/AddExtraDataToMessageData.java index 93357b28..108b6d10 100644 --- a/src/main/java/org/openapitools/client/model/AddExtraDataToMessageData.java +++ b/src/main/java/org/openapitools/client/model/AddExtraDataToMessageData.java @@ -38,7 +38,7 @@ AddExtraDataToMessageData.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("addExtraDataToMessageData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddExtraDataToMessageData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/AddExtraDataToMessageResponse.java b/src/main/java/org/openapitools/client/model/AddExtraDataToMessageResponse.java index a0281fc0..5e782fdb 100644 --- a/src/main/java/org/openapitools/client/model/AddExtraDataToMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/AddExtraDataToMessageResponse.java @@ -38,7 +38,7 @@ AddExtraDataToMessageResponse.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("addExtraDataToMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddExtraDataToMessageResponse { public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; private List sortedMetaarray = null; diff --git a/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationData.java b/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationData.java index 96cb2291..45c2c9de 100644 --- a/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationData.java +++ b/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationData.java @@ -36,7 +36,7 @@ AddFcmPushConfigurationData.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("addFcmPushConfigurationData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddFcmPushConfigurationData { public static final String JSON_PROPERTY_API_KEY = "api_key"; private String apiKey; diff --git a/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponse.java b/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponse.java index 56944281..69b7b0e1 100644 --- a/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponse.java +++ b/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponse.java @@ -38,7 +38,7 @@ AddFcmPushConfigurationResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("addFcmPushConfigurationResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddFcmPushConfigurationResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponsePushConfigurationsInner.java b/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponsePushConfigurationsInner.java index f438f5b5..d2f36a8d 100644 --- a/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponsePushConfigurationsInner.java +++ b/src/main/java/org/openapitools/client/model/AddFcmPushConfigurationResponsePushConfigurationsInner.java @@ -38,7 +38,7 @@ AddFcmPushConfigurationResponsePushConfigurationsInner.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("addFcmPushConfigurationResponse_push_configurations_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddFcmPushConfigurationResponsePushConfigurationsInner { public static final String JSON_PROPERTY_ID = "id"; private String id; diff --git a/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationData.java b/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationData.java index 5f512b05..cb6a229d 100644 --- a/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationData.java +++ b/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationData.java @@ -37,7 +37,7 @@ AddHmsPushConfigurationData.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("addHmsPushConfigurationData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddHmsPushConfigurationData { public static final String JSON_PROPERTY_HUAWEI_APP_ID = "huawei_app_id"; private String huaweiAppId; diff --git a/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponse.java b/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponse.java index 551247d5..ffcd447f 100644 --- a/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponse.java +++ b/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponse.java @@ -38,7 +38,7 @@ AddHmsPushConfigurationResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("addHmsPushConfigurationResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddHmsPushConfigurationResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponsePushConfigurationsInner.java b/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponsePushConfigurationsInner.java index 2f85199b..5fa86510 100644 --- a/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponsePushConfigurationsInner.java +++ b/src/main/java/org/openapitools/client/model/AddHmsPushConfigurationResponsePushConfigurationsInner.java @@ -39,7 +39,7 @@ AddHmsPushConfigurationResponsePushConfigurationsInner.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("addHmsPushConfigurationResponse_push_configurations_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddHmsPushConfigurationResponsePushConfigurationsInner { public static final String JSON_PROPERTY_ID = "id"; private String id; diff --git a/src/main/java/org/openapitools/client/model/AddIpToWhitelistData.java b/src/main/java/org/openapitools/client/model/AddIpToWhitelistData.java index 6a3d2ac8..abe7ef01 100644 --- a/src/main/java/org/openapitools/client/model/AddIpToWhitelistData.java +++ b/src/main/java/org/openapitools/client/model/AddIpToWhitelistData.java @@ -37,7 +37,7 @@ AddIpToWhitelistData.JSON_PROPERTY_IP_WHITELIST_ADDRESSES }) @JsonTypeName("addIpToWhitelistData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddIpToWhitelistData { public static final String JSON_PROPERTY_IP_WHITELIST_ADDRESSES = "ip_whitelist_addresses"; private List ipWhitelistAddresses = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/AddIpToWhitelistResponse.java b/src/main/java/org/openapitools/client/model/AddIpToWhitelistResponse.java index f4d573c5..b4795856 100644 --- a/src/main/java/org/openapitools/client/model/AddIpToWhitelistResponse.java +++ b/src/main/java/org/openapitools/client/model/AddIpToWhitelistResponse.java @@ -37,7 +37,7 @@ AddIpToWhitelistResponse.JSON_PROPERTY_IP_WHITELIST_ADDRESSES }) @JsonTypeName("addIpToWhitelistResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddIpToWhitelistResponse { public static final String JSON_PROPERTY_IP_WHITELIST_ADDRESSES = "ip_whitelist_addresses"; private List ipWhitelistAddresses = null; diff --git a/src/main/java/org/openapitools/client/model/AddReactionToAMessageData.java b/src/main/java/org/openapitools/client/model/AddReactionToAMessageData.java index 329da666..26ea47f0 100644 --- a/src/main/java/org/openapitools/client/model/AddReactionToAMessageData.java +++ b/src/main/java/org/openapitools/client/model/AddReactionToAMessageData.java @@ -39,7 +39,7 @@ AddReactionToAMessageData.JSON_PROPERTY_REACTION }) @JsonTypeName("addReactionToAMessageData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddReactionToAMessageData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/AddReactionToAMessageResponse.java b/src/main/java/org/openapitools/client/model/AddReactionToAMessageResponse.java index 4a365e1d..ea307469 100644 --- a/src/main/java/org/openapitools/client/model/AddReactionToAMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/AddReactionToAMessageResponse.java @@ -41,7 +41,7 @@ AddReactionToAMessageResponse.JSON_PROPERTY_MSG_ID }) @JsonTypeName("addReactionToAMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddReactionToAMessageResponse { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenData.java b/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenData.java index 6dc05ad9..0bd80801 100644 --- a/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenData.java +++ b/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenData.java @@ -37,7 +37,7 @@ AddRegistrationOrDeviceTokenData.JSON_PROPERTY_APNS_DEVICE_TOKEN }) @JsonTypeName("addRegistrationOrDeviceTokenData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddRegistrationOrDeviceTokenData { public static final String JSON_PROPERTY_GCM_REG_TOKEN = "gcm_reg_token"; private String gcmRegToken; diff --git a/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenResponse.java b/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenResponse.java index 9fd1f195..3c3eca38 100644 --- a/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/AddRegistrationOrDeviceTokenResponse.java @@ -38,7 +38,7 @@ AddRegistrationOrDeviceTokenResponse.JSON_PROPERTY_USER }) @JsonTypeName("addRegistrationOrDeviceTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AddRegistrationOrDeviceTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/BanFromChannelsWithCustomChannelTypesData.java b/src/main/java/org/openapitools/client/model/BanFromChannelsWithCustomChannelTypesData.java index a267b79f..fc4fb16f 100644 --- a/src/main/java/org/openapitools/client/model/BanFromChannelsWithCustomChannelTypesData.java +++ b/src/main/java/org/openapitools/client/model/BanFromChannelsWithCustomChannelTypesData.java @@ -37,7 +37,7 @@ BanFromChannelsWithCustomChannelTypesData.JSON_PROPERTY_CHANNEL_CUSTOM_TYPES }) @JsonTypeName("banFromChannelsWithCustomChannelTypesData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class BanFromChannelsWithCustomChannelTypesData { public static final String JSON_PROPERTY_CHANNEL_CUSTOM_TYPES = "channel_custom_types"; private List channelCustomTypes = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeData.java b/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeData.java index d93660ab..01432088 100644 --- a/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeData.java +++ b/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeData.java @@ -39,7 +39,7 @@ BanUsersInChannelsWithCustomChannelTypeData.JSON_PROPERTY_ON_DEMAND_UPSERT }) @JsonTypeName("banUsersInChannelsWithCustomChannelTypeData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class BanUsersInChannelsWithCustomChannelTypeData { public static final String JSON_PROPERTY_BANNED_LIST = "banned_list"; private List bannedList = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.java b/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.java index e6b75ecc..a77ed33b 100644 --- a/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.java +++ b/src/main/java/org/openapitools/client/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.java @@ -38,7 +38,7 @@ BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("banUsersInChannelsWithCustomChannelTypeData_banned_list_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class BanUsersInChannelsWithCustomChannelTypeDataBannedListInner { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/Blob.java b/src/main/java/org/openapitools/client/model/Blob.java index badc7f94..d3862bd6 100644 --- a/src/main/java/org/openapitools/client/model/Blob.java +++ b/src/main/java/org/openapitools/client/model/Blob.java @@ -36,7 +36,7 @@ Blob.JSON_PROPERTY_SIZE, Blob.JSON_PROPERTY_TYPE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class Blob { public static final String JSON_PROPERTY_SIZE = "size"; private BigDecimal size; diff --git a/src/main/java/org/openapitools/client/model/BlockUserData.java b/src/main/java/org/openapitools/client/model/BlockUserData.java index 798dfe05..f7180f66 100644 --- a/src/main/java/org/openapitools/client/model/BlockUserData.java +++ b/src/main/java/org/openapitools/client/model/BlockUserData.java @@ -40,7 +40,7 @@ BlockUserData.JSON_PROPERTY_USERS }) @JsonTypeName("blockUserData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class BlockUserData { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/BlockUserResponse.java b/src/main/java/org/openapitools/client/model/BlockUserResponse.java index 98387ae0..f2fb2e8b 100644 --- a/src/main/java/org/openapitools/client/model/BlockUserResponse.java +++ b/src/main/java/org/openapitools/client/model/BlockUserResponse.java @@ -38,7 +38,7 @@ BlockUserResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("blockUserResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class BlockUserResponse { public static final String JSON_PROPERTY_USERS = "users"; private List users = null; diff --git a/src/main/java/org/openapitools/client/model/ChoosePushNotificationContentTemplateResponse.java b/src/main/java/org/openapitools/client/model/ChoosePushNotificationContentTemplateResponse.java index 9fde77a8..a16df8a9 100644 --- a/src/main/java/org/openapitools/client/model/ChoosePushNotificationContentTemplateResponse.java +++ b/src/main/java/org/openapitools/client/model/ChoosePushNotificationContentTemplateResponse.java @@ -35,7 +35,7 @@ ChoosePushNotificationContentTemplateResponse.JSON_PROPERTY_NAME }) @JsonTypeName("choosePushNotificationContentTemplateResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ChoosePushNotificationContentTemplateResponse { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToData.java b/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToData.java index 78a7919c..b776a76a 100644 --- a/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToData.java +++ b/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToData.java @@ -40,7 +40,7 @@ ChooseWhichEventsToSubscribeToData.JSON_PROPERTY_ENABLED_EVENTS }) @JsonTypeName("chooseWhichEventsToSubscribeToData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ChooseWhichEventsToSubscribeToData { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; diff --git a/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponse.java b/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponse.java index 6c4bdba1..47599dcf 100644 --- a/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponse.java +++ b/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponse.java @@ -36,7 +36,7 @@ ChooseWhichEventsToSubscribeToResponse.JSON_PROPERTY_WEBHOOK }) @JsonTypeName("chooseWhichEventsToSubscribeToResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ChooseWhichEventsToSubscribeToResponse { public static final String JSON_PROPERTY_WEBHOOK = "webhook"; private ChooseWhichEventsToSubscribeToResponseWebhook webhook; diff --git a/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponseWebhook.java b/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponseWebhook.java index 1e5043ce..360210d0 100644 --- a/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponseWebhook.java +++ b/src/main/java/org/openapitools/client/model/ChooseWhichEventsToSubscribeToResponseWebhook.java @@ -41,7 +41,7 @@ ChooseWhichEventsToSubscribeToResponseWebhook.JSON_PROPERTY_INCLUDE_UNREAD_COUNT }) @JsonTypeName("chooseWhichEventsToSubscribeToResponse_webhook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ChooseWhichEventsToSubscribeToResponseWebhook { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; diff --git a/src/main/java/org/openapitools/client/model/ConfigureAutoEventData.java b/src/main/java/org/openapitools/client/model/ConfigureAutoEventData.java index 5ae6d14d..6c9dfc10 100644 --- a/src/main/java/org/openapitools/client/model/ConfigureAutoEventData.java +++ b/src/main/java/org/openapitools/client/model/ConfigureAutoEventData.java @@ -36,7 +36,7 @@ ConfigureAutoEventData.JSON_PROPERTY_AUTO_EVENT_MESSAGE }) @JsonTypeName("configureAutoEventData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ConfigureAutoEventData { public static final String JSON_PROPERTY_AUTO_EVENT_MESSAGE = "auto_event_message"; private ConfigureAutoEventDataAutoEventMessage autoEventMessage; diff --git a/src/main/java/org/openapitools/client/model/ConfigureAutoEventDataAutoEventMessage.java b/src/main/java/org/openapitools/client/model/ConfigureAutoEventDataAutoEventMessage.java index 538451c6..b31eaa16 100644 --- a/src/main/java/org/openapitools/client/model/ConfigureAutoEventDataAutoEventMessage.java +++ b/src/main/java/org/openapitools/client/model/ConfigureAutoEventDataAutoEventMessage.java @@ -38,7 +38,7 @@ ConfigureAutoEventDataAutoEventMessage.JSON_PROPERTY_CHANNEL_CHANGE }) @JsonTypeName("configureAutoEventData_auto_event_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ConfigureAutoEventDataAutoEventMessage { public static final String JSON_PROPERTY_USER_LEAVE = "user_leave"; private Object userLeave; diff --git a/src/main/java/org/openapitools/client/model/CreateBotData.java b/src/main/java/org/openapitools/client/model/CreateBotData.java index 8a5035d0..272eb26e 100644 --- a/src/main/java/org/openapitools/client/model/CreateBotData.java +++ b/src/main/java/org/openapitools/client/model/CreateBotData.java @@ -43,7 +43,7 @@ CreateBotData.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE }) @JsonTypeName("createBotData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateBotData { public static final String JSON_PROPERTY_BOT_USERID = "bot_userid"; private String botUserid; diff --git a/src/main/java/org/openapitools/client/model/CreateBotResponse.java b/src/main/java/org/openapitools/client/model/CreateBotResponse.java index c3a62b96..34c07b8b 100644 --- a/src/main/java/org/openapitools/client/model/CreateBotResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateBotResponse.java @@ -42,7 +42,7 @@ CreateBotResponse.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE }) @JsonTypeName("createBotResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateBotResponse { public static final String JSON_PROPERTY_BOT = "bot"; private CreateBotResponseBot bot; diff --git a/src/main/java/org/openapitools/client/model/CreateBotResponseBot.java b/src/main/java/org/openapitools/client/model/CreateBotResponseBot.java index e7b7afdc..47453560 100644 --- a/src/main/java/org/openapitools/client/model/CreateBotResponseBot.java +++ b/src/main/java/org/openapitools/client/model/CreateBotResponseBot.java @@ -40,7 +40,7 @@ CreateBotResponseBot.JSON_PROPERTY_BOT_METADATA }) @JsonTypeName("createBotResponse_bot") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateBotResponseBot { public static final String JSON_PROPERTY_BOT_TOKEN = "bot_token"; private String botToken; diff --git a/src/main/java/org/openapitools/client/model/CreateChannelMetacounterData.java b/src/main/java/org/openapitools/client/model/CreateChannelMetacounterData.java index 5c733cdf..5d36ca55 100644 --- a/src/main/java/org/openapitools/client/model/CreateChannelMetacounterData.java +++ b/src/main/java/org/openapitools/client/model/CreateChannelMetacounterData.java @@ -37,7 +37,7 @@ CreateChannelMetacounterData.JSON_PROPERTY_METACOUNTER }) @JsonTypeName("createChannelMetacounterData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateChannelMetacounterData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/CreateChannelMetadataData.java b/src/main/java/org/openapitools/client/model/CreateChannelMetadataData.java index c6ae4ebe..f5009a3f 100644 --- a/src/main/java/org/openapitools/client/model/CreateChannelMetadataData.java +++ b/src/main/java/org/openapitools/client/model/CreateChannelMetadataData.java @@ -38,7 +38,7 @@ CreateChannelMetadataData.JSON_PROPERTY_INCLUDE_TS }) @JsonTypeName("createChannelMetadataData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateChannelMetadataData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/CreateChannelMetadataResponse.java b/src/main/java/org/openapitools/client/model/CreateChannelMetadataResponse.java index ca4cb6a6..b13cd733 100644 --- a/src/main/java/org/openapitools/client/model/CreateChannelMetadataResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateChannelMetadataResponse.java @@ -40,7 +40,7 @@ CreateChannelMetadataResponse.JSON_PROPERTY_INCLUDE_TS }) @JsonTypeName("createChannelMetadataResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateChannelMetadataResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata = null; diff --git a/src/main/java/org/openapitools/client/model/CreateUserData.java b/src/main/java/org/openapitools/client/model/CreateUserData.java index d1a8319c..09b098dc 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserData.java +++ b/src/main/java/org/openapitools/client/model/CreateUserData.java @@ -44,7 +44,7 @@ CreateUserData.JSON_PROPERTY_METADATA }) @JsonTypeName("createUserData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateUserData { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/CreateUserMetadataData.java b/src/main/java/org/openapitools/client/model/CreateUserMetadataData.java index 598b9c02..93d6a3bf 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserMetadataData.java +++ b/src/main/java/org/openapitools/client/model/CreateUserMetadataData.java @@ -35,7 +35,7 @@ CreateUserMetadataData.JSON_PROPERTY_METADATA }) @JsonTypeName("createUserMetadataData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateUserMetadataData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Object metadata; diff --git a/src/main/java/org/openapitools/client/model/CreateUserMetadataResponse.java b/src/main/java/org/openapitools/client/model/CreateUserMetadataResponse.java index b54d3ca7..69b6c94b 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserMetadataResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateUserMetadataResponse.java @@ -35,7 +35,7 @@ CreateUserMetadataResponse.JSON_PROPERTY_ANY_OF }) @JsonTypeName("createUserMetadataResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateUserMetadataResponse { public static final String JSON_PROPERTY_ANY_OF = "anyOf"; private String anyOf; diff --git a/src/main/java/org/openapitools/client/model/CreateUserTokenData.java b/src/main/java/org/openapitools/client/model/CreateUserTokenData.java index 00eb2201..1182607d 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserTokenData.java +++ b/src/main/java/org/openapitools/client/model/CreateUserTokenData.java @@ -36,7 +36,7 @@ CreateUserTokenData.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("createUserTokenData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateUserTokenData { public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; private BigDecimal expiresAt; diff --git a/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java b/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java index 6aa6fee1..103d3d42 100644 --- a/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/CreateUserTokenResponse.java @@ -37,7 +37,7 @@ CreateUserTokenResponse.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("createUserTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CreateUserTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/CustomTypeListBannedUsersResponse.java b/src/main/java/org/openapitools/client/model/CustomTypeListBannedUsersResponse.java index 2646dc26..04856ab8 100644 --- a/src/main/java/org/openapitools/client/model/CustomTypeListBannedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/CustomTypeListBannedUsersResponse.java @@ -39,7 +39,7 @@ CustomTypeListBannedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("customTypeListBannedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class CustomTypeListBannedUsersResponse { public static final String JSON_PROPERTY_BANNED_LIST = "banned_list"; private List bannedList = null; diff --git a/src/main/java/org/openapitools/client/model/DeleteAllowedIpsFromWhitelistResponse.java b/src/main/java/org/openapitools/client/model/DeleteAllowedIpsFromWhitelistResponse.java index d327cd81..2c7b20ed 100644 --- a/src/main/java/org/openapitools/client/model/DeleteAllowedIpsFromWhitelistResponse.java +++ b/src/main/java/org/openapitools/client/model/DeleteAllowedIpsFromWhitelistResponse.java @@ -37,7 +37,7 @@ DeleteAllowedIpsFromWhitelistResponse.JSON_PROPERTY_IP_WHITELIST_ADDRESSES }) @JsonTypeName("deleteAllowedIpsFromWhitelistResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class DeleteAllowedIpsFromWhitelistResponse { public static final String JSON_PROPERTY_IP_WHITELIST_ADDRESSES = "ip_whitelist_addresses"; private List ipWhitelistAddresses = null; diff --git a/src/main/java/org/openapitools/client/model/DeleteApnsCertificateByIdResponse.java b/src/main/java/org/openapitools/client/model/DeleteApnsCertificateByIdResponse.java index 4a19d362..325507ed 100644 --- a/src/main/java/org/openapitools/client/model/DeleteApnsCertificateByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/DeleteApnsCertificateByIdResponse.java @@ -37,7 +37,7 @@ DeleteApnsCertificateByIdResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("deleteApnsCertificateByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class DeleteApnsCertificateByIdResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/EnableReactionsData.java b/src/main/java/org/openapitools/client/model/EnableReactionsData.java index f74aa3d9..08ba1232 100644 --- a/src/main/java/org/openapitools/client/model/EnableReactionsData.java +++ b/src/main/java/org/openapitools/client/model/EnableReactionsData.java @@ -35,7 +35,7 @@ EnableReactionsData.JSON_PROPERTY_ENABLED }) @JsonTypeName("enableReactionsData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class EnableReactionsData { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; diff --git a/src/main/java/org/openapitools/client/model/EnableReactionsResponse.java b/src/main/java/org/openapitools/client/model/EnableReactionsResponse.java index f2a8da0b..a7ce433a 100644 --- a/src/main/java/org/openapitools/client/model/EnableReactionsResponse.java +++ b/src/main/java/org/openapitools/client/model/EnableReactionsResponse.java @@ -35,7 +35,7 @@ EnableReactionsResponse.JSON_PROPERTY_REACTIONS }) @JsonTypeName("enableReactionsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class EnableReactionsResponse { public static final String JSON_PROPERTY_REACTIONS = "reactions"; private Boolean reactions; diff --git a/src/main/java/org/openapitools/client/model/Function.java b/src/main/java/org/openapitools/client/model/Function.java index 6958f7ad..931eae72 100644 --- a/src/main/java/org/openapitools/client/model/Function.java +++ b/src/main/java/org/openapitools/client/model/Function.java @@ -42,7 +42,7 @@ Function.JSON_PROPERTY_LENGTH, Function.JSON_PROPERTY_PROTOTYPE }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class Function { public static final String JSON_PROPERTY_ARGUMENTS = "arguments"; private JsonNullable arguments = JsonNullable.of(null); diff --git a/src/main/java/org/openapitools/client/model/GcAcceptInvitationData.java b/src/main/java/org/openapitools/client/model/GcAcceptInvitationData.java index f1f11bd0..7d0f6233 100644 --- a/src/main/java/org/openapitools/client/model/GcAcceptInvitationData.java +++ b/src/main/java/org/openapitools/client/model/GcAcceptInvitationData.java @@ -37,7 +37,7 @@ GcAcceptInvitationData.JSON_PROPERTY_ACCESS_CODE }) @JsonTypeName("gcAcceptInvitationData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcAcceptInvitationData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcBanUserData.java b/src/main/java/org/openapitools/client/model/GcBanUserData.java index 7688a8ea..ed5ae653 100644 --- a/src/main/java/org/openapitools/client/model/GcBanUserData.java +++ b/src/main/java/org/openapitools/client/model/GcBanUserData.java @@ -39,7 +39,7 @@ GcBanUserData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("gcBanUserData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcBanUserData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcBanUserResponse.java b/src/main/java/org/openapitools/client/model/GcBanUserResponse.java index 87adde40..f4124b84 100644 --- a/src/main/java/org/openapitools/client/model/GcBanUserResponse.java +++ b/src/main/java/org/openapitools/client/model/GcBanUserResponse.java @@ -47,7 +47,7 @@ GcBanUserResponse.JSON_PROPERTY_USER_ID }) @JsonTypeName("gcBanUserResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcBanUserResponse { public static final String JSON_PROPERTY_USER = "user"; private SendBirdUser user; diff --git a/src/main/java/org/openapitools/client/model/GcCheckIfMemberByIdResponse.java b/src/main/java/org/openapitools/client/model/GcCheckIfMemberByIdResponse.java index e01be319..97666d34 100644 --- a/src/main/java/org/openapitools/client/model/GcCheckIfMemberByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/GcCheckIfMemberByIdResponse.java @@ -36,7 +36,7 @@ GcCheckIfMemberByIdResponse.JSON_PROPERTY_STATE }) @JsonTypeName("gcCheckIfMemberByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcCheckIfMemberByIdResponse { public static final String JSON_PROPERTY_IS_MEMBER = "is_member"; private Boolean isMember; diff --git a/src/main/java/org/openapitools/client/model/GcCreateChannelData.java b/src/main/java/org/openapitools/client/model/GcCreateChannelData.java index 7f1f58dc..47b515f3 100644 --- a/src/main/java/org/openapitools/client/model/GcCreateChannelData.java +++ b/src/main/java/org/openapitools/client/model/GcCreateChannelData.java @@ -57,7 +57,7 @@ GcCreateChannelData.JSON_PROPERTY_BLOCK_SDK_USER_CHANNEL_JOIN }) @JsonTypeName("gcCreateChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcCreateChannelData { public static final String JSON_PROPERTY_USER_IDS = "user_ids"; private List userIds = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/GcDeclineInvitationData.java b/src/main/java/org/openapitools/client/model/GcDeclineInvitationData.java index e5e7ef01..63441939 100644 --- a/src/main/java/org/openapitools/client/model/GcDeclineInvitationData.java +++ b/src/main/java/org/openapitools/client/model/GcDeclineInvitationData.java @@ -36,7 +36,7 @@ GcDeclineInvitationData.JSON_PROPERTY_USER_ID }) @JsonTypeName("gcDeclineInvitationData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcDeclineInvitationData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcFreezeChannelData.java b/src/main/java/org/openapitools/client/model/GcFreezeChannelData.java index d93d621c..a25d0b2c 100644 --- a/src/main/java/org/openapitools/client/model/GcFreezeChannelData.java +++ b/src/main/java/org/openapitools/client/model/GcFreezeChannelData.java @@ -36,7 +36,7 @@ GcFreezeChannelData.JSON_PROPERTY_FREEZE }) @JsonTypeName("gcFreezeChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcFreezeChannelData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcHideOrArchiveChannelData.java b/src/main/java/org/openapitools/client/model/GcHideOrArchiveChannelData.java index 09580561..bdca70aa 100644 --- a/src/main/java/org/openapitools/client/model/GcHideOrArchiveChannelData.java +++ b/src/main/java/org/openapitools/client/model/GcHideOrArchiveChannelData.java @@ -39,7 +39,7 @@ GcHideOrArchiveChannelData.JSON_PROPERTY_HIDE_PREVIOUS_MESSAGES }) @JsonTypeName("gcHideOrArchiveChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcHideOrArchiveChannelData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcInviteAsMembersData.java b/src/main/java/org/openapitools/client/model/GcInviteAsMembersData.java index c08e9118..84ca105c 100644 --- a/src/main/java/org/openapitools/client/model/GcInviteAsMembersData.java +++ b/src/main/java/org/openapitools/client/model/GcInviteAsMembersData.java @@ -41,7 +41,7 @@ GcInviteAsMembersData.JSON_PROPERTY_HIDDEN_STATUS }) @JsonTypeName("gcInviteAsMembersData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcInviteAsMembersData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcJoinChannelData.java b/src/main/java/org/openapitools/client/model/GcJoinChannelData.java index c03357d6..ad173bdc 100644 --- a/src/main/java/org/openapitools/client/model/GcJoinChannelData.java +++ b/src/main/java/org/openapitools/client/model/GcJoinChannelData.java @@ -37,7 +37,7 @@ GcJoinChannelData.JSON_PROPERTY_ACCESS_CODE }) @JsonTypeName("gcJoinChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcJoinChannelData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcLeaveChannelData.java b/src/main/java/org/openapitools/client/model/GcLeaveChannelData.java index cd178750..e01f2366 100644 --- a/src/main/java/org/openapitools/client/model/GcLeaveChannelData.java +++ b/src/main/java/org/openapitools/client/model/GcLeaveChannelData.java @@ -39,7 +39,7 @@ GcLeaveChannelData.JSON_PROPERTY_SHOULD_LEAVE_ALL }) @JsonTypeName("gcLeaveChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcLeaveChannelData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcListBannedUsersResponse.java b/src/main/java/org/openapitools/client/model/GcListBannedUsersResponse.java index d99035e7..895283e3 100644 --- a/src/main/java/org/openapitools/client/model/GcListBannedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/GcListBannedUsersResponse.java @@ -41,7 +41,7 @@ GcListBannedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("gcListBannedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcListBannedUsersResponse { public static final String JSON_PROPERTY_BANNED_LIST = "banned_list"; private List bannedList = null; diff --git a/src/main/java/org/openapitools/client/model/GcListChannelsResponse.java b/src/main/java/org/openapitools/client/model/GcListChannelsResponse.java index c3d0b0e8..9352c1b1 100644 --- a/src/main/java/org/openapitools/client/model/GcListChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/GcListChannelsResponse.java @@ -41,7 +41,7 @@ GcListChannelsResponse.JSON_PROPERTY_TS }) @JsonTypeName("gcListChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcListChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/GcListMembersResponse.java b/src/main/java/org/openapitools/client/model/GcListMembersResponse.java index c6faa687..24f995ee 100644 --- a/src/main/java/org/openapitools/client/model/GcListMembersResponse.java +++ b/src/main/java/org/openapitools/client/model/GcListMembersResponse.java @@ -39,7 +39,7 @@ GcListMembersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("gcListMembersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcListMembersResponse { public static final String JSON_PROPERTY_MEMBERS = "members"; private List members = null; diff --git a/src/main/java/org/openapitools/client/model/GcListMutedUsersResponse.java b/src/main/java/org/openapitools/client/model/GcListMutedUsersResponse.java index 1b763ce9..ccbd47f6 100644 --- a/src/main/java/org/openapitools/client/model/GcListMutedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/GcListMutedUsersResponse.java @@ -41,7 +41,7 @@ GcListMutedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("gcListMutedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcListMutedUsersResponse { public static final String JSON_PROPERTY_MUTED_LIST = "muted_list"; private List mutedList = null; diff --git a/src/main/java/org/openapitools/client/model/GcListOperatorsResponse.java b/src/main/java/org/openapitools/client/model/GcListOperatorsResponse.java index a351dd9e..9d20a368 100644 --- a/src/main/java/org/openapitools/client/model/GcListOperatorsResponse.java +++ b/src/main/java/org/openapitools/client/model/GcListOperatorsResponse.java @@ -39,7 +39,7 @@ GcListOperatorsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("gcListOperatorsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcListOperatorsResponse { public static final String JSON_PROPERTY_OPERATORS = "operators"; private List operators = null; diff --git a/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredData.java b/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredData.java index e87bc235..81a0328f 100644 --- a/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredData.java +++ b/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredData.java @@ -37,7 +37,7 @@ GcMarkAllMessagesAsDeliveredData.JSON_PROPERTY_USER_ID }) @JsonTypeName("gcMarkAllMessagesAsDeliveredData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcMarkAllMessagesAsDeliveredData { public static final String JSON_PROPERTY_APPLICATION_ID = "application_id"; private String applicationId; diff --git a/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredResponse.java b/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredResponse.java index e4577362..41af8f7d 100644 --- a/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredResponse.java +++ b/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsDeliveredResponse.java @@ -36,7 +36,7 @@ GcMarkAllMessagesAsDeliveredResponse.JSON_PROPERTY_TS }) @JsonTypeName("gcMarkAllMessagesAsDeliveredResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcMarkAllMessagesAsDeliveredResponse { public static final String JSON_PROPERTY_TS = "ts"; private BigDecimal ts; diff --git a/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsReadData.java b/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsReadData.java index 01772ad9..982d9e6d 100644 --- a/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsReadData.java +++ b/src/main/java/org/openapitools/client/model/GcMarkAllMessagesAsReadData.java @@ -37,7 +37,7 @@ GcMarkAllMessagesAsReadData.JSON_PROPERTY_TIMESTAMP }) @JsonTypeName("gcMarkAllMessagesAsReadData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcMarkAllMessagesAsReadData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcMuteUserData.java b/src/main/java/org/openapitools/client/model/GcMuteUserData.java index 0d5c54e8..a7ff4cb3 100644 --- a/src/main/java/org/openapitools/client/model/GcMuteUserData.java +++ b/src/main/java/org/openapitools/client/model/GcMuteUserData.java @@ -38,7 +38,7 @@ GcMuteUserData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("gcMuteUserData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcMuteUserData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcRegisterOperatorsData.java b/src/main/java/org/openapitools/client/model/GcRegisterOperatorsData.java index b3b37667..2c232c5d 100644 --- a/src/main/java/org/openapitools/client/model/GcRegisterOperatorsData.java +++ b/src/main/java/org/openapitools/client/model/GcRegisterOperatorsData.java @@ -38,7 +38,7 @@ GcRegisterOperatorsData.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("gcRegisterOperatorsData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcRegisterOperatorsData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcRegisterOperatorsResponse.java b/src/main/java/org/openapitools/client/model/GcRegisterOperatorsResponse.java index eda4d829..23a4b609 100644 --- a/src/main/java/org/openapitools/client/model/GcRegisterOperatorsResponse.java +++ b/src/main/java/org/openapitools/client/model/GcRegisterOperatorsResponse.java @@ -37,7 +37,7 @@ GcRegisterOperatorsResponse.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("gcRegisterOperatorsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcRegisterOperatorsResponse { public static final String JSON_PROPERTY_OPERATOR_IDS = "operator_ids"; private List operatorIds = null; diff --git a/src/main/java/org/openapitools/client/model/GcResetChatHistoryData.java b/src/main/java/org/openapitools/client/model/GcResetChatHistoryData.java index e9e62c09..ae644482 100644 --- a/src/main/java/org/openapitools/client/model/GcResetChatHistoryData.java +++ b/src/main/java/org/openapitools/client/model/GcResetChatHistoryData.java @@ -37,7 +37,7 @@ GcResetChatHistoryData.JSON_PROPERTY_RESET_ALL }) @JsonTypeName("gcResetChatHistoryData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcResetChatHistoryData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcResetChatHistoryResponse.java b/src/main/java/org/openapitools/client/model/GcResetChatHistoryResponse.java index 6b44dc64..2bedb389 100644 --- a/src/main/java/org/openapitools/client/model/GcResetChatHistoryResponse.java +++ b/src/main/java/org/openapitools/client/model/GcResetChatHistoryResponse.java @@ -36,7 +36,7 @@ GcResetChatHistoryResponse.JSON_PROPERTY_TS_MESSAGE_OFFSET }) @JsonTypeName("gcResetChatHistoryResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcResetChatHistoryResponse { public static final String JSON_PROPERTY_TS_MESSAGE_OFFSET = "ts_message_offset"; private BigDecimal tsMessageOffset; diff --git a/src/main/java/org/openapitools/client/model/GcUpdateBanByIdData.java b/src/main/java/org/openapitools/client/model/GcUpdateBanByIdData.java index 10e63bf6..b36dbc92 100644 --- a/src/main/java/org/openapitools/client/model/GcUpdateBanByIdData.java +++ b/src/main/java/org/openapitools/client/model/GcUpdateBanByIdData.java @@ -38,7 +38,7 @@ GcUpdateBanByIdData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("gcUpdateBanByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcUpdateBanByIdData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcUpdateBanByIdResponse.java b/src/main/java/org/openapitools/client/model/GcUpdateBanByIdResponse.java index 1fe47ab3..cb70e188 100644 --- a/src/main/java/org/openapitools/client/model/GcUpdateBanByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/GcUpdateBanByIdResponse.java @@ -40,7 +40,7 @@ GcUpdateBanByIdResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("gcUpdateBanByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcUpdateBanByIdResponse { public static final String JSON_PROPERTY_USER = "user"; private SendBirdUser user; diff --git a/src/main/java/org/openapitools/client/model/GcUpdateChannelByUrlData.java b/src/main/java/org/openapitools/client/model/GcUpdateChannelByUrlData.java index b5de5478..c7639185 100644 --- a/src/main/java/org/openapitools/client/model/GcUpdateChannelByUrlData.java +++ b/src/main/java/org/openapitools/client/model/GcUpdateChannelByUrlData.java @@ -47,7 +47,7 @@ GcUpdateChannelByUrlData.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("gcUpdateChannelByUrlData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcUpdateChannelByUrlData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/GcViewBanByIdResponse.java b/src/main/java/org/openapitools/client/model/GcViewBanByIdResponse.java index 2e4ab155..07c4e909 100644 --- a/src/main/java/org/openapitools/client/model/GcViewBanByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/GcViewBanByIdResponse.java @@ -40,7 +40,7 @@ GcViewBanByIdResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("gcViewBanByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcViewBanByIdResponse { public static final String JSON_PROPERTY_USER = "user"; private SendBirdUser user; diff --git a/src/main/java/org/openapitools/client/model/GcViewMuteByIdResponse.java b/src/main/java/org/openapitools/client/model/GcViewMuteByIdResponse.java index 8098034b..6646dd8b 100644 --- a/src/main/java/org/openapitools/client/model/GcViewMuteByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/GcViewMuteByIdResponse.java @@ -40,7 +40,7 @@ GcViewMuteByIdResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("gcViewMuteByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcViewMuteByIdResponse { public static final String JSON_PROPERTY_IS_MUTED = "is_muted"; private Boolean isMuted; diff --git a/src/main/java/org/openapitools/client/model/GcViewNumberOfEachMembersUnreadMessagesResponse.java b/src/main/java/org/openapitools/client/model/GcViewNumberOfEachMembersUnreadMessagesResponse.java index 613229e9..4b88597f 100644 --- a/src/main/java/org/openapitools/client/model/GcViewNumberOfEachMembersUnreadMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/GcViewNumberOfEachMembersUnreadMessagesResponse.java @@ -39,7 +39,7 @@ GcViewNumberOfEachMembersUnreadMessagesResponse.JSON_PROPERTY_UNREAD }) @JsonTypeName("gcViewNumberOfEachMembersUnreadMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GcViewNumberOfEachMembersUnreadMessagesResponse { public static final String JSON_PROPERTY_UNREAD = "unread"; private Map unread = null; diff --git a/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenData.java b/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenData.java index d69e1644..3098ab39 100644 --- a/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenData.java +++ b/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenData.java @@ -35,7 +35,7 @@ GenerateSecondaryApiTokenData.JSON_PROPERTY_H_T_T_P_A_P_I_T_O_K_E_N }) @JsonTypeName("generateSecondaryApiTokenData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GenerateSecondaryApiTokenData { public static final String JSON_PROPERTY_H_T_T_P_A_P_I_T_O_K_E_N = "HTTP_API_TOKEN"; private String HTTP_API_TOKEN; diff --git a/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenResponse.java b/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenResponse.java index 79106bb0..5210f19f 100644 --- a/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/GenerateSecondaryApiTokenResponse.java @@ -37,7 +37,7 @@ GenerateSecondaryApiTokenResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("generateSecondaryApiTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GenerateSecondaryApiTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementByIdResponse.java b/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementByIdResponse.java index 0d256f23..e52b7926 100644 --- a/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementByIdResponse.java @@ -42,7 +42,7 @@ GetDetailedOpenRateOfAnnouncementByIdResponse.JSON_PROPERTY_CUMULATIVE_OPEN_RATES }) @JsonTypeName("getDetailedOpenRateOfAnnouncementByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetDetailedOpenRateOfAnnouncementByIdResponse { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementGroupResponse.java b/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementGroupResponse.java index 52dc0741..23486743 100644 --- a/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementGroupResponse.java +++ b/src/main/java/org/openapitools/client/model/GetDetailedOpenRateOfAnnouncementGroupResponse.java @@ -43,7 +43,7 @@ GetDetailedOpenRateOfAnnouncementGroupResponse.JSON_PROPERTY_CUMULATIVE_OPEN_RATES }) @JsonTypeName("getDetailedOpenRateOfAnnouncementGroupResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetDetailedOpenRateOfAnnouncementGroupResponse { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.java b/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.java index 5b110ba3..51c72ed2 100644 --- a/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.java @@ -39,7 +39,7 @@ GetDetailedOpenStatusOfAnnouncementByIdResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("getDetailedOpenStatusOfAnnouncementByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetDetailedOpenStatusOfAnnouncementByIdResponse { public static final String JSON_PROPERTY_OPEN_STATUS = "open_status"; private List openStatus = null; diff --git a/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.java b/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.java index bc693908..e5e41e50 100644 --- a/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.java +++ b/src/main/java/org/openapitools/client/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.java @@ -40,7 +40,7 @@ GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.JSON_PROPERTY_OPEN_AT }) @JsonTypeName("getDetailedOpenStatusOfAnnouncementByIdResponse_open_status_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponse.java b/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponse.java index 481086a4..26d5389d 100644 --- a/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponse.java +++ b/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponse.java @@ -40,7 +40,7 @@ GetStatisticsDailyResponse.JSON_PROPERTY_WEEK }) @JsonTypeName("getStatisticsDailyResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetStatisticsDailyResponse { public static final String JSON_PROPERTY_STATISTICS = "statistics"; private List statistics = null; diff --git a/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponseStatisticsInner.java b/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponseStatisticsInner.java index d644c65c..4611505e 100644 --- a/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponseStatisticsInner.java +++ b/src/main/java/org/openapitools/client/model/GetStatisticsDailyResponseStatisticsInner.java @@ -46,7 +46,7 @@ GetStatisticsDailyResponseStatisticsInner.JSON_PROPERTY_OPEN_COUNT }) @JsonTypeName("getStatisticsDailyResponse_statistics_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetStatisticsDailyResponseStatisticsInner { public static final String JSON_PROPERTY_DATE_RANGE = "date_range"; private String dateRange; diff --git a/src/main/java/org/openapitools/client/model/GetStatisticsMonthlyResponse.java b/src/main/java/org/openapitools/client/model/GetStatisticsMonthlyResponse.java index 0ff0a5d8..9c4c4d34 100644 --- a/src/main/java/org/openapitools/client/model/GetStatisticsMonthlyResponse.java +++ b/src/main/java/org/openapitools/client/model/GetStatisticsMonthlyResponse.java @@ -40,7 +40,7 @@ GetStatisticsMonthlyResponse.JSON_PROPERTY_WEEK }) @JsonTypeName("getStatisticsMonthlyResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetStatisticsMonthlyResponse { public static final String JSON_PROPERTY_STATISTICS = "statistics"; private List statistics = null; diff --git a/src/main/java/org/openapitools/client/model/GetStatisticsResponse.java b/src/main/java/org/openapitools/client/model/GetStatisticsResponse.java index afcb1732..3d0fbfdb 100644 --- a/src/main/java/org/openapitools/client/model/GetStatisticsResponse.java +++ b/src/main/java/org/openapitools/client/model/GetStatisticsResponse.java @@ -40,7 +40,7 @@ GetStatisticsResponse.JSON_PROPERTY_WEEK }) @JsonTypeName("getStatisticsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GetStatisticsResponse { public static final String JSON_PROPERTY_STATISTICS = "statistics"; private List statistics = null; diff --git a/src/main/java/org/openapitools/client/model/JoinChannelsData.java b/src/main/java/org/openapitools/client/model/JoinChannelsData.java index 604f2595..acffdc68 100644 --- a/src/main/java/org/openapitools/client/model/JoinChannelsData.java +++ b/src/main/java/org/openapitools/client/model/JoinChannelsData.java @@ -38,7 +38,7 @@ JoinChannelsData.JSON_PROPERTY_CHANNEL_URLS }) @JsonTypeName("joinChannelsData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class JoinChannelsData { public static final String JSON_PROPERTY_BOT_USERID = "bot_userid"; private String botUserid; diff --git a/src/main/java/org/openapitools/client/model/JoinChannelsResponse.java b/src/main/java/org/openapitools/client/model/JoinChannelsResponse.java index 842e96f0..529f1e1f 100644 --- a/src/main/java/org/openapitools/client/model/JoinChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/JoinChannelsResponse.java @@ -38,7 +38,7 @@ JoinChannelsResponse.JSON_PROPERTY_CHANNELS }) @JsonTypeName("joinChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class JoinChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsData.java b/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsData.java index 99eb5cdd..ba2909a9 100644 --- a/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsData.java +++ b/src/main/java/org/openapitools/client/model/LeaveMyGroupChannelsData.java @@ -35,7 +35,7 @@ LeaveMyGroupChannelsData.JSON_PROPERTY_CUSTOM_TYPE }) @JsonTypeName("leaveMyGroupChannelsData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class LeaveMyGroupChannelsData { public static final String JSON_PROPERTY_CUSTOM_TYPE = "custom_type"; private String customType; diff --git a/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponse.java b/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponse.java index b02c1f44..08c79663 100644 --- a/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponse.java +++ b/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponse.java @@ -39,7 +39,7 @@ ListAllEmojisAndEmojiCategoriesResponse.JSON_PROPERTY_EMOJI_CATEGORIES }) @JsonTypeName("listAllEmojisAndEmojiCategoriesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListAllEmojisAndEmojiCategoriesResponse { public static final String JSON_PROPERTY_EMOJI_HASH = "emoji_hash"; private String emojiHash; diff --git a/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.java b/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.java index 37f66f4d..12941d8a 100644 --- a/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.java +++ b/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.java @@ -42,7 +42,7 @@ ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.JSON_PROPERTY_EMOJIS }) @JsonTypeName("listAllEmojisAndEmojiCategoriesResponse_emoji_categories_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner { public static final String JSON_PROPERTY_ID = "id"; private BigDecimal id; diff --git a/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.java b/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.java index a82d8285..3d36e922 100644 --- a/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.java +++ b/src/main/java/org/openapitools/client/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.java @@ -38,7 +38,7 @@ ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.JSON_PROPERTY_URL }) @JsonTypeName("listAllEmojisAndEmojiCategoriesResponse_emoji_categories_inner_emojis_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner { public static final String JSON_PROPERTY_ID = "id"; private BigDecimal id; diff --git a/src/main/java/org/openapitools/client/model/ListAnnouncementGroupsResponse.java b/src/main/java/org/openapitools/client/model/ListAnnouncementGroupsResponse.java index cb22fe78..02801254 100644 --- a/src/main/java/org/openapitools/client/model/ListAnnouncementGroupsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListAnnouncementGroupsResponse.java @@ -38,7 +38,7 @@ ListAnnouncementGroupsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listAnnouncementGroupsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListAnnouncementGroupsResponse { public static final String JSON_PROPERTY_ANNOUNCEMENT_GROUPS = "announcement_groups"; private List announcementGroups = null; diff --git a/src/main/java/org/openapitools/client/model/ListAnnouncementsResponse.java b/src/main/java/org/openapitools/client/model/ListAnnouncementsResponse.java index 67b7e607..c256d15e 100644 --- a/src/main/java/org/openapitools/client/model/ListAnnouncementsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListAnnouncementsResponse.java @@ -39,7 +39,7 @@ ListAnnouncementsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listAnnouncementsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListAnnouncementsResponse { public static final String JSON_PROPERTY_ANNOUNCEMENTS = "announcements"; private List announcements = null; diff --git a/src/main/java/org/openapitools/client/model/ListAnnouncementsResponseAnnouncementsInner.java b/src/main/java/org/openapitools/client/model/ListAnnouncementsResponseAnnouncementsInner.java index e46ad00f..fa21ee7d 100644 --- a/src/main/java/org/openapitools/client/model/ListAnnouncementsResponseAnnouncementsInner.java +++ b/src/main/java/org/openapitools/client/model/ListAnnouncementsResponseAnnouncementsInner.java @@ -59,7 +59,7 @@ ListAnnouncementsResponseAnnouncementsInner.JSON_PROPERTY_TARGET_CUSTOM_TYPE }) @JsonTypeName("listAnnouncementsResponse_announcements_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListAnnouncementsResponseAnnouncementsInner { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/ListBannedChannelsResponse.java b/src/main/java/org/openapitools/client/model/ListBannedChannelsResponse.java index a34917d3..f714c723 100644 --- a/src/main/java/org/openapitools/client/model/ListBannedChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListBannedChannelsResponse.java @@ -39,7 +39,7 @@ ListBannedChannelsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listBannedChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListBannedChannelsResponse { public static final String JSON_PROPERTY_BANNED_CHANNELS = "banned_channels"; private List bannedChannels = null; diff --git a/src/main/java/org/openapitools/client/model/ListBannedChannelsResponseBannedChannelsInner.java b/src/main/java/org/openapitools/client/model/ListBannedChannelsResponseBannedChannelsInner.java index 128b31e5..537759ee 100644 --- a/src/main/java/org/openapitools/client/model/ListBannedChannelsResponseBannedChannelsInner.java +++ b/src/main/java/org/openapitools/client/model/ListBannedChannelsResponseBannedChannelsInner.java @@ -40,7 +40,7 @@ ListBannedChannelsResponseBannedChannelsInner.JSON_PROPERTY_END_AT }) @JsonTypeName("listBannedChannelsResponse_banned_channels_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListBannedChannelsResponseBannedChannelsInner { public static final String JSON_PROPERTY_START_AT = "start_at"; private BigDecimal startAt; diff --git a/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java b/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java index 90cd7adb..b74a374c 100644 --- a/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ListBlockedUsersResponse.java @@ -39,7 +39,7 @@ ListBlockedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listBlockedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListBlockedUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; private List users = null; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponse.java b/src/main/java/org/openapitools/client/model/ListBotsResponse.java index 48987473..88e4a964 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponse.java @@ -39,7 +39,7 @@ ListBotsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listBotsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListBotsResponse { public static final String JSON_PROPERTY_BOTS = "bots"; private List bots = null; diff --git a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java index 8124e22e..488609c1 100644 --- a/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java +++ b/src/main/java/org/openapitools/client/model/ListBotsResponseBotsInner.java @@ -42,7 +42,7 @@ ListBotsResponseBotsInner.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE }) @JsonTypeName("listBotsResponse_bots_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListBotsResponseBotsInner { public static final String JSON_PROPERTY_BOT = "bot"; private CreateBotResponseBot bot; diff --git a/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponse.java b/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponse.java index d9a1f561..f14fa02b 100644 --- a/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponse.java +++ b/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponse.java @@ -39,7 +39,7 @@ ListDataExportsByMessageChannelOrUserResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listDataExportsByMessageChannelOrUserResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListDataExportsByMessageChannelOrUserResponse { public static final String JSON_PROPERTY_EXPORTED_DATA = "exported_data"; private List exportedData = null; diff --git a/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.java b/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.java index 1f206609..71298dc4 100644 --- a/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.java +++ b/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.java @@ -50,7 +50,7 @@ ListDataExportsByMessageChannelOrUserResponseExportedDataInner.JSON_PROPERTY_USER_IDS }) @JsonTypeName("listDataExportsByMessageChannelOrUserResponse_exported_data_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListDataExportsByMessageChannelOrUserResponseExportedDataInner { public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; private String requestId; diff --git a/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.java b/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.java index 6714499c..06713be4 100644 --- a/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.java +++ b/src/main/java/org/openapitools/client/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.java @@ -37,7 +37,7 @@ ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("listDataExportsByMessageChannelOrUserResponse_exported_data_inner_file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile { public static final String JSON_PROPERTY_URL = "url"; private String url; diff --git a/src/main/java/org/openapitools/client/model/ListEmojisResponse.java b/src/main/java/org/openapitools/client/model/ListEmojisResponse.java index f01f87db..79cf8ddd 100644 --- a/src/main/java/org/openapitools/client/model/ListEmojisResponse.java +++ b/src/main/java/org/openapitools/client/model/ListEmojisResponse.java @@ -38,7 +38,7 @@ ListEmojisResponse.JSON_PROPERTY_EMOJIS }) @JsonTypeName("listEmojisResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListEmojisResponse { public static final String JSON_PROPERTY_EMOJIS = "emojis"; private List emojis = null; diff --git a/src/main/java/org/openapitools/client/model/ListGdprRequestsResponse.java b/src/main/java/org/openapitools/client/model/ListGdprRequestsResponse.java index 66515e39..a97c7b4a 100644 --- a/src/main/java/org/openapitools/client/model/ListGdprRequestsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListGdprRequestsResponse.java @@ -39,7 +39,7 @@ ListGdprRequestsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listGdprRequestsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListGdprRequestsResponse { public static final String JSON_PROPERTY_REQUESTS = "requests"; private List requests = null; diff --git a/src/main/java/org/openapitools/client/model/ListGdprRequestsResponseRequestsInner.java b/src/main/java/org/openapitools/client/model/ListGdprRequestsResponseRequestsInner.java index 0da6e7bf..5ff12947 100644 --- a/src/main/java/org/openapitools/client/model/ListGdprRequestsResponseRequestsInner.java +++ b/src/main/java/org/openapitools/client/model/ListGdprRequestsResponseRequestsInner.java @@ -46,7 +46,7 @@ ListGdprRequestsResponseRequestsInner.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("listGdprRequestsResponse_requests_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListGdprRequestsResponseRequestsInner { public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; private String requestId; diff --git a/src/main/java/org/openapitools/client/model/ListMessagesResponse.java b/src/main/java/org/openapitools/client/model/ListMessagesResponse.java index 6e56bf25..cadf3632 100644 --- a/src/main/java/org/openapitools/client/model/ListMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/ListMessagesResponse.java @@ -38,7 +38,7 @@ ListMessagesResponse.JSON_PROPERTY_MESSAGES }) @JsonTypeName("listMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMessagesResponse { public static final String JSON_PROPERTY_MESSAGES = "messages"; private List messages = null; diff --git a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInner.java b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInner.java index 1f47892f..1f6048c2 100644 --- a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInner.java +++ b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInner.java @@ -63,7 +63,7 @@ ListMessagesResponseMessagesInner.JSON_PROPERTY_OG_TAG }) @JsonTypeName("listMessagesResponse_messages_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMessagesResponseMessagesInner { public static final String JSON_PROPERTY_MESSAGE_SURVIVAL_SECONDS = "message_survival_seconds"; private BigDecimal messageSurvivalSeconds; diff --git a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTag.java b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTag.java index 457a3cbc..241a4fb3 100644 --- a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTag.java +++ b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTag.java @@ -39,7 +39,7 @@ ListMessagesResponseMessagesInnerOgTag.JSON_PROPERTY_OG_COLON_IMAGE }) @JsonTypeName("listMessagesResponse_messages_inner_og_tag") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMessagesResponseMessagesInnerOgTag { public static final String JSON_PROPERTY_OG_COLON_URL = "og:url"; private String ogColonUrl; diff --git a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTagOgImage.java b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTagOgImage.java index 37acd3bd..9b15c152 100644 --- a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTagOgImage.java +++ b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerOgTagOgImage.java @@ -39,7 +39,7 @@ ListMessagesResponseMessagesInnerOgTagOgImage.JSON_PROPERTY_HEIGHT }) @JsonTypeName("listMessagesResponse_messages_inner_og_tag_og_image") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMessagesResponseMessagesInnerOgTagOgImage { public static final String JSON_PROPERTY_URL = "url"; private String url; diff --git a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.java b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.java index 96a22831..ba063328 100644 --- a/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.java +++ b/src/main/java/org/openapitools/client/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.java @@ -38,7 +38,7 @@ ListMessagesResponseMessagesInnerSortedMetaarrayInner.JSON_PROPERTY_VALUE }) @JsonTypeName("listMessagesResponse_messages_inner_sorted_metaarray_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMessagesResponseMessagesInnerSortedMetaarrayInner { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/ListMutedChannelsResponse.java b/src/main/java/org/openapitools/client/model/ListMutedChannelsResponse.java index 70ce7b9c..45ffdf3b 100644 --- a/src/main/java/org/openapitools/client/model/ListMutedChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListMutedChannelsResponse.java @@ -39,7 +39,7 @@ ListMutedChannelsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listMutedChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMutedChannelsResponse { public static final String JSON_PROPERTY_MUTED_CHANNELS = "muted_channels"; private List mutedChannels = null; diff --git a/src/main/java/org/openapitools/client/model/ListMutedUsersInChannelsWithCustomChannelType200Response.java b/src/main/java/org/openapitools/client/model/ListMutedUsersInChannelsWithCustomChannelType200Response.java index 187a243b..5e8d72a0 100644 --- a/src/main/java/org/openapitools/client/model/ListMutedUsersInChannelsWithCustomChannelType200Response.java +++ b/src/main/java/org/openapitools/client/model/ListMutedUsersInChannelsWithCustomChannelType200Response.java @@ -39,7 +39,7 @@ ListMutedUsersInChannelsWithCustomChannelType200Response.JSON_PROPERTY_NEXT }) @JsonTypeName("listMutedUsersInChannelsWithCustomChannelType_200_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMutedUsersInChannelsWithCustomChannelType200Response { public static final String JSON_PROPERTY_MUTED_LIST = "muted_list"; private List mutedList = null; diff --git a/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java b/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java index 1bb7588d..aa1fea03 100644 --- a/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListMyGroupChannelsResponse.java @@ -41,7 +41,7 @@ ListMyGroupChannelsResponse.JSON_PROPERTY_TS }) @JsonTypeName("listMyGroupChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListMyGroupChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponse.java b/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponse.java index b8d64fc0..056dcb9c 100644 --- a/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponse.java @@ -38,7 +38,7 @@ ListPushConfigurationsResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("listPushConfigurationsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListPushConfigurationsResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponsePushConfigurationsInner.java b/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponsePushConfigurationsInner.java index f13e1cf9..591f342a 100644 --- a/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponsePushConfigurationsInner.java +++ b/src/main/java/org/openapitools/client/model/ListPushConfigurationsResponsePushConfigurationsInner.java @@ -41,7 +41,7 @@ ListPushConfigurationsResponsePushConfigurationsInner.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("listPushConfigurationsResponse_push_configurations_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListPushConfigurationsResponsePushConfigurationsInner { public static final String JSON_PROPERTY_ID = "id"; private String id; diff --git a/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponse.java b/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponse.java index 46b3118a..76755076 100644 --- a/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponse.java +++ b/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponse.java @@ -38,7 +38,7 @@ ListPushNotificationContentTemplatesResponse.JSON_PROPERTY_PUSH_MESSAGE_TEMPLATES }) @JsonTypeName("listPushNotificationContentTemplatesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListPushNotificationContentTemplatesResponse { public static final String JSON_PROPERTY_PUSH_MESSAGE_TEMPLATES = "push_message_templates"; private List pushMessageTemplates = null; diff --git a/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.java b/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.java index de939059..7996975a 100644 --- a/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.java +++ b/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.java @@ -37,7 +37,7 @@ ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.JSON_PROPERTY_TEMPLATE }) @JsonTypeName("listPushNotificationContentTemplatesResponse_push_message_templates_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner { public static final String JSON_PROPERTY_TEMPLATE_NAME = "template_name"; private String templateName; diff --git a/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.java b/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.java index 9b1f7ae5..c34033e7 100644 --- a/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.java +++ b/src/main/java/org/openapitools/client/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.java @@ -37,7 +37,7 @@ ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.JSON_PROPERTY_A_D_M_M }) @JsonTypeName("listPushNotificationContentTemplatesResponse_push_message_templates_inner_template") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate { public static final String JSON_PROPERTY_M_E_S_G = "MESG"; private String MESG; diff --git a/src/main/java/org/openapitools/client/model/ListReactionsOfMessageResponse.java b/src/main/java/org/openapitools/client/model/ListReactionsOfMessageResponse.java index 06fad97e..fbd80cfd 100644 --- a/src/main/java/org/openapitools/client/model/ListReactionsOfMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/ListReactionsOfMessageResponse.java @@ -37,7 +37,7 @@ ListReactionsOfMessageResponse.JSON_PROPERTY_KEY }) @JsonTypeName("listReactionsOfMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReactionsOfMessageResponse { public static final String JSON_PROPERTY_KEY = "key"; private List key = null; diff --git a/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java b/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java index f54a1117..94fc5823 100644 --- a/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java +++ b/src/main/java/org/openapitools/client/model/ListRegistrationOrDeviceTokensResponse.java @@ -41,7 +41,7 @@ ListRegistrationOrDeviceTokensResponse.JSON_PROPERTY_USER }) @JsonTypeName("listRegistrationOrDeviceTokensResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListRegistrationOrDeviceTokensResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private List token = null; diff --git a/src/main/java/org/openapitools/client/model/ListReportsOnChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/ListReportsOnChannelByUrlResponse.java index 103d9ac5..4e2afb52 100644 --- a/src/main/java/org/openapitools/client/model/ListReportsOnChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/ListReportsOnChannelByUrlResponse.java @@ -39,7 +39,7 @@ ListReportsOnChannelByUrlResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listReportsOnChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReportsOnChannelByUrlResponse { public static final String JSON_PROPERTY_REPORT_LOGS = "report_logs"; private List reportLogs = null; diff --git a/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponse.java b/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponse.java index 85622c7d..0072d406 100644 --- a/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponse.java @@ -39,7 +39,7 @@ ListReportsOnMessageByIdResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listReportsOnMessageByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReportsOnMessageByIdResponse { public static final String JSON_PROPERTY_REPORT_LOGS = "report_logs"; private List reportLogs = null; diff --git a/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponseReportLogsInner.java b/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponseReportLogsInner.java index 58ed39e2..cf416a05 100644 --- a/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponseReportLogsInner.java +++ b/src/main/java/org/openapitools/client/model/ListReportsOnMessageByIdResponseReportLogsInner.java @@ -50,7 +50,7 @@ ListReportsOnMessageByIdResponseReportLogsInner.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("listReportsOnMessageByIdResponse_report_logs_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReportsOnMessageByIdResponseReportLogsInner { public static final String JSON_PROPERTY_REPORT_TYPE = "report_type"; private String reportType; diff --git a/src/main/java/org/openapitools/client/model/ListReportsOnUserByIdResponse.java b/src/main/java/org/openapitools/client/model/ListReportsOnUserByIdResponse.java index 4049bda1..1311688e 100644 --- a/src/main/java/org/openapitools/client/model/ListReportsOnUserByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ListReportsOnUserByIdResponse.java @@ -39,7 +39,7 @@ ListReportsOnUserByIdResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listReportsOnUserByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReportsOnUserByIdResponse { public static final String JSON_PROPERTY_REPORT_LOGS = "report_logs"; private List reportLogs = null; diff --git a/src/main/java/org/openapitools/client/model/ListReportsResponse.java b/src/main/java/org/openapitools/client/model/ListReportsResponse.java index 1271c075..cfa0fb8e 100644 --- a/src/main/java/org/openapitools/client/model/ListReportsResponse.java +++ b/src/main/java/org/openapitools/client/model/ListReportsResponse.java @@ -39,7 +39,7 @@ ListReportsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listReportsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReportsResponse { public static final String JSON_PROPERTY_REPORT_LOGS = "report_logs"; private List reportLogs = null; diff --git a/src/main/java/org/openapitools/client/model/ListReportsResponseReportLogsInner.java b/src/main/java/org/openapitools/client/model/ListReportsResponseReportLogsInner.java index 850b071c..634e73fb 100644 --- a/src/main/java/org/openapitools/client/model/ListReportsResponseReportLogsInner.java +++ b/src/main/java/org/openapitools/client/model/ListReportsResponseReportLogsInner.java @@ -50,7 +50,7 @@ ListReportsResponseReportLogsInner.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("listReportsResponse_report_logs_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListReportsResponseReportLogsInner { public static final String JSON_PROPERTY_REPORTING_USER = "reporting_user"; private SendBirdUser reportingUser; diff --git a/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponse.java b/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponse.java index 5d7c1ed9..8a6dca22 100644 --- a/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponse.java +++ b/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponse.java @@ -38,7 +38,7 @@ ListSecondaryApiTokensResponse.JSON_PROPERTY_API_TOKENS }) @JsonTypeName("listSecondaryApiTokensResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListSecondaryApiTokensResponse { public static final String JSON_PROPERTY_API_TOKENS = "api_tokens"; private List apiTokens = null; diff --git a/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponseApiTokensInner.java b/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponseApiTokensInner.java index 3f5dffa6..f75e40d2 100644 --- a/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponseApiTokensInner.java +++ b/src/main/java/org/openapitools/client/model/ListSecondaryApiTokensResponseApiTokensInner.java @@ -37,7 +37,7 @@ ListSecondaryApiTokensResponseApiTokensInner.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("listSecondaryApiTokensResponse_api_tokens_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListSecondaryApiTokensResponseApiTokensInner { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/ListUsersResponse.java b/src/main/java/org/openapitools/client/model/ListUsersResponse.java index 95d55730..56eb8dc8 100644 --- a/src/main/java/org/openapitools/client/model/ListUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ListUsersResponse.java @@ -39,7 +39,7 @@ ListUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("listUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ListUsersResponse { public static final String JSON_PROPERTY_USERS = "users"; private List users = null; diff --git a/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadData.java b/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadData.java index 12d0f399..ba32229b 100644 --- a/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadData.java +++ b/src/main/java/org/openapitools/client/model/MarkAllMessagesAsReadData.java @@ -37,7 +37,7 @@ MarkAllMessagesAsReadData.JSON_PROPERTY_CHANNEL_URLS }) @JsonTypeName("markAllMessagesAsReadData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class MarkAllMessagesAsReadData { public static final String JSON_PROPERTY_CHANNEL_URLS = "channel_urls"; private List channelUrls = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/ModelFile.java b/src/main/java/org/openapitools/client/model/ModelFile.java index 33495a9c..ac2d4faa 100644 --- a/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/src/main/java/org/openapitools/client/model/ModelFile.java @@ -40,7 +40,7 @@ ModelFile.JSON_PROPERTY_WEBKIT_RELATIVE_PATH }) @JsonTypeName("File") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ModelFile { public static final String JSON_PROPERTY_LAST_MODIFIED = "last_modified"; private BigDecimal lastModified; diff --git a/src/main/java/org/openapitools/client/model/MuteInChannelsWithCustomChannelTypesData.java b/src/main/java/org/openapitools/client/model/MuteInChannelsWithCustomChannelTypesData.java index 467560a4..9f04691c 100644 --- a/src/main/java/org/openapitools/client/model/MuteInChannelsWithCustomChannelTypesData.java +++ b/src/main/java/org/openapitools/client/model/MuteInChannelsWithCustomChannelTypesData.java @@ -37,7 +37,7 @@ MuteInChannelsWithCustomChannelTypesData.JSON_PROPERTY_CHANNEL_CUSTOM_TYPES }) @JsonTypeName("muteInChannelsWithCustomChannelTypesData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class MuteInChannelsWithCustomChannelTypesData { public static final String JSON_PROPERTY_CHANNEL_CUSTOM_TYPES = "channel_custom_types"; private List channelCustomTypes = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/MuteUsersInChannelsWithCustomChannelTypeData.java b/src/main/java/org/openapitools/client/model/MuteUsersInChannelsWithCustomChannelTypeData.java index 1f858217..dd2ab74e 100644 --- a/src/main/java/org/openapitools/client/model/MuteUsersInChannelsWithCustomChannelTypeData.java +++ b/src/main/java/org/openapitools/client/model/MuteUsersInChannelsWithCustomChannelTypeData.java @@ -41,7 +41,7 @@ MuteUsersInChannelsWithCustomChannelTypeData.JSON_PROPERTY_ON_DEMAND_UPSERT }) @JsonTypeName("muteUsersInChannelsWithCustomChannelTypeData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class MuteUsersInChannelsWithCustomChannelTypeData { public static final String JSON_PROPERTY_USER_IDS = "user_ids"; private List userIds = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/OcBanUserData.java b/src/main/java/org/openapitools/client/model/OcBanUserData.java index bf774179..80582554 100644 --- a/src/main/java/org/openapitools/client/model/OcBanUserData.java +++ b/src/main/java/org/openapitools/client/model/OcBanUserData.java @@ -39,7 +39,7 @@ OcBanUserData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("ocBanUserData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcBanUserData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/OcBanUserResponse.java b/src/main/java/org/openapitools/client/model/OcBanUserResponse.java index c2e641ce..cb8a7589 100644 --- a/src/main/java/org/openapitools/client/model/OcBanUserResponse.java +++ b/src/main/java/org/openapitools/client/model/OcBanUserResponse.java @@ -47,7 +47,7 @@ OcBanUserResponse.JSON_PROPERTY_METADATA }) @JsonTypeName("ocBanUserResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcBanUserResponse { public static final String JSON_PROPERTY_START_AT = "start_at"; private BigDecimal startAt; diff --git a/src/main/java/org/openapitools/client/model/OcCreateChannelData.java b/src/main/java/org/openapitools/client/model/OcCreateChannelData.java index cc577337..54f1a68d 100644 --- a/src/main/java/org/openapitools/client/model/OcCreateChannelData.java +++ b/src/main/java/org/openapitools/client/model/OcCreateChannelData.java @@ -47,7 +47,7 @@ OcCreateChannelData.JSON_PROPERTY_OPERATORS }) @JsonTypeName("ocCreateChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcCreateChannelData { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/OcDeleteChannelByUrl200Response.java b/src/main/java/org/openapitools/client/model/OcDeleteChannelByUrl200Response.java index 97219530..45885988 100644 --- a/src/main/java/org/openapitools/client/model/OcDeleteChannelByUrl200Response.java +++ b/src/main/java/org/openapitools/client/model/OcDeleteChannelByUrl200Response.java @@ -35,7 +35,7 @@ OcDeleteChannelByUrl200Response.JSON_PROPERTY_ANY_OF }) @JsonTypeName("ocDeleteChannelByUrl_200_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcDeleteChannelByUrl200Response { public static final String JSON_PROPERTY_ANY_OF = "anyOf"; private String anyOf; diff --git a/src/main/java/org/openapitools/client/model/OcFreezeChannelData.java b/src/main/java/org/openapitools/client/model/OcFreezeChannelData.java index 0cc45cfc..f54a72c5 100644 --- a/src/main/java/org/openapitools/client/model/OcFreezeChannelData.java +++ b/src/main/java/org/openapitools/client/model/OcFreezeChannelData.java @@ -36,7 +36,7 @@ OcFreezeChannelData.JSON_PROPERTY_FREEZE }) @JsonTypeName("ocFreezeChannelData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcFreezeChannelData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/OcListBannedUsersResponse.java b/src/main/java/org/openapitools/client/model/OcListBannedUsersResponse.java index fec238d9..f8f9fb55 100644 --- a/src/main/java/org/openapitools/client/model/OcListBannedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/OcListBannedUsersResponse.java @@ -41,7 +41,7 @@ OcListBannedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("ocListBannedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcListBannedUsersResponse { public static final String JSON_PROPERTY_BANNED_LIST = "banned_list"; private List bannedList = null; diff --git a/src/main/java/org/openapitools/client/model/OcListBannedUsersResponseBannedListInner.java b/src/main/java/org/openapitools/client/model/OcListBannedUsersResponseBannedListInner.java index ed7c119d..dcf63f82 100644 --- a/src/main/java/org/openapitools/client/model/OcListBannedUsersResponseBannedListInner.java +++ b/src/main/java/org/openapitools/client/model/OcListBannedUsersResponseBannedListInner.java @@ -40,7 +40,7 @@ OcListBannedUsersResponseBannedListInner.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("ocListBannedUsersResponse_banned_list_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcListBannedUsersResponseBannedListInner { public static final String JSON_PROPERTY_USER = "user"; private SendBirdUser user; diff --git a/src/main/java/org/openapitools/client/model/OcListChannelsResponse.java b/src/main/java/org/openapitools/client/model/OcListChannelsResponse.java index f4898703..b097a32e 100644 --- a/src/main/java/org/openapitools/client/model/OcListChannelsResponse.java +++ b/src/main/java/org/openapitools/client/model/OcListChannelsResponse.java @@ -41,7 +41,7 @@ OcListChannelsResponse.JSON_PROPERTY_TS }) @JsonTypeName("ocListChannelsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcListChannelsResponse { public static final String JSON_PROPERTY_CHANNELS = "channels"; private List channels = null; diff --git a/src/main/java/org/openapitools/client/model/OcListMutedUsersResponse.java b/src/main/java/org/openapitools/client/model/OcListMutedUsersResponse.java index e69201e8..7ad5614d 100644 --- a/src/main/java/org/openapitools/client/model/OcListMutedUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/OcListMutedUsersResponse.java @@ -41,7 +41,7 @@ OcListMutedUsersResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("ocListMutedUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcListMutedUsersResponse { public static final String JSON_PROPERTY_MUTED_LIST = "muted_list"; private List mutedList = null; diff --git a/src/main/java/org/openapitools/client/model/OcListOperatorsResponse.java b/src/main/java/org/openapitools/client/model/OcListOperatorsResponse.java index 23e6e9aa..26bc9bcf 100644 --- a/src/main/java/org/openapitools/client/model/OcListOperatorsResponse.java +++ b/src/main/java/org/openapitools/client/model/OcListOperatorsResponse.java @@ -39,7 +39,7 @@ OcListOperatorsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("ocListOperatorsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcListOperatorsResponse { public static final String JSON_PROPERTY_OPERATORS = "operators"; private List operators = null; diff --git a/src/main/java/org/openapitools/client/model/OcListParticipantsResponse.java b/src/main/java/org/openapitools/client/model/OcListParticipantsResponse.java index ca35ace3..fbe242a1 100644 --- a/src/main/java/org/openapitools/client/model/OcListParticipantsResponse.java +++ b/src/main/java/org/openapitools/client/model/OcListParticipantsResponse.java @@ -39,7 +39,7 @@ OcListParticipantsResponse.JSON_PROPERTY_NEXT }) @JsonTypeName("ocListParticipantsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcListParticipantsResponse { public static final String JSON_PROPERTY_PARTICIPANTS = "participants"; private List participants = null; diff --git a/src/main/java/org/openapitools/client/model/OcMuteUserData.java b/src/main/java/org/openapitools/client/model/OcMuteUserData.java index 51945543..6fc422c4 100644 --- a/src/main/java/org/openapitools/client/model/OcMuteUserData.java +++ b/src/main/java/org/openapitools/client/model/OcMuteUserData.java @@ -37,7 +37,7 @@ OcMuteUserData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("ocMuteUserData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcMuteUserData { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/OcRegisterOperatorsData.java b/src/main/java/org/openapitools/client/model/OcRegisterOperatorsData.java index cd8f34ae..a8b16cc5 100644 --- a/src/main/java/org/openapitools/client/model/OcRegisterOperatorsData.java +++ b/src/main/java/org/openapitools/client/model/OcRegisterOperatorsData.java @@ -38,7 +38,7 @@ OcRegisterOperatorsData.JSON_PROPERTY_OPERATOR_IDS }) @JsonTypeName("ocRegisterOperatorsData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcRegisterOperatorsData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/OcUpdateBanByIdData.java b/src/main/java/org/openapitools/client/model/OcUpdateBanByIdData.java index 20e66f71..0d030b37 100644 --- a/src/main/java/org/openapitools/client/model/OcUpdateBanByIdData.java +++ b/src/main/java/org/openapitools/client/model/OcUpdateBanByIdData.java @@ -38,7 +38,7 @@ OcUpdateBanByIdData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("ocUpdateBanByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcUpdateBanByIdData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/OcUpdateBanByIdResponse.java b/src/main/java/org/openapitools/client/model/OcUpdateBanByIdResponse.java index d83c3e04..b8b5a93c 100644 --- a/src/main/java/org/openapitools/client/model/OcUpdateBanByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/OcUpdateBanByIdResponse.java @@ -40,7 +40,7 @@ OcUpdateBanByIdResponse.JSON_PROPERTY_START_AT }) @JsonTypeName("ocUpdateBanByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcUpdateBanByIdResponse { public static final String JSON_PROPERTY_USER = "user"; private SendBirdUser user; diff --git a/src/main/java/org/openapitools/client/model/OcUpdateChannelByUrlData.java b/src/main/java/org/openapitools/client/model/OcUpdateChannelByUrlData.java index a5d9527f..16ab5297 100644 --- a/src/main/java/org/openapitools/client/model/OcUpdateChannelByUrlData.java +++ b/src/main/java/org/openapitools/client/model/OcUpdateChannelByUrlData.java @@ -45,7 +45,7 @@ OcUpdateChannelByUrlData.JSON_PROPERTY_OPERATORS }) @JsonTypeName("ocUpdateChannelByUrlData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcUpdateChannelByUrlData { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/OcViewBanByIdResponse.java b/src/main/java/org/openapitools/client/model/OcViewBanByIdResponse.java index 7cd3306f..0145ccb9 100644 --- a/src/main/java/org/openapitools/client/model/OcViewBanByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/OcViewBanByIdResponse.java @@ -40,7 +40,7 @@ OcViewBanByIdResponse.JSON_PROPERTY_START_AT }) @JsonTypeName("ocViewBanByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcViewBanByIdResponse { public static final String JSON_PROPERTY_USER = "user"; private SendBirdUser user; diff --git a/src/main/java/org/openapitools/client/model/OcViewMuteByIdResponse.java b/src/main/java/org/openapitools/client/model/OcViewMuteByIdResponse.java index abc4fe4d..c1f83855 100644 --- a/src/main/java/org/openapitools/client/model/OcViewMuteByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/OcViewMuteByIdResponse.java @@ -40,7 +40,7 @@ OcViewMuteByIdResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("ocViewMuteByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OcViewMuteByIdResponse { public static final String JSON_PROPERTY_IS_MUTED = "is_muted"; private Boolean isMuted; diff --git a/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportData.java b/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportData.java index cdb466b9..4030d9f4 100644 --- a/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportData.java +++ b/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportData.java @@ -49,7 +49,7 @@ RegisterAndScheduleDataExportData.JSON_PROPERTY_NEIGHBORING_MESSAGE_LIMIT }) @JsonTypeName("registerAndScheduleDataExportData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RegisterAndScheduleDataExportData { public static final String JSON_PROPERTY_START_TS = "start_ts"; private Integer startTs; diff --git a/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportResponse.java b/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportResponse.java index e8fed392..cdbf4c99 100644 --- a/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportResponse.java +++ b/src/main/java/org/openapitools/client/model/RegisterAndScheduleDataExportResponse.java @@ -52,7 +52,7 @@ RegisterAndScheduleDataExportResponse.JSON_PROPERTY_USER_IDS }) @JsonTypeName("registerAndScheduleDataExportResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RegisterAndScheduleDataExportResponse { public static final String JSON_PROPERTY_CHANNEL_CUSTOM_TYPES = "channel_custom_types"; private List channelCustomTypes = null; diff --git a/src/main/java/org/openapitools/client/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.java b/src/main/java/org/openapitools/client/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.java index b71875bb..1c612566 100644 --- a/src/main/java/org/openapitools/client/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.java +++ b/src/main/java/org/openapitools/client/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.java @@ -37,7 +37,7 @@ RegisterAsOperatorToChannelsWithCustomChannelTypesData.JSON_PROPERTY_CHANNEL_CUSTOM_TYPES }) @JsonTypeName("registerAsOperatorToChannelsWithCustomChannelTypesData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RegisterAsOperatorToChannelsWithCustomChannelTypesData { public static final String JSON_PROPERTY_CHANNEL_CUSTOM_TYPES = "channel_custom_types"; private List channelCustomTypes = new ArrayList<>(); diff --git a/src/main/java/org/openapitools/client/model/RegisterGdprRequestData.java b/src/main/java/org/openapitools/client/model/RegisterGdprRequestData.java index fecfeaa3..5f03b755 100644 --- a/src/main/java/org/openapitools/client/model/RegisterGdprRequestData.java +++ b/src/main/java/org/openapitools/client/model/RegisterGdprRequestData.java @@ -40,7 +40,7 @@ RegisterGdprRequestData.JSON_PROPERTY_USER_ID }) @JsonTypeName("registerGdprRequestData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RegisterGdprRequestData { public static final String JSON_PROPERTY_ACTION = "action"; private String action; diff --git a/src/main/java/org/openapitools/client/model/RegisterGdprRequestResponse.java b/src/main/java/org/openapitools/client/model/RegisterGdprRequestResponse.java index d9dbe9d0..7cf554c4 100644 --- a/src/main/java/org/openapitools/client/model/RegisterGdprRequestResponse.java +++ b/src/main/java/org/openapitools/client/model/RegisterGdprRequestResponse.java @@ -44,7 +44,7 @@ RegisterGdprRequestResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("registerGdprRequestResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RegisterGdprRequestResponse { public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; private String requestId; diff --git a/src/main/java/org/openapitools/client/model/RemovePushConfigurationByIdResponse.java b/src/main/java/org/openapitools/client/model/RemovePushConfigurationByIdResponse.java index 3b073ec1..912bc3e6 100644 --- a/src/main/java/org/openapitools/client/model/RemovePushConfigurationByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/RemovePushConfigurationByIdResponse.java @@ -37,7 +37,7 @@ RemovePushConfigurationByIdResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("removePushConfigurationByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RemovePushConfigurationByIdResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/RemoveReactionFromAMessageResponse.java b/src/main/java/org/openapitools/client/model/RemoveReactionFromAMessageResponse.java index f932099c..5e3d0297 100644 --- a/src/main/java/org/openapitools/client/model/RemoveReactionFromAMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/RemoveReactionFromAMessageResponse.java @@ -41,7 +41,7 @@ RemoveReactionFromAMessageResponse.JSON_PROPERTY_OPERATION }) @JsonTypeName("removeReactionFromAMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RemoveReactionFromAMessageResponse { public static final String JSON_PROPERTY_REACTION = "reaction"; private String reaction; diff --git a/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenByTokenResponse.java b/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenByTokenResponse.java index e7bd9c3a..2d91c123 100644 --- a/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenByTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenByTokenResponse.java @@ -39,7 +39,7 @@ RemoveRegistrationOrDeviceTokenByTokenResponse.JSON_PROPERTY_USER }) @JsonTypeName("removeRegistrationOrDeviceTokenByTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RemoveRegistrationOrDeviceTokenByTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private List token = null; diff --git a/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.java b/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.java index f5585966..e0c8ac1e 100644 --- a/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.java @@ -35,7 +35,7 @@ RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.JSON_PROPERTY_USER_ID }) @JsonTypeName("removeRegistrationOrDeviceTokenFromOwnerByTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenResponse.java b/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenResponse.java index 6d0e98b6..4b7acbeb 100644 --- a/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/RemoveRegistrationOrDeviceTokenResponse.java @@ -39,7 +39,7 @@ RemoveRegistrationOrDeviceTokenResponse.JSON_PROPERTY_USER }) @JsonTypeName("removeRegistrationOrDeviceTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RemoveRegistrationOrDeviceTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private List token = null; diff --git a/src/main/java/org/openapitools/client/model/ReportChannelByUrlData.java b/src/main/java/org/openapitools/client/model/ReportChannelByUrlData.java index 32fcc406..4bcb4654 100644 --- a/src/main/java/org/openapitools/client/model/ReportChannelByUrlData.java +++ b/src/main/java/org/openapitools/client/model/ReportChannelByUrlData.java @@ -39,7 +39,7 @@ ReportChannelByUrlData.JSON_PROPERTY_REPORT_DESCRIPTION }) @JsonTypeName("reportChannelByUrlData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportChannelByUrlData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/ReportChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/ReportChannelByUrlResponse.java index 7540729d..3d2bc03f 100644 --- a/src/main/java/org/openapitools/client/model/ReportChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/ReportChannelByUrlResponse.java @@ -50,7 +50,7 @@ ReportChannelByUrlResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("reportChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportChannelByUrlResponse { public static final String JSON_PROPERTY_REPORT_TYPE = "report_type"; private String reportType; diff --git a/src/main/java/org/openapitools/client/model/ReportMessageByIdData.java b/src/main/java/org/openapitools/client/model/ReportMessageByIdData.java index 525d2e81..859a539e 100644 --- a/src/main/java/org/openapitools/client/model/ReportMessageByIdData.java +++ b/src/main/java/org/openapitools/client/model/ReportMessageByIdData.java @@ -41,7 +41,7 @@ ReportMessageByIdData.JSON_PROPERTY_REPORT_DESCRIPTION }) @JsonTypeName("reportMessageByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportMessageByIdData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/ReportMessageByIdResponse.java b/src/main/java/org/openapitools/client/model/ReportMessageByIdResponse.java index 6cd433c7..cd8155f2 100644 --- a/src/main/java/org/openapitools/client/model/ReportMessageByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ReportMessageByIdResponse.java @@ -50,7 +50,7 @@ ReportMessageByIdResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("reportMessageByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportMessageByIdResponse { public static final String JSON_PROPERTY_REPORT_TYPE = "report_type"; private String reportType; diff --git a/src/main/java/org/openapitools/client/model/ReportUserByIdData.java b/src/main/java/org/openapitools/client/model/ReportUserByIdData.java index c74406ce..e24b430e 100644 --- a/src/main/java/org/openapitools/client/model/ReportUserByIdData.java +++ b/src/main/java/org/openapitools/client/model/ReportUserByIdData.java @@ -40,7 +40,7 @@ ReportUserByIdData.JSON_PROPERTY_REPORT_DESCRIPTION }) @JsonTypeName("reportUserByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportUserByIdData { public static final String JSON_PROPERTY_OFFENDING_USER_ID = "offending_user_id"; private String offendingUserId; diff --git a/src/main/java/org/openapitools/client/model/ReportUserByIdResponse.java b/src/main/java/org/openapitools/client/model/ReportUserByIdResponse.java index 4d6a16af..d7e7346b 100644 --- a/src/main/java/org/openapitools/client/model/ReportUserByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ReportUserByIdResponse.java @@ -50,7 +50,7 @@ ReportUserByIdResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("reportUserByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportUserByIdResponse { public static final String JSON_PROPERTY_REPORT_TYPE = "report_type"; private String reportType; diff --git a/src/main/java/org/openapitools/client/model/ResetPushPreferencesResponse.java b/src/main/java/org/openapitools/client/model/ResetPushPreferencesResponse.java index ba0a299b..ee06a66b 100644 --- a/src/main/java/org/openapitools/client/model/ResetPushPreferencesResponse.java +++ b/src/main/java/org/openapitools/client/model/ResetPushPreferencesResponse.java @@ -51,7 +51,7 @@ ResetPushPreferencesResponse.JSON_PROPERTY_PUSH_TRIGGER_OPTION }) @JsonTypeName("resetPushPreferencesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ResetPushPreferencesResponse { public static final String JSON_PROPERTY_SNOOZE_START_TS = "snooze_start_ts"; private String snoozeStartTs; diff --git a/src/main/java/org/openapitools/client/model/RetrieveAdvancedAnalyticsMetricsResponse.java b/src/main/java/org/openapitools/client/model/RetrieveAdvancedAnalyticsMetricsResponse.java index e2e94ceb..59e7cd9c 100644 --- a/src/main/java/org/openapitools/client/model/RetrieveAdvancedAnalyticsMetricsResponse.java +++ b/src/main/java/org/openapitools/client/model/RetrieveAdvancedAnalyticsMetricsResponse.java @@ -41,7 +41,7 @@ RetrieveAdvancedAnalyticsMetricsResponse.JSON_PROPERTY_CUSTOM_MESSAGE_TYPE }) @JsonTypeName("retrieveAdvancedAnalyticsMetricsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RetrieveAdvancedAnalyticsMetricsResponse { public static final String JSON_PROPERTY_SEGMENTS = "segments"; private String segments; diff --git a/src/main/java/org/openapitools/client/model/RetrieveIpWhitelistResponse.java b/src/main/java/org/openapitools/client/model/RetrieveIpWhitelistResponse.java index 692945d2..267df1f7 100644 --- a/src/main/java/org/openapitools/client/model/RetrieveIpWhitelistResponse.java +++ b/src/main/java/org/openapitools/client/model/RetrieveIpWhitelistResponse.java @@ -37,7 +37,7 @@ RetrieveIpWhitelistResponse.JSON_PROPERTY_IP_WHITELIST_ADDRESSES }) @JsonTypeName("retrieveIpWhitelistResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RetrieveIpWhitelistResponse { public static final String JSON_PROPERTY_IP_WHITELIST_ADDRESSES = "ip_whitelist_addresses"; private List ipWhitelistAddresses = null; diff --git a/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponse.java b/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponse.java index 820113c6..8f411d5c 100644 --- a/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponse.java +++ b/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponse.java @@ -36,7 +36,7 @@ RetrieveListOfSubscribedEventsResponse.JSON_PROPERTY_WEBHOOK }) @JsonTypeName("retrieveListOfSubscribedEventsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RetrieveListOfSubscribedEventsResponse { public static final String JSON_PROPERTY_WEBHOOK = "webhook"; private RetrieveListOfSubscribedEventsResponseWebhook webhook; diff --git a/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponseWebhook.java b/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponseWebhook.java index a5a227b3..4dd85cdb 100644 --- a/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponseWebhook.java +++ b/src/main/java/org/openapitools/client/model/RetrieveListOfSubscribedEventsResponseWebhook.java @@ -42,7 +42,7 @@ RetrieveListOfSubscribedEventsResponseWebhook.JSON_PROPERTY_INCLUDE_UNREAD_COUNT }) @JsonTypeName("retrieveListOfSubscribedEventsResponse_webhook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RetrieveListOfSubscribedEventsResponseWebhook { public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; diff --git a/src/main/java/org/openapitools/client/model/RevokeSecondaryApiTokenByTokenResponse.java b/src/main/java/org/openapitools/client/model/RevokeSecondaryApiTokenByTokenResponse.java index 7945b7c6..b503ff5f 100644 --- a/src/main/java/org/openapitools/client/model/RevokeSecondaryApiTokenByTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/RevokeSecondaryApiTokenByTokenResponse.java @@ -37,7 +37,7 @@ RevokeSecondaryApiTokenByTokenResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("revokeSecondaryApiTokenByTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class RevokeSecondaryApiTokenByTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/SBObject.java b/src/main/java/org/openapitools/client/model/SBObject.java index 69e0f3ab..34d5b162 100644 --- a/src/main/java/org/openapitools/client/model/SBObject.java +++ b/src/main/java/org/openapitools/client/model/SBObject.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ SBObject.JSON_PROPERTY_CONSTRUCTOR }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SBObject { public static final String JSON_PROPERTY_CONSTRUCTOR = "constructor"; private Function constructor; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementData.java b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementData.java index 3afea77c..5cc84ee7 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementData.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementData.java @@ -61,7 +61,7 @@ ScheduleAnnouncementData.JSON_PROPERTY_ASSIGN_SENDER_AS_CHANNEL_INVITER }) @JsonTypeName("scheduleAnnouncementData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ScheduleAnnouncementData { public static final String JSON_PROPERTY_MESSAGE = "message"; private ScheduleAnnouncementDataMessage message; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementDataMessage.java b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementDataMessage.java index fefcb7c5..07de96cf 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementDataMessage.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementDataMessage.java @@ -38,7 +38,7 @@ ScheduleAnnouncementDataMessage.JSON_PROPERTY_CONTENT }) @JsonTypeName("scheduleAnnouncementData_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ScheduleAnnouncementDataMessage { public static final String JSON_PROPERTY_TYPE = "type"; private String type; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponse.java b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponse.java index 62d91888..3bef5f49 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponse.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponse.java @@ -55,7 +55,7 @@ ScheduleAnnouncementResponse.JSON_PROPERTY_OPEN_RATE }) @JsonTypeName("scheduleAnnouncementResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ScheduleAnnouncementResponse { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseCreateChannelOptions.java b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseCreateChannelOptions.java index e6fe4ef9..1ae732e4 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseCreateChannelOptions.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseCreateChannelOptions.java @@ -39,7 +39,7 @@ ScheduleAnnouncementResponseCreateChannelOptions.JSON_PROPERTY_CUSTOM_TYPE }) @JsonTypeName("scheduleAnnouncementResponse_create_channel_options") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ScheduleAnnouncementResponseCreateChannelOptions { public static final String JSON_PROPERTY_DISTINCT = "distinct"; private Boolean distinct; diff --git a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseMessage.java b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseMessage.java index 8abb2011..30fc4a23 100644 --- a/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseMessage.java +++ b/src/main/java/org/openapitools/client/model/ScheduleAnnouncementResponseMessage.java @@ -39,7 +39,7 @@ ScheduleAnnouncementResponseMessage.JSON_PROPERTY_DATA }) @JsonTypeName("scheduleAnnouncementResponse_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ScheduleAnnouncementResponseMessage { public static final String JSON_PROPERTY_TYPE = "type"; private String type; diff --git a/src/main/java/org/openapitools/client/model/SendBirdAdminMessage.java b/src/main/java/org/openapitools/client/model/SendBirdAdminMessage.java index 8fa3bded..8ed408d8 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdAdminMessage.java +++ b/src/main/java/org/openapitools/client/model/SendBirdAdminMessage.java @@ -73,7 +73,7 @@ SendBirdAdminMessage.JSON_PROPERTY_UPDATED_AT }) @JsonTypeName("SendBird.AdminMessage") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdAdminMessage { public static final String JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS = "apple_critical_alert_options"; private SendBirdAppleCriticalAlertOptions appleCriticalAlertOptions; diff --git a/src/main/java/org/openapitools/client/model/SendBirdAppleCriticalAlertOptions.java b/src/main/java/org/openapitools/client/model/SendBirdAppleCriticalAlertOptions.java index 5fb495ed..5326c8e8 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdAppleCriticalAlertOptions.java +++ b/src/main/java/org/openapitools/client/model/SendBirdAppleCriticalAlertOptions.java @@ -37,7 +37,7 @@ SendBirdAppleCriticalAlertOptions.JSON_PROPERTY_VOLUME }) @JsonTypeName("SendBird.AppleCriticalAlertOptions") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdAppleCriticalAlertOptions { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/SendBirdAutoEventMessageSettings.java b/src/main/java/org/openapitools/client/model/SendBirdAutoEventMessageSettings.java index febff2aa..c4c2c46d 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdAutoEventMessageSettings.java +++ b/src/main/java/org/openapitools/client/model/SendBirdAutoEventMessageSettings.java @@ -36,7 +36,7 @@ SendBirdAutoEventMessageSettings.JSON_PROPERTY_AUTO_EVENT_MESSAGE }) @JsonTypeName("SendBird.AutoEventMessageSettings") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdAutoEventMessageSettings { public static final String JSON_PROPERTY_AUTO_EVENT_MESSAGE = "auto_event_message"; private ConfigureAutoEventDataAutoEventMessage autoEventMessage; diff --git a/src/main/java/org/openapitools/client/model/SendBirdBaseChannel.java b/src/main/java/org/openapitools/client/model/SendBirdBaseChannel.java index 8f3aedde..6f9bb5fc 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdBaseChannel.java +++ b/src/main/java/org/openapitools/client/model/SendBirdBaseChannel.java @@ -45,7 +45,7 @@ SendBirdBaseChannel.JSON_PROPERTY_URL }) @JsonTypeName("SendBird.BaseChannel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdBaseChannel { public static final String JSON_PROPERTY_COVER_URL = "cover_url"; private String coverUrl; diff --git a/src/main/java/org/openapitools/client/model/SendBirdBaseMessageInstance.java b/src/main/java/org/openapitools/client/model/SendBirdBaseMessageInstance.java index 9129b395..c84514e0 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdBaseMessageInstance.java +++ b/src/main/java/org/openapitools/client/model/SendBirdBaseMessageInstance.java @@ -72,7 +72,7 @@ SendBirdBaseMessageInstance.JSON_PROPERTY_UPDATED_AT }) @JsonTypeName("SendBird.BaseMessageInstance") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdBaseMessageInstance { public static final String JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS = "apple_critical_alert_options"; private SendBirdAppleCriticalAlertOptions appleCriticalAlertOptions; diff --git a/src/main/java/org/openapitools/client/model/SendBirdChannelResponse.java b/src/main/java/org/openapitools/client/model/SendBirdChannelResponse.java index de75fb68..9357e65e 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/SendBirdChannelResponse.java @@ -68,7 +68,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.sendbird.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") @JsonDeserialize(using=SendBirdChannelResponse.SendBirdChannelResponseDeserializer.class) @JsonSerialize(using = SendBirdChannelResponse.SendBirdChannelResponseSerializer.class) public class SendBirdChannelResponse extends AbstractOpenApiSchema { diff --git a/src/main/java/org/openapitools/client/model/SendBirdEmoji.java b/src/main/java/org/openapitools/client/model/SendBirdEmoji.java index 64796638..7213e84a 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdEmoji.java +++ b/src/main/java/org/openapitools/client/model/SendBirdEmoji.java @@ -36,7 +36,7 @@ SendBirdEmoji.JSON_PROPERTY_URL }) @JsonTypeName("SendBird.Emoji") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdEmoji { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/SendBirdEmojiCategory.java b/src/main/java/org/openapitools/client/model/SendBirdEmojiCategory.java index 16f2a251..9cb7891a 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdEmojiCategory.java +++ b/src/main/java/org/openapitools/client/model/SendBirdEmojiCategory.java @@ -42,7 +42,7 @@ SendBirdEmojiCategory.JSON_PROPERTY_URL }) @JsonTypeName("SendBird.EmojiCategory") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdEmojiCategory { public static final String JSON_PROPERTY_EMOJIS = "emojis"; private List emojis = null; diff --git a/src/main/java/org/openapitools/client/model/SendBirdFileMessageParams.java b/src/main/java/org/openapitools/client/model/SendBirdFileMessageParams.java index 27379478..08b26277 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdFileMessageParams.java +++ b/src/main/java/org/openapitools/client/model/SendBirdFileMessageParams.java @@ -59,7 +59,7 @@ SendBirdFileMessageParams.JSON_PROPERTY_THUMBNAIL_SIZES }) @JsonTypeName("SendBird.FileMessageParams") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdFileMessageParams { public static final String JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS = "apple_critical_alert_options"; private SendBirdAppleCriticalAlertOptions appleCriticalAlertOptions; diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java index 7b578896..90ec93d3 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannel.java @@ -93,7 +93,7 @@ SendBirdGroupChannel.JSON_PROPERTY_CHANNEL }) @JsonTypeName("SendBird.GroupChannel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdGroupChannel { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelChannel.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelChannel.java index 58404420..09c6f032 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelChannel.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelChannel.java @@ -43,7 +43,7 @@ SendBirdGroupChannelChannel.JSON_PROPERTY_MEMBER_COUNT }) @JsonTypeName("SendBird_GroupChannel_channel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdGroupChannelChannel { public static final String JSON_PROPERTY_CHANNEL_URL = "channel_url"; private String channelUrl; diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCollection.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCollection.java index a145e681..83f00522 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCollection.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCollection.java @@ -39,7 +39,7 @@ SendBirdGroupChannelCollection.JSON_PROPERTY_HAS_MORE }) @JsonTypeName("SendBird.GroupChannelCollection") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdGroupChannelCollection { public static final String JSON_PROPERTY_CHANNEL_LIST = "channel_list"; private List channelList = null; diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCreatedBy.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCreatedBy.java index f00c9874..6c0352d6 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCreatedBy.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelCreatedBy.java @@ -38,7 +38,7 @@ SendBirdGroupChannelCreatedBy.JSON_PROPERTY_PROFILE_URL }) @JsonTypeName("SendBird_GroupChannel_created_by") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdGroupChannelCreatedBy { public static final String JSON_PROPERTY_REQUIRE_AUTH_FOR_PROFILE_IMAGE = "require_auth_for_profile_image"; private Boolean requireAuthForProfileImage; diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelDisappearingMessage.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelDisappearingMessage.java index 8ac7b0c1..ee0cedea 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelDisappearingMessage.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelDisappearingMessage.java @@ -37,7 +37,7 @@ SendBirdGroupChannelDisappearingMessage.JSON_PROPERTY_IS_TRIGGERED_BY_MESSAGE_READ }) @JsonTypeName("SendBird_GroupChannel_disappearing_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdGroupChannelDisappearingMessage { public static final String JSON_PROPERTY_MESSAGE_SURVIVAL_SECONDS = "message_survival_seconds"; private BigDecimal messageSurvivalSeconds; diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelInviter.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelInviter.java index 3e6f8245..6ddb6e34 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelInviter.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelInviter.java @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.sendbird.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") @JsonDeserialize(using=SendBirdGroupChannelInviter.SendBirdGroupChannelInviterDeserializer.class) @JsonSerialize(using = SendBirdGroupChannelInviter.SendBirdGroupChannelInviterSerializer.class) public class SendBirdGroupChannelInviter extends AbstractOpenApiSchema { diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelLastMessage.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelLastMessage.java index fa7e1f2a..5b2e1216 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelLastMessage.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelLastMessage.java @@ -57,7 +57,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.sendbird.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") @JsonDeserialize(using=SendBirdGroupChannelLastMessage.SendBirdGroupChannelLastMessageDeserializer.class) @JsonSerialize(using = SendBirdGroupChannelLastMessage.SendBirdGroupChannelLastMessageSerializer.class) public class SendBirdGroupChannelLastMessage extends AbstractOpenApiSchema { diff --git a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelSmsFallback.java b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelSmsFallback.java index 24200db9..d7eac6e9 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdGroupChannelSmsFallback.java +++ b/src/main/java/org/openapitools/client/model/SendBirdGroupChannelSmsFallback.java @@ -39,7 +39,7 @@ SendBirdGroupChannelSmsFallback.JSON_PROPERTY_EXCLUDE_USER_IDS }) @JsonTypeName("SendBird_GroupChannel_sms_fallback") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdGroupChannelSmsFallback { public static final String JSON_PROPERTY_WAIT_SECONDS = "wait_seconds"; private BigDecimal waitSeconds; diff --git a/src/main/java/org/openapitools/client/model/SendBirdMember.java b/src/main/java/org/openapitools/client/model/SendBirdMember.java index 3e416e24..274cb451 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMember.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMember.java @@ -62,7 +62,7 @@ SendBirdMember.JSON_PROPERTY_USER_ID }) @JsonTypeName("SendBird.Member") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdMember { public static final String JSON_PROPERTY_CONNECTION_STATUS = "connection_status"; private String connectionStatus; diff --git a/src/main/java/org/openapitools/client/model/SendBirdMessageMetaArray.java b/src/main/java/org/openapitools/client/model/SendBirdMessageMetaArray.java index 47cecbf8..cae97223 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMessageMetaArray.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMessageMetaArray.java @@ -38,7 +38,7 @@ SendBirdMessageMetaArray.JSON_PROPERTY_VALUE }) @JsonTypeName("SendBird.MessageMetaArray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdMessageMetaArray { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java b/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java index 9a294189..ac6463a0 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMessageResponse.java @@ -66,7 +66,7 @@ SendBirdMessageResponse.JSON_PROPERTY_IS_REPLY_TO_CHANNEL }) @JsonTypeName("SendBird.MessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdMessageResponse { public static final String JSON_PROPERTY_REQUIRE_AUTH = "require_auth"; private Boolean requireAuth; diff --git a/src/main/java/org/openapitools/client/model/SendBirdMessageResponseMentionedUsersInner.java b/src/main/java/org/openapitools/client/model/SendBirdMessageResponseMentionedUsersInner.java index a183ac10..1d2b804a 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMessageResponseMentionedUsersInner.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMessageResponseMentionedUsersInner.java @@ -39,7 +39,7 @@ SendBirdMessageResponseMentionedUsersInner.JSON_PROPERTY_METADATA }) @JsonTypeName("SendBird_MessageResponse_mentioned_users_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdMessageResponseMentionedUsersInner { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/SendBirdMessageResponseUser.java b/src/main/java/org/openapitools/client/model/SendBirdMessageResponseUser.java index e3cd68db..4e7eed50 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdMessageResponseUser.java +++ b/src/main/java/org/openapitools/client/model/SendBirdMessageResponseUser.java @@ -42,7 +42,7 @@ SendBirdMessageResponseUser.JSON_PROPERTY_METADATA }) @JsonTypeName("SendBird_MessageResponse_user") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdMessageResponseUser { public static final String JSON_PROPERTY_REQUIRE_AUTH_FOR_PROFILE_IMAGE = "require_auth_for_profile_image"; private Boolean requireAuthForProfileImage; diff --git a/src/main/java/org/openapitools/client/model/SendBirdOGImage.java b/src/main/java/org/openapitools/client/model/SendBirdOGImage.java index e8f75632..fe626ec5 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdOGImage.java +++ b/src/main/java/org/openapitools/client/model/SendBirdOGImage.java @@ -41,7 +41,7 @@ SendBirdOGImage.JSON_PROPERTY_WIDTH }) @JsonTypeName("SendBird.OGImage") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdOGImage { public static final String JSON_PROPERTY_ALT = "alt"; private String alt; diff --git a/src/main/java/org/openapitools/client/model/SendBirdOGMetaData.java b/src/main/java/org/openapitools/client/model/SendBirdOGMetaData.java index abf3f34e..4288b8e6 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdOGMetaData.java +++ b/src/main/java/org/openapitools/client/model/SendBirdOGMetaData.java @@ -39,7 +39,7 @@ SendBirdOGMetaData.JSON_PROPERTY_URL }) @JsonTypeName("SendBird.OGMetaData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdOGMetaData { public static final String JSON_PROPERTY_DEFAULT_IMAGE = "default_image"; private SendBirdOGImage defaultImage; diff --git a/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java b/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java index 923c50a8..da9016ac 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java +++ b/src/main/java/org/openapitools/client/model/SendBirdOpenChannel.java @@ -52,7 +52,7 @@ SendBirdOpenChannel.JSON_PROPERTY_FREEZE }) @JsonTypeName("SendBird.OpenChannel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdOpenChannel { public static final String JSON_PROPERTY_NAME = "name"; private String name; diff --git a/src/main/java/org/openapitools/client/model/SendBirdPlugin.java b/src/main/java/org/openapitools/client/model/SendBirdPlugin.java index 35f5c56e..54bb7ab8 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdPlugin.java +++ b/src/main/java/org/openapitools/client/model/SendBirdPlugin.java @@ -37,7 +37,7 @@ SendBirdPlugin.JSON_PROPERTY_VENDOR }) @JsonTypeName("SendBird.Plugin") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdPlugin { public static final String JSON_PROPERTY_DETAIL = "detail"; private Object detail; diff --git a/src/main/java/org/openapitools/client/model/SendBirdPoll.java b/src/main/java/org/openapitools/client/model/SendBirdPoll.java index c006485a..dfa21584 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdPoll.java +++ b/src/main/java/org/openapitools/client/model/SendBirdPoll.java @@ -39,7 +39,7 @@ SendBirdPoll.JSON_PROPERTY_TITLE }) @JsonTypeName("SendBird.Poll") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdPoll { public static final String JSON_PROPERTY_DETAILS = "details"; private SendBirdPollDetails details; diff --git a/src/main/java/org/openapitools/client/model/SendBirdPollDetails.java b/src/main/java/org/openapitools/client/model/SendBirdPollDetails.java index 3286b980..84e8b2c4 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdPollDetails.java +++ b/src/main/java/org/openapitools/client/model/SendBirdPollDetails.java @@ -48,7 +48,7 @@ SendBirdPollDetails.JSON_PROPERTY_VOTER_COUNT }) @JsonTypeName("SendBird.PollDetails") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdPollDetails { public static final String JSON_PROPERTY_ALLOW_MULTIPLE_VOTES = "allow_multiple_votes"; private Boolean allowMultipleVotes; diff --git a/src/main/java/org/openapitools/client/model/SendBirdPollOption.java b/src/main/java/org/openapitools/client/model/SendBirdPollOption.java index 5aef02b9..a96787b9 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdPollOption.java +++ b/src/main/java/org/openapitools/client/model/SendBirdPollOption.java @@ -46,7 +46,7 @@ SendBirdPollOption.JSON_PROPERTY_VOTE_COUNT }) @JsonTypeName("SendBird.PollOption") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdPollOption { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private BigDecimal createdAt; diff --git a/src/main/java/org/openapitools/client/model/SendBirdPollUpdatedVoteCount.java b/src/main/java/org/openapitools/client/model/SendBirdPollUpdatedVoteCount.java index 4493f1d8..6f34e826 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdPollUpdatedVoteCount.java +++ b/src/main/java/org/openapitools/client/model/SendBirdPollUpdatedVoteCount.java @@ -37,7 +37,7 @@ SendBirdPollUpdatedVoteCount.JSON_PROPERTY_VOTE_COUNT }) @JsonTypeName("SendBird.PollUpdatedVoteCount") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdPollUpdatedVoteCount { public static final String JSON_PROPERTY_OPTION_ID = "option_id"; private BigDecimal optionId; diff --git a/src/main/java/org/openapitools/client/model/SendBirdReaction.java b/src/main/java/org/openapitools/client/model/SendBirdReaction.java index 7ee0a3b5..72c47e94 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdReaction.java +++ b/src/main/java/org/openapitools/client/model/SendBirdReaction.java @@ -40,7 +40,7 @@ SendBirdReaction.JSON_PROPERTY_USER_IDS }) @JsonTypeName("SendBird.Reaction") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdReaction { public static final String JSON_PROPERTY_KEY = "key"; private String key; diff --git a/src/main/java/org/openapitools/client/model/SendBirdRestrictionInfo.java b/src/main/java/org/openapitools/client/model/SendBirdRestrictionInfo.java index 29a87a65..32bf8ccd 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdRestrictionInfo.java +++ b/src/main/java/org/openapitools/client/model/SendBirdRestrictionInfo.java @@ -38,7 +38,7 @@ SendBirdRestrictionInfo.JSON_PROPERTY_RESTRICTION_TYPE }) @JsonTypeName("SendBird.RestrictionInfo") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdRestrictionInfo { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; diff --git a/src/main/java/org/openapitools/client/model/SendBirdSender.java b/src/main/java/org/openapitools/client/model/SendBirdSender.java index 411966de..8f8c2924 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdSender.java +++ b/src/main/java/org/openapitools/client/model/SendBirdSender.java @@ -49,7 +49,7 @@ SendBirdSender.JSON_PROPERTY_USER_ID }) @JsonTypeName("SendBird.Sender") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdSender { public static final String JSON_PROPERTY_CONNECTION_STATUS = "connection_status"; private String connectionStatus; diff --git a/src/main/java/org/openapitools/client/model/SendBirdThreadInfo.java b/src/main/java/org/openapitools/client/model/SendBirdThreadInfo.java index fd829987..c569193a 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdThreadInfo.java +++ b/src/main/java/org/openapitools/client/model/SendBirdThreadInfo.java @@ -42,7 +42,7 @@ SendBirdThreadInfo.JSON_PROPERTY_UPDATED_AT }) @JsonTypeName("SendBird.ThreadInfo") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdThreadInfo { public static final String JSON_PROPERTY_LAST_REPLIED_AT = "last_replied_at"; private BigDecimal lastRepliedAt; diff --git a/src/main/java/org/openapitools/client/model/SendBirdThumbnailSBObject.java b/src/main/java/org/openapitools/client/model/SendBirdThumbnailSBObject.java index 72437e62..7268a4c9 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdThumbnailSBObject.java +++ b/src/main/java/org/openapitools/client/model/SendBirdThumbnailSBObject.java @@ -41,7 +41,7 @@ SendBirdThumbnailSBObject.JSON_PROPERTY_WIDTH }) @JsonTypeName("SendBird.ThumbnailSBObject") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdThumbnailSBObject { public static final String JSON_PROPERTY_HEIGHT = "height"; private BigDecimal height; diff --git a/src/main/java/org/openapitools/client/model/SendBirdThumbnailSize.java b/src/main/java/org/openapitools/client/model/SendBirdThumbnailSize.java index 5066232d..8934959d 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdThumbnailSize.java +++ b/src/main/java/org/openapitools/client/model/SendBirdThumbnailSize.java @@ -37,7 +37,7 @@ SendBirdThumbnailSize.JSON_PROPERTY_MAX_WIDTH }) @JsonTypeName("SendBird.ThumbnailSize") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdThumbnailSize { public static final String JSON_PROPERTY_MAX_HEIGHT = "max_height"; private BigDecimal maxHeight; diff --git a/src/main/java/org/openapitools/client/model/SendBirdUser.java b/src/main/java/org/openapitools/client/model/SendBirdUser.java index 29068c64..e006cc9a 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdUser.java +++ b/src/main/java/org/openapitools/client/model/SendBirdUser.java @@ -61,7 +61,7 @@ SendBirdUser.JSON_PROPERTY_START_AT }) @JsonTypeName("SendBird.User") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdUser { public static final String JSON_PROPERTY_REQUIRE_AUTH_FOR_PROFILE_IMAGE = "require_auth_for_profile_image"; private Boolean requireAuthForProfileImage; diff --git a/src/main/java/org/openapitools/client/model/SendBirdUserMessageParams.java b/src/main/java/org/openapitools/client/model/SendBirdUserMessageParams.java index 8b64718f..fb20ebbb 100644 --- a/src/main/java/org/openapitools/client/model/SendBirdUserMessageParams.java +++ b/src/main/java/org/openapitools/client/model/SendBirdUserMessageParams.java @@ -55,7 +55,7 @@ SendBirdUserMessageParams.JSON_PROPERTY_TRANSLATION_TARGET_LANGUAGES }) @JsonTypeName("SendBird.UserMessageParams") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBirdUserMessageParams { public static final String JSON_PROPERTY_APPLE_CRITICAL_ALERT_OPTIONS = "apple_critical_alert_options"; private SendBirdAppleCriticalAlertOptions appleCriticalAlertOptions; diff --git a/src/main/java/org/openapitools/client/model/SendBotSMessageData.java b/src/main/java/org/openapitools/client/model/SendBotSMessageData.java index 82b6a65f..12db3e9f 100644 --- a/src/main/java/org/openapitools/client/model/SendBotSMessageData.java +++ b/src/main/java/org/openapitools/client/model/SendBotSMessageData.java @@ -45,7 +45,7 @@ SendBotSMessageData.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("sendBot_sMessageData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendBotSMessageData { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; diff --git a/src/main/java/org/openapitools/client/model/SendMessageData.java b/src/main/java/org/openapitools/client/model/SendMessageData.java index d50fd3e8..3a67ed57 100644 --- a/src/main/java/org/openapitools/client/model/SendMessageData.java +++ b/src/main/java/org/openapitools/client/model/SendMessageData.java @@ -63,7 +63,7 @@ SendMessageData.JSON_PROPERTY_THUMBNAIL3 }) @JsonTypeName("sendMessageData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SendMessageData { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterData.java b/src/main/java/org/openapitools/client/model/SetDomainFilterData.java index 256359b6..31cbb54d 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterData.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterData.java @@ -42,7 +42,7 @@ SetDomainFilterData.JSON_PROPERTY_IMAGE_MODERATION }) @JsonTypeName("setDomainFilterData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterData { public static final String JSON_PROPERTY_DOMAIN_FILTER = "domain_filter"; private SetDomainFilterDataDomainFilter domainFilter; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterDataDomainFilter.java b/src/main/java/org/openapitools/client/model/SetDomainFilterDataDomainFilter.java index 7fc5080c..9281140a 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterDataDomainFilter.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterDataDomainFilter.java @@ -39,7 +39,7 @@ SetDomainFilterDataDomainFilter.JSON_PROPERTY_SHOULD_CHECK_GLOBAL }) @JsonTypeName("setDomainFilterData_domain_filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterDataDomainFilter { public static final String JSON_PROPERTY_DOMAINS = "domains"; private List domains = null; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModeration.java b/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModeration.java index d6f8194f..8b7ca55a 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModeration.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModeration.java @@ -39,7 +39,7 @@ SetDomainFilterDataImageModeration.JSON_PROPERTY_CHECK_URLS }) @JsonTypeName("setDomainFilterData_image_moderation") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterDataImageModeration { public static final String JSON_PROPERTY_TYPE = "type"; private Integer type; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModerationLimits.java b/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModerationLimits.java index 8404bf4f..f5092023 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModerationLimits.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterDataImageModerationLimits.java @@ -39,7 +39,7 @@ SetDomainFilterDataImageModerationLimits.JSON_PROPERTY_RACY }) @JsonTypeName("setDomainFilterData_image_moderation_limits") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterDataImageModerationLimits { public static final String JSON_PROPERTY_ADULT = "adult"; private Integer adult; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilter.java b/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilter.java index 84bdbeac..87d6691e 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilter.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilter.java @@ -41,7 +41,7 @@ SetDomainFilterDataProfanityFilter.JSON_PROPERTY_SHOULD_CHECK_GLOBAL }) @JsonTypeName("setDomainFilterData_profanity_filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterDataProfanityFilter { public static final String JSON_PROPERTY_KEYWORDS = "keywords"; private List keywords = null; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.java b/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.java index f4a695c0..1d6c212c 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.java @@ -35,7 +35,7 @@ SetDomainFilterDataProfanityFilterRegexFiltersInner.JSON_PROPERTY_REGEX }) @JsonTypeName("setDomainFilterData_profanity_filter_regex_filters_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterDataProfanityFilterRegexFiltersInner { public static final String JSON_PROPERTY_REGEX = "regex"; private String regex; diff --git a/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityTriggeredModeration.java b/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityTriggeredModeration.java index 1058be1f..79af9451 100644 --- a/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityTriggeredModeration.java +++ b/src/main/java/org/openapitools/client/model/SetDomainFilterDataProfanityTriggeredModeration.java @@ -37,7 +37,7 @@ SetDomainFilterDataProfanityTriggeredModeration.JSON_PROPERTY_ACTION }) @JsonTypeName("setDomainFilterData_profanity_triggered_moderation") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class SetDomainFilterDataProfanityTriggeredModeration { public static final String JSON_PROPERTY_COUNT = "count"; private Integer count; diff --git a/src/main/java/org/openapitools/client/model/TranslateMessageIntoOtherLanguagesData.java b/src/main/java/org/openapitools/client/model/TranslateMessageIntoOtherLanguagesData.java index 88309ba6..a4d53b23 100644 --- a/src/main/java/org/openapitools/client/model/TranslateMessageIntoOtherLanguagesData.java +++ b/src/main/java/org/openapitools/client/model/TranslateMessageIntoOtherLanguagesData.java @@ -37,7 +37,7 @@ TranslateMessageIntoOtherLanguagesData.JSON_PROPERTY_TARGET_LANGS }) @JsonTypeName("translateMessageIntoOtherLanguagesData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class TranslateMessageIntoOtherLanguagesData { public static final String JSON_PROPERTY_TARGET_LANGS = "target_langs"; private List targetLangs = null; diff --git a/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdData.java b/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdData.java index b38b958d..646ffb64 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdData.java @@ -51,7 +51,7 @@ UpdateAnnouncementByIdData.JSON_PROPERTY_RESUME_AT }) @JsonTypeName("updateAnnouncementByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateAnnouncementByIdData { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponse.java b/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponse.java index 780d231f..4388c535 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponse.java @@ -38,7 +38,7 @@ UpdateAnnouncementByIdResponse.JSON_PROPERTY_MESSAGE }) @JsonTypeName("updateAnnouncementByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateAnnouncementByIdResponse { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponseMessage.java b/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponseMessage.java index d799b26c..a2045f05 100644 --- a/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponseMessage.java +++ b/src/main/java/org/openapitools/client/model/UpdateAnnouncementByIdResponseMessage.java @@ -50,7 +50,7 @@ UpdateAnnouncementByIdResponseMessage.JSON_PROPERTY_OPEN_RATE }) @JsonTypeName("updateAnnouncementByIdResponse_message") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateAnnouncementByIdResponseMessage { public static final String JSON_PROPERTY_TYPE = "type"; private String type; diff --git a/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdData.java b/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdData.java index fec89b42..5be336ae 100644 --- a/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdData.java @@ -44,7 +44,7 @@ UpdateApnsPushConfigurationByIdData.JSON_PROPERTY_APNS_TYPE }) @JsonTypeName("updateApnsPushConfigurationByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateApnsPushConfigurationByIdData { public static final String JSON_PROPERTY_PROVIDER_ID = "provider_id"; private String providerId; diff --git a/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdResponse.java b/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdResponse.java index 52d744e4..111feb6c 100644 --- a/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateApnsPushConfigurationByIdResponse.java @@ -35,7 +35,7 @@ UpdateApnsPushConfigurationByIdResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("updateApnsPushConfigurationByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateApnsPushConfigurationByIdResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private String pushConfigurations; diff --git a/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java b/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java index f3e1e0d4..737dc966 100644 --- a/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateBotByIdData.java @@ -42,7 +42,7 @@ UpdateBotByIdData.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE }) @JsonTypeName("updateBotByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateBotByIdData { public static final String JSON_PROPERTY_BOT_USERID = "bot_userid"; private String botUserid; diff --git a/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java b/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java index 0789bb12..7c475fca 100644 --- a/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateBotByIdResponse.java @@ -42,7 +42,7 @@ UpdateBotByIdResponse.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE }) @JsonTypeName("updateBotByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateBotByIdResponse { public static final String JSON_PROPERTY_BOT = "bot"; private CreateBotResponseBot bot; diff --git a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceData.java b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceData.java index 9f7551b0..70f20767 100644 --- a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceData.java +++ b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceData.java @@ -35,7 +35,7 @@ UpdateChannelInvitationPreferenceData.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("updateChannelInvitationPreferenceData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateChannelInvitationPreferenceData { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java index 8f4c6744..91607d26 100644 --- a/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateChannelInvitationPreferenceResponse.java @@ -35,7 +35,7 @@ UpdateChannelInvitationPreferenceResponse.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("updateChannelInvitationPreferenceResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateChannelInvitationPreferenceResponse { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/UpdateChannelMetacounterData.java b/src/main/java/org/openapitools/client/model/UpdateChannelMetacounterData.java index caa0477c..193d3fc9 100644 --- a/src/main/java/org/openapitools/client/model/UpdateChannelMetacounterData.java +++ b/src/main/java/org/openapitools/client/model/UpdateChannelMetacounterData.java @@ -37,7 +37,7 @@ UpdateChannelMetacounterData.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateChannelMetacounterData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateChannelMetacounterData { public static final String JSON_PROPERTY_METACOUNTER = "metacounter"; private String metacounter; diff --git a/src/main/java/org/openapitools/client/model/UpdateChannelMetadataData.java b/src/main/java/org/openapitools/client/model/UpdateChannelMetadataData.java index 776300d0..492256bb 100644 --- a/src/main/java/org/openapitools/client/model/UpdateChannelMetadataData.java +++ b/src/main/java/org/openapitools/client/model/UpdateChannelMetadataData.java @@ -36,7 +36,7 @@ UpdateChannelMetadataData.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateChannelMetadataData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateChannelMetadataData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Object metadata; diff --git a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlData.java b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlData.java index 4b8331a8..9fc2a684 100644 --- a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlData.java +++ b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlData.java @@ -35,7 +35,7 @@ UpdateCountPreferenceOfChannelByUrlData.JSON_PROPERTY_COUNT_PREFERENCE }) @JsonTypeName("updateCountPreferenceOfChannelByUrlData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateCountPreferenceOfChannelByUrlData { public static final String JSON_PROPERTY_COUNT_PREFERENCE = "count_preference"; private String countPreference; diff --git a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java index ac7af9cd..59dfc3e1 100644 --- a/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateCountPreferenceOfChannelByUrlResponse.java @@ -35,7 +35,7 @@ UpdateCountPreferenceOfChannelByUrlResponse.JSON_PROPERTY_COUNT_PREFERENCE }) @JsonTypeName("updateCountPreferenceOfChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateCountPreferenceOfChannelByUrlResponse { public static final String JSON_PROPERTY_COUNT_PREFERENCE = "count_preference"; private String countPreference; diff --git a/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceData.java b/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceData.java index e6dcb1b7..46746e74 100644 --- a/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceData.java +++ b/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceData.java @@ -35,7 +35,7 @@ UpdateDefaultChannelInvitationPreferenceData.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("updateDefaultChannelInvitationPreferenceData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateDefaultChannelInvitationPreferenceData { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceResponse.java b/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceResponse.java index 28861f0b..625d84e1 100644 --- a/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateDefaultChannelInvitationPreferenceResponse.java @@ -35,7 +35,7 @@ UpdateDefaultChannelInvitationPreferenceResponse.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("updateDefaultChannelInvitationPreferenceResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateDefaultChannelInvitationPreferenceResponse { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/UpdateEmojiCategoryUrlByIdData.java b/src/main/java/org/openapitools/client/model/UpdateEmojiCategoryUrlByIdData.java index e5b8d1ae..0cc7fbfa 100644 --- a/src/main/java/org/openapitools/client/model/UpdateEmojiCategoryUrlByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateEmojiCategoryUrlByIdData.java @@ -36,7 +36,7 @@ UpdateEmojiCategoryUrlByIdData.JSON_PROPERTY_URL }) @JsonTypeName("updateEmojiCategoryUrlByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateEmojiCategoryUrlByIdData { public static final String JSON_PROPERTY_EMOJI_CATEGORY_ID = "emoji_category_id"; private Integer emojiCategoryId; diff --git a/src/main/java/org/openapitools/client/model/UpdateEmojiUrlByKeyData.java b/src/main/java/org/openapitools/client/model/UpdateEmojiUrlByKeyData.java index 35b2614f..83e2f600 100644 --- a/src/main/java/org/openapitools/client/model/UpdateEmojiUrlByKeyData.java +++ b/src/main/java/org/openapitools/client/model/UpdateEmojiUrlByKeyData.java @@ -36,7 +36,7 @@ UpdateEmojiUrlByKeyData.JSON_PROPERTY_URL }) @JsonTypeName("updateEmojiUrlByKeyData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateEmojiUrlByKeyData { public static final String JSON_PROPERTY_EMOJI_KEY = "emoji_key"; private String emojiKey; diff --git a/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageData.java b/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageData.java index 11292ffd..9c7306d3 100644 --- a/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageData.java +++ b/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageData.java @@ -40,7 +40,7 @@ UpdateExtraDataInMessageData.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateExtraDataInMessageData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateExtraDataInMessageData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponse.java b/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponse.java index b9b26c5e..5ba113aa 100644 --- a/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponse.java @@ -38,7 +38,7 @@ UpdateExtraDataInMessageResponse.JSON_PROPERTY_SORTED_METAARRAY }) @JsonTypeName("updateExtraDataInMessageResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateExtraDataInMessageResponse { public static final String JSON_PROPERTY_SORTED_METAARRAY = "sorted_metaarray"; private List sortedMetaarray = null; diff --git a/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.java b/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.java index e5bdc7d3..31b15d87 100644 --- a/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.java +++ b/src/main/java/org/openapitools/client/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.java @@ -38,7 +38,7 @@ UpdateExtraDataInMessageResponseSortedMetaarrayInner.JSON_PROPERTY_KEY }) @JsonTypeName("updateExtraDataInMessageResponse_sorted_metaarray_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateExtraDataInMessageResponseSortedMetaarrayInner { public static final String JSON_PROPERTY_VALUE = "value"; private List value = null; diff --git a/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdData.java b/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdData.java index 5fc603b1..2071c85a 100644 --- a/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdData.java @@ -37,7 +37,7 @@ UpdateFcmPushConfigurationByIdData.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("updateFcmPushConfigurationByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateFcmPushConfigurationByIdData { public static final String JSON_PROPERTY_PROVIDER_ID = "provider_id"; private String providerId; diff --git a/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdResponse.java b/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdResponse.java index 03caf24c..41ea6e72 100644 --- a/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateFcmPushConfigurationByIdResponse.java @@ -35,7 +35,7 @@ UpdateFcmPushConfigurationByIdResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("updateFcmPushConfigurationByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateFcmPushConfigurationByIdResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private String pushConfigurations; diff --git a/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdData.java b/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdData.java index c1eb0d19..529179d9 100644 --- a/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdData.java @@ -38,7 +38,7 @@ UpdateHmsPushConfigurationByIdData.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("updateHmsPushConfigurationByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateHmsPushConfigurationByIdData { public static final String JSON_PROPERTY_PROVIDER_ID = "provider_id"; private String providerId; diff --git a/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdResponse.java b/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdResponse.java index d395d51e..41d87a9f 100644 --- a/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateHmsPushConfigurationByIdResponse.java @@ -35,7 +35,7 @@ UpdateHmsPushConfigurationByIdResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("updateHmsPushConfigurationByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateHmsPushConfigurationByIdResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private String pushConfigurations; diff --git a/src/main/java/org/openapitools/client/model/UpdateMessageByIdData.java b/src/main/java/org/openapitools/client/model/UpdateMessageByIdData.java index b2496d0b..8eea49ec 100644 --- a/src/main/java/org/openapitools/client/model/UpdateMessageByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateMessageByIdData.java @@ -45,7 +45,7 @@ UpdateMessageByIdData.JSON_PROPERTY_MENTIONED_USER_IDS }) @JsonTypeName("updateMessageByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateMessageByIdData { public static final String JSON_PROPERTY_CHANNEL_TYPE = "channel_type"; private String channelType; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateData.java b/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateData.java index 00109849..4473a58e 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateData.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateData.java @@ -39,7 +39,7 @@ UpdatePushNotificationContentTemplateData.JSON_PROPERTY_TEMPLATE_A_D_M_N }) @JsonTypeName("updatePushNotificationContentTemplateData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdatePushNotificationContentTemplateData { public static final String JSON_PROPERTY_TEMPLATE_NAME = "template_name"; private String templateName; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateResponse.java b/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateResponse.java index 51e096d1..d386db8a 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushNotificationContentTemplateResponse.java @@ -38,7 +38,7 @@ UpdatePushNotificationContentTemplateResponse.JSON_PROPERTY_PUSH_MESSAGE_TEMPLATES }) @JsonTypeName("updatePushNotificationContentTemplateResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdatePushNotificationContentTemplateResponse { public static final String JSON_PROPERTY_PUSH_MESSAGE_TEMPLATES = "push_message_templates"; private List pushMessageTemplates = null; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesData.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesData.java index a6b57097..8a2797c4 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesData.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesData.java @@ -49,7 +49,7 @@ UpdatePushPreferencesData.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("updatePushPreferencesData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdatePushPreferencesData { public static final String JSON_PROPERTY_PUSH_TRIGGER_OPTION = "push_trigger_option"; private String pushTriggerOption; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlData.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlData.java index ed68683c..86d6c4c3 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlData.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlData.java @@ -37,7 +37,7 @@ UpdatePushPreferencesForChannelByUrlData.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("updatePushPreferencesForChannelByUrlData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdatePushPreferencesForChannelByUrlData { public static final String JSON_PROPERTY_PUSH_TRIGGER_OPTION = "push_trigger_option"; private String pushTriggerOption; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlResponse.java index a7220c79..13a7f249 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesForChannelByUrlResponse.java @@ -47,7 +47,7 @@ UpdatePushPreferencesForChannelByUrlResponse.JSON_PROPERTY_ENABLE }) @JsonTypeName("updatePushPreferencesForChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdatePushPreferencesForChannelByUrlResponse { public static final String JSON_PROPERTY_PUSH_TRIGGER_OPTION = "push_trigger_option"; private String pushTriggerOption; diff --git a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java index ba4f2576..fb6b4ae2 100644 --- a/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdatePushPreferencesResponse.java @@ -51,7 +51,7 @@ UpdatePushPreferencesResponse.JSON_PROPERTY_PUSH_SOUND }) @JsonTypeName("updatePushPreferencesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdatePushPreferencesResponse { public static final String JSON_PROPERTY_BLOCK_PUSH_FROM_BOTS = "block_push_from_bots"; private Boolean blockPushFromBots; diff --git a/src/main/java/org/openapitools/client/model/UpdateUserByIdData.java b/src/main/java/org/openapitools/client/model/UpdateUserByIdData.java index 33c8eb95..cd521831 100644 --- a/src/main/java/org/openapitools/client/model/UpdateUserByIdData.java +++ b/src/main/java/org/openapitools/client/model/UpdateUserByIdData.java @@ -49,7 +49,7 @@ UpdateUserByIdData.JSON_PROPERTY_LEAVE_ALL_WHEN_DEACTIVATED }) @JsonTypeName("updateUserByIdData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateUserByIdData { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/openapitools/client/model/UpdateUserMetadataData.java b/src/main/java/org/openapitools/client/model/UpdateUserMetadataData.java index 2634f898..49e32faa 100644 --- a/src/main/java/org/openapitools/client/model/UpdateUserMetadataData.java +++ b/src/main/java/org/openapitools/client/model/UpdateUserMetadataData.java @@ -36,7 +36,7 @@ UpdateUserMetadataData.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateUserMetadataData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateUserMetadataData { public static final String JSON_PROPERTY_METADATA = "metadata"; private Object metadata; diff --git a/src/main/java/org/openapitools/client/model/UpdateUserMetadataResponse.java b/src/main/java/org/openapitools/client/model/UpdateUserMetadataResponse.java index d82692a1..6511a752 100644 --- a/src/main/java/org/openapitools/client/model/UpdateUserMetadataResponse.java +++ b/src/main/java/org/openapitools/client/model/UpdateUserMetadataResponse.java @@ -39,7 +39,7 @@ UpdateUserMetadataResponse.JSON_PROPERTY_UPSERT }) @JsonTypeName("updateUserMetadataResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UpdateUserMetadataResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata = null; diff --git a/src/main/java/org/openapitools/client/model/UseDefaultEmojisData.java b/src/main/java/org/openapitools/client/model/UseDefaultEmojisData.java index 33131ac9..9c24b982 100644 --- a/src/main/java/org/openapitools/client/model/UseDefaultEmojisData.java +++ b/src/main/java/org/openapitools/client/model/UseDefaultEmojisData.java @@ -35,7 +35,7 @@ UseDefaultEmojisData.JSON_PROPERTY_USE_DEFAULT_EMOJI }) @JsonTypeName("useDefaultEmojisData") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UseDefaultEmojisData { public static final String JSON_PROPERTY_USE_DEFAULT_EMOJI = "use_default_emoji"; private Boolean useDefaultEmoji; diff --git a/src/main/java/org/openapitools/client/model/UseDefaultEmojisResponse.java b/src/main/java/org/openapitools/client/model/UseDefaultEmojisResponse.java index 326ec897..424fc9b8 100644 --- a/src/main/java/org/openapitools/client/model/UseDefaultEmojisResponse.java +++ b/src/main/java/org/openapitools/client/model/UseDefaultEmojisResponse.java @@ -35,7 +35,7 @@ UseDefaultEmojisResponse.JSON_PROPERTY_USE_DEFAULT_EMOJI }) @JsonTypeName("useDefaultEmojisResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UseDefaultEmojisResponse { public static final String JSON_PROPERTY_USE_DEFAULT_EMOJI = "use_default_emoji"; private Boolean useDefaultEmoji; diff --git a/src/main/java/org/openapitools/client/model/ViewAnnouncementByIdResponse.java b/src/main/java/org/openapitools/client/model/ViewAnnouncementByIdResponse.java index 2ac99b41..bcb20a6c 100644 --- a/src/main/java/org/openapitools/client/model/ViewAnnouncementByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewAnnouncementByIdResponse.java @@ -59,7 +59,7 @@ ViewAnnouncementByIdResponse.JSON_PROPERTY_TARGET_CUSTOM_TYPE }) @JsonTypeName("viewAnnouncementByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewAnnouncementByIdResponse { public static final String JSON_PROPERTY_UNIQUE_ID = "unique_id"; private String uniqueId; diff --git a/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java b/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java index 4442750c..2465e51c 100644 --- a/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewBotByIdResponse.java @@ -42,7 +42,7 @@ ViewBotByIdResponse.JSON_PROPERTY_CHANNEL_INVITATION_PREFERENCE }) @JsonTypeName("viewBotByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewBotByIdResponse { public static final String JSON_PROPERTY_BOT = "bot"; private CreateBotResponseBot bot; diff --git a/src/main/java/org/openapitools/client/model/ViewChannelInvitationPreferenceResponse.java b/src/main/java/org/openapitools/client/model/ViewChannelInvitationPreferenceResponse.java index 16992c94..b1543802 100644 --- a/src/main/java/org/openapitools/client/model/ViewChannelInvitationPreferenceResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewChannelInvitationPreferenceResponse.java @@ -35,7 +35,7 @@ ViewChannelInvitationPreferenceResponse.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("viewChannelInvitationPreferenceResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewChannelInvitationPreferenceResponse { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfChannelByUrlResponse.java index 58f3c411..6d8ae6a8 100644 --- a/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewCountPreferenceOfChannelByUrlResponse.java @@ -35,7 +35,7 @@ ViewCountPreferenceOfChannelByUrlResponse.JSON_PROPERTY_COUNT_PREFERENCE }) @JsonTypeName("viewCountPreferenceOfChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewCountPreferenceOfChannelByUrlResponse { public static final String JSON_PROPERTY_COUNT_PREFERENCE = "count_preference"; private String countPreference; diff --git a/src/main/java/org/openapitools/client/model/ViewDataExportByIdResponse.java b/src/main/java/org/openapitools/client/model/ViewDataExportByIdResponse.java index d74446cc..3b4e929f 100644 --- a/src/main/java/org/openapitools/client/model/ViewDataExportByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewDataExportByIdResponse.java @@ -52,7 +52,7 @@ ViewDataExportByIdResponse.JSON_PROPERTY_USER_IDS }) @JsonTypeName("viewDataExportByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewDataExportByIdResponse { public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; private String requestId; diff --git a/src/main/java/org/openapitools/client/model/ViewDefaultChannelInvitationPreferenceResponse.java b/src/main/java/org/openapitools/client/model/ViewDefaultChannelInvitationPreferenceResponse.java index 4f50033e..958f0a58 100644 --- a/src/main/java/org/openapitools/client/model/ViewDefaultChannelInvitationPreferenceResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewDefaultChannelInvitationPreferenceResponse.java @@ -35,7 +35,7 @@ ViewDefaultChannelInvitationPreferenceResponse.JSON_PROPERTY_AUTO_ACCEPT }) @JsonTypeName("viewDefaultChannelInvitationPreferenceResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewDefaultChannelInvitationPreferenceResponse { public static final String JSON_PROPERTY_AUTO_ACCEPT = "auto_accept"; private Boolean autoAccept; diff --git a/src/main/java/org/openapitools/client/model/ViewGdprRequestByIdResponse.java b/src/main/java/org/openapitools/client/model/ViewGdprRequestByIdResponse.java index f633019e..de715ace 100644 --- a/src/main/java/org/openapitools/client/model/ViewGdprRequestByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewGdprRequestByIdResponse.java @@ -46,7 +46,7 @@ ViewGdprRequestByIdResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("viewGdprRequestByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewGdprRequestByIdResponse { public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; private String requestId; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsByJoinStatusResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsByJoinStatusResponse.java index aff28487..1ab4f44f 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsByJoinStatusResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsByJoinStatusResponse.java @@ -36,7 +36,7 @@ ViewNumberOfChannelsByJoinStatusResponse.JSON_PROPERTY_GROUP_CHANNEL_COUNT }) @JsonTypeName("viewNumberOfChannelsByJoinStatusResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfChannelsByJoinStatusResponse { public static final String JSON_PROPERTY_GROUP_CHANNEL_COUNT = "group_channel_count"; private BigDecimal groupChannelCount; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java index aedf4b15..799b7818 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfChannelsWithUnreadMessagesResponse.java @@ -36,7 +36,7 @@ ViewNumberOfChannelsWithUnreadMessagesResponse.JSON_PROPERTY_UNREAD_COUNT }) @JsonTypeName("viewNumberOfChannelsWithUnreadMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfChannelsWithUnreadMessagesResponse { public static final String JSON_PROPERTY_UNREAD_COUNT = "unread_count"; private BigDecimal unreadCount; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfConcurrentConnectionsResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfConcurrentConnectionsResponse.java index 4b01ae87..f7186d47 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfConcurrentConnectionsResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfConcurrentConnectionsResponse.java @@ -36,7 +36,7 @@ ViewNumberOfConcurrentConnectionsResponse.JSON_PROPERTY_CCU }) @JsonTypeName("viewNumberOfConcurrentConnectionsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfConcurrentConnectionsResponse { public static final String JSON_PROPERTY_CCU = "ccu"; private BigDecimal ccu; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java index c83e8deb..aab2600d 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfDailyActiveUsersResponse.java @@ -36,7 +36,7 @@ ViewNumberOfDailyActiveUsersResponse.JSON_PROPERTY_DAU }) @JsonTypeName("viewNumberOfDailyActiveUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfDailyActiveUsersResponse { public static final String JSON_PROPERTY_DAU = "dau"; private BigDecimal dau; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java index bf2f7d7e..e0188eb3 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfMonthlyActiveUsersResponse.java @@ -36,7 +36,7 @@ ViewNumberOfMonthlyActiveUsersResponse.JSON_PROPERTY_MAU }) @JsonTypeName("viewNumberOfMonthlyActiveUsersResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfMonthlyActiveUsersResponse { public static final String JSON_PROPERTY_MAU = "mau"; private BigDecimal mau; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponse.java index 489be20e..24f65236 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponse.java @@ -38,7 +38,7 @@ ViewNumberOfPeakConnectionsResponse.JSON_PROPERTY_PEAK_CONNECTIONS }) @JsonTypeName("viewNumberOfPeakConnectionsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfPeakConnectionsResponse { public static final String JSON_PROPERTY_PEAK_CONNECTIONS = "peak_connections"; private List peakConnections = null; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.java b/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.java index 6e088f70..f7e54c8b 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.java @@ -37,7 +37,7 @@ ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.JSON_PROPERTY_PEAK_CONNECTIONS }) @JsonTypeName("viewNumberOfPeakConnectionsResponse_peak_connections_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfPeakConnectionsResponsePeakConnectionsInner { public static final String JSON_PROPERTY_DATE = "date"; private String date; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadItemsResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadItemsResponse.java index 082f3b1f..f0cdc215 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadItemsResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadItemsResponse.java @@ -44,7 +44,7 @@ ViewNumberOfUnreadItemsResponse.JSON_PROPERTY_NON_SUPER_GROUP_CHANNEL_INVITATION_COUNT }) @JsonTypeName("viewNumberOfUnreadItemsResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfUnreadItemsResponse { public static final String JSON_PROPERTY_NON_SUPER_GROUP_CHANNEL_UNREAD_MESSAGE_COUNT = "non_super_group_channel_unread_message_count"; private BigDecimal nonSuperGroupChannelUnreadMessageCount; diff --git a/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java b/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java index c5c82485..e592c4c9 100644 --- a/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewNumberOfUnreadMessagesResponse.java @@ -36,7 +36,7 @@ ViewNumberOfUnreadMessagesResponse.JSON_PROPERTY_UNREAD_COUNT }) @JsonTypeName("viewNumberOfUnreadMessagesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewNumberOfUnreadMessagesResponse { public static final String JSON_PROPERTY_UNREAD_COUNT = "unread_count"; private BigDecimal unreadCount; diff --git a/src/main/java/org/openapitools/client/model/ViewPushConfigurationByIdResponse.java b/src/main/java/org/openapitools/client/model/ViewPushConfigurationByIdResponse.java index debd6d1f..2748f460 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushConfigurationByIdResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewPushConfigurationByIdResponse.java @@ -38,7 +38,7 @@ ViewPushConfigurationByIdResponse.JSON_PROPERTY_PUSH_CONFIGURATIONS }) @JsonTypeName("viewPushConfigurationByIdResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewPushConfigurationByIdResponse { public static final String JSON_PROPERTY_PUSH_CONFIGURATIONS = "push_configurations"; private List pushConfigurations = null; diff --git a/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponse.java b/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponse.java index dbede7a7..c2108c47 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponse.java @@ -38,7 +38,7 @@ ViewPushNotificationContentTemplateResponse.JSON_PROPERTY_PUSH_MESSAGE_TEMPLATES }) @JsonTypeName("viewPushNotificationContentTemplateResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewPushNotificationContentTemplateResponse { public static final String JSON_PROPERTY_PUSH_MESSAGE_TEMPLATES = "push_message_templates"; private List pushMessageTemplates = null; diff --git a/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.java b/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.java index 69590404..2175e300 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.java +++ b/src/main/java/org/openapitools/client/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.java @@ -38,7 +38,7 @@ ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.JSON_PROPERTY_PUSH_MESSAGE_PREVIEW }) @JsonTypeName("viewPushNotificationContentTemplateResponse_push_message_templates_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner { public static final String JSON_PROPERTY_TEMPLATE_NAME = "template_name"; private String templateName; diff --git a/src/main/java/org/openapitools/client/model/ViewPushPreferencesForChannelByUrlResponse.java b/src/main/java/org/openapitools/client/model/ViewPushPreferencesForChannelByUrlResponse.java index 953aef0d..a9a16c12 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushPreferencesForChannelByUrlResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewPushPreferencesForChannelByUrlResponse.java @@ -47,7 +47,7 @@ ViewPushPreferencesForChannelByUrlResponse.JSON_PROPERTY_ENABLE }) @JsonTypeName("viewPushPreferencesForChannelByUrlResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewPushPreferencesForChannelByUrlResponse { public static final String JSON_PROPERTY_PUSH_TRIGGER_OPTION = "push_trigger_option"; private String pushTriggerOption; diff --git a/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java b/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java index 3f523c3a..eee35e07 100644 --- a/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewPushPreferencesResponse.java @@ -51,7 +51,7 @@ ViewPushPreferencesResponse.JSON_PROPERTY_PUSH_TRIGGER_OPTION }) @JsonTypeName("viewPushPreferencesResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewPushPreferencesResponse { public static final String JSON_PROPERTY_SNOOZE_START_TS = "snooze_start_ts"; private String snoozeStartTs; diff --git a/src/main/java/org/openapitools/client/model/ViewSecondaryApiTokenByTokenResponse.java b/src/main/java/org/openapitools/client/model/ViewSecondaryApiTokenByTokenResponse.java index c9b769f7..675ea97c 100644 --- a/src/main/java/org/openapitools/client/model/ViewSecondaryApiTokenByTokenResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewSecondaryApiTokenByTokenResponse.java @@ -37,7 +37,7 @@ ViewSecondaryApiTokenByTokenResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("viewSecondaryApiTokenByTokenResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewSecondaryApiTokenByTokenResponse { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; diff --git a/src/main/java/org/openapitools/client/model/ViewTotalNumberOfMessagesInChannelResponse.java b/src/main/java/org/openapitools/client/model/ViewTotalNumberOfMessagesInChannelResponse.java index 2e0d76c8..788b6e6f 100644 --- a/src/main/java/org/openapitools/client/model/ViewTotalNumberOfMessagesInChannelResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewTotalNumberOfMessagesInChannelResponse.java @@ -36,7 +36,7 @@ ViewTotalNumberOfMessagesInChannelResponse.JSON_PROPERTY_TOTAL }) @JsonTypeName("viewTotalNumberOfMessagesInChannelResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewTotalNumberOfMessagesInChannelResponse { public static final String JSON_PROPERTY_TOTAL = "total"; private BigDecimal total; diff --git a/src/main/java/org/openapitools/client/model/ViewUserMetadataResponse.java b/src/main/java/org/openapitools/client/model/ViewUserMetadataResponse.java index 5e5cf005..86083cf9 100644 --- a/src/main/java/org/openapitools/client/model/ViewUserMetadataResponse.java +++ b/src/main/java/org/openapitools/client/model/ViewUserMetadataResponse.java @@ -35,7 +35,7 @@ ViewUserMetadataResponse.JSON_PROPERTY_ANY_OF }) @JsonTypeName("viewUserMetadataResponse") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewUserMetadataResponse { public static final String JSON_PROPERTY_ANY_OF = "anyOf"; private String anyOf; diff --git a/src/main/java/org/openapitools/client/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.java b/src/main/java/org/openapitools/client/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.java index 7973ab5f..beecfdda 100644 --- a/src/main/java/org/openapitools/client/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.java +++ b/src/main/java/org/openapitools/client/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.java @@ -35,7 +35,7 @@ ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.JSON_PROPERTY_USER_ID }) @JsonTypeName("viewWhoOwnsRegistrationOrDeviceTokenByTokenResponse_inner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner { public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; diff --git a/src/main/java/org/sendbird/client/ApiClient.java b/src/main/java/org/sendbird/client/ApiClient.java index 530addb9..6021cb7c 100644 --- a/src/main/java/org/sendbird/client/ApiClient.java +++ b/src/main/java/org/sendbird/client/ApiClient.java @@ -66,7 +66,7 @@ /** *

ApiClient class.

*/ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ApiClient extends JavaTimeFormatter { protected Map defaultHeaderMap = new HashMap(); protected Map defaultCookieMap = new HashMap(); @@ -127,7 +127,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.15/java"); + setUserAgent("OpenAPI-Generator/0.0.16/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/src/main/java/org/sendbird/client/ApiException.java b/src/main/java/org/sendbird/client/ApiException.java index 05cd4e38..69d982e6 100644 --- a/src/main/java/org/sendbird/client/ApiException.java +++ b/src/main/java/org/sendbird/client/ApiException.java @@ -19,7 +19,7 @@ /** * API Exception */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/sendbird/client/Configuration.java b/src/main/java/org/sendbird/client/Configuration.java index 6ea0d469..00e05735 100644 --- a/src/main/java/org/sendbird/client/Configuration.java +++ b/src/main/java/org/sendbird/client/Configuration.java @@ -13,7 +13,7 @@ package org.sendbird.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/org/sendbird/client/JSON.java b/src/main/java/org/sendbird/client/JSON.java index 292c2766..cc8310e2 100644 --- a/src/main/java/org/sendbird/client/JSON.java +++ b/src/main/java/org/sendbird/client/JSON.java @@ -15,7 +15,7 @@ import javax.ws.rs.core.GenericType; import javax.ws.rs.ext.ContextResolver; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/src/main/java/org/sendbird/client/JSON.java-e b/src/main/java/org/sendbird/client/JSON.java-e index a71dcb38..11a66c24 100644 --- a/src/main/java/org/sendbird/client/JSON.java-e +++ b/src/main/java/org/sendbird/client/JSON.java-e @@ -15,7 +15,7 @@ import java.util.Set; import javax.ws.rs.core.GenericType; import javax.ws.rs.ext.ContextResolver; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/src/main/java/org/sendbird/client/JavaTimeFormatter.java b/src/main/java/org/sendbird/client/JavaTimeFormatter.java index 037eaa17..52b9ba0b 100644 --- a/src/main/java/org/sendbird/client/JavaTimeFormatter.java +++ b/src/main/java/org/sendbird/client/JavaTimeFormatter.java @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/src/main/java/org/sendbird/client/Pair.java b/src/main/java/org/sendbird/client/Pair.java index 8858be13..87e6c08c 100644 --- a/src/main/java/org/sendbird/client/Pair.java +++ b/src/main/java/org/sendbird/client/Pair.java @@ -13,7 +13,7 @@ package org.sendbird.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/sendbird/client/StringUtil.java b/src/main/java/org/sendbird/client/StringUtil.java index d9c8c25d..f2c6e2c9 100644 --- a/src/main/java/org/sendbird/client/StringUtil.java +++ b/src/main/java/org/sendbird/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/sendbird/client/api/AnnouncementApi.java b/src/main/java/org/sendbird/client/api/AnnouncementApi.java index 3ba9a027..eefd4cd6 100644 --- a/src/main/java/org/sendbird/client/api/AnnouncementApi.java +++ b/src/main/java/org/sendbird/client/api/AnnouncementApi.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class AnnouncementApi { private ApiClient apiClient; @@ -54,37 +54,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Get detailed open rate of an announcement group - * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - * @param apiToken (required) - * @param announcementGroup (required) - * @return GetDetailedOpenRateOfAnnouncementGroupResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GetDetailedOpenRateOfAnnouncementGroupResponse getDetailedOpenRateOfAnnouncementGroup(String apiToken, String announcementGroup) throws ApiException { - return getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup).getData(); - } - /** - * Get detailed open rate of an announcement group - * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - * @param apiToken (required) - * @param announcementGroup (required) - * @return ApiResponse<GetDetailedOpenRateOfAnnouncementGroupResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(String apiToken, String announcementGroup) throws ApiException { +private ApiResponse getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(String apiToken, String announcementGroup) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -131,35 +102,71 @@ public ApiResponse getDetailedOp localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Get statistics - weekly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param apiToken (required) - * @return GetStatisticsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GetStatisticsResponse getStatistics(String apiToken) throws ApiException { - return getStatisticsWithHttpInfo(apiToken).getData(); + + public class APIgetDetailedOpenRateOfAnnouncementGroupRequest { + private String apiToken; + private String announcementGroup; + + private APIgetDetailedOpenRateOfAnnouncementGroupRequest(String announcementGroup) { + this.announcementGroup = announcementGroup; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetDetailedOpenRateOfAnnouncementGroupRequest + */ + public APIgetDetailedOpenRateOfAnnouncementGroupRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute getDetailedOpenRateOfAnnouncementGroup request + * @return GetDetailedOpenRateOfAnnouncementGroupResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GetDetailedOpenRateOfAnnouncementGroupResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getDetailedOpenRateOfAnnouncementGroup request with HTTP info returned + * @return ApiResponse<GetDetailedOpenRateOfAnnouncementGroupResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup); + } } /** - * Get statistics - weekly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param apiToken (required) - * @return ApiResponse<GetStatisticsResponse> + * Get detailed open rate of an announcement group + * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- + * @param announcementGroup (required) + * @return getDetailedOpenRateOfAnnouncementGroupRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse getStatisticsWithHttpInfo(String apiToken) throws ApiException { + public APIgetDetailedOpenRateOfAnnouncementGroupRequest getDetailedOpenRateOfAnnouncementGroup(String announcementGroup) throws ApiException { + return new APIgetDetailedOpenRateOfAnnouncementGroupRequest(announcementGroup); + } + +private ApiResponse getStatisticsWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -200,49 +207,68 @@ public ApiResponse getStatisticsWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Get statistics - daily - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param apiToken (required) - * @param startDate (required) - * @param endDate (required) - * @param startWeek (required) - * @param endWeek (required) - * @param startMonth (required) - * @param endMonth (required) - * @param announcementGroup (optional) - * @return GetStatisticsDailyResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GetStatisticsDailyResponse getStatisticsDaily(String apiToken, String startDate, String endDate, String startWeek, String endWeek, String startMonth, String endMonth, String announcementGroup) throws ApiException { - return getStatisticsDailyWithHttpInfo(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, announcementGroup).getData(); + + public class APIgetStatisticsRequest { + private String apiToken; + + private APIgetStatisticsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetStatisticsRequest + */ + public APIgetStatisticsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute getStatistics request + * @return GetStatisticsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GetStatisticsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getStatistics request with HTTP info returned + * @return ApiResponse<GetStatisticsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getStatisticsWithHttpInfo(apiToken); + } } /** - * Get statistics - daily + * Get statistics - weekly * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param apiToken (required) - * @param startDate (required) - * @param endDate (required) - * @param startWeek (required) - * @param endWeek (required) - * @param startMonth (required) - * @param endMonth (required) - * @param announcementGroup (optional) - * @return ApiResponse<GetStatisticsDailyResponse> + * @return getStatisticsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse getStatisticsDailyWithHttpInfo(String apiToken, String startDate, String endDate, String startWeek, String endWeek, String startMonth, String endMonth, String announcementGroup) throws ApiException { + public APIgetStatisticsRequest getStatistics() throws ApiException { + return new APIgetStatisticsRequest(); + } + +private ApiResponse getStatisticsDailyWithHttpInfo(String apiToken, String startDate, String endDate, String startWeek, String endWeek, String startMonth, String endMonth, String announcementGroup) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -320,35 +346,145 @@ public ApiResponse getStatisticsDailyWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Get statistics - monthly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param apiToken (required) - * @return GetStatisticsMonthlyResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GetStatisticsMonthlyResponse getStatisticsMonthly(String apiToken) throws ApiException { - return getStatisticsMonthlyWithHttpInfo(apiToken).getData(); + + public class APIgetStatisticsDailyRequest { + private String apiToken; + private String startDate; + private String endDate; + private String startWeek; + private String endWeek; + private String startMonth; + private String endMonth; + private String announcementGroup; + + private APIgetStatisticsDailyRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set startDate + * @param startDate (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest startDate(String startDate) { + this.startDate = startDate; + return this; + } + + /** + * Set endDate + * @param endDate (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest endDate(String endDate) { + this.endDate = endDate; + return this; + } + + /** + * Set startWeek + * @param startWeek (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest startWeek(String startWeek) { + this.startWeek = startWeek; + return this; + } + + /** + * Set endWeek + * @param endWeek (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest endWeek(String endWeek) { + this.endWeek = endWeek; + return this; + } + + /** + * Set startMonth + * @param startMonth (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest startMonth(String startMonth) { + this.startMonth = startMonth; + return this; + } + + /** + * Set endMonth + * @param endMonth (required) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest endMonth(String endMonth) { + this.endMonth = endMonth; + return this; + } + + /** + * Set announcementGroup + * @param announcementGroup (optional) + * @return APIgetStatisticsDailyRequest + */ + public APIgetStatisticsDailyRequest announcementGroup(String announcementGroup) { + this.announcementGroup = announcementGroup; + return this; + } + + /** + * Execute getStatisticsDaily request + * @return GetStatisticsDailyResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GetStatisticsDailyResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getStatisticsDaily request with HTTP info returned + * @return ApiResponse<GetStatisticsDailyResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getStatisticsDailyWithHttpInfo(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, announcementGroup); + } } /** - * Get statistics - monthly + * Get statistics - daily * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param apiToken (required) - * @return ApiResponse<GetStatisticsMonthlyResponse> + * @return getStatisticsDailyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse getStatisticsMonthlyWithHttpInfo(String apiToken) throws ApiException { + public APIgetStatisticsDailyRequest getStatisticsDaily() throws ApiException { + return new APIgetStatisticsDailyRequest(); + } + +private ApiResponse getStatisticsMonthlyWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -389,39 +525,68 @@ public ApiResponse getStatisticsMonthlyWithHttpInf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List announcement groups - * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @return ListAnnouncementGroupsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListAnnouncementGroupsResponse listAnnouncementGroups(String apiToken, String token, Integer limit) throws ApiException { - return listAnnouncementGroupsWithHttpInfo(apiToken, token, limit).getData(); + + public class APIgetStatisticsMonthlyRequest { + private String apiToken; + + private APIgetStatisticsMonthlyRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetStatisticsMonthlyRequest + */ + public APIgetStatisticsMonthlyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute getStatisticsMonthly request + * @return GetStatisticsMonthlyResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GetStatisticsMonthlyResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getStatisticsMonthly request with HTTP info returned + * @return ApiResponse<GetStatisticsMonthlyResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getStatisticsMonthlyWithHttpInfo(apiToken); + } } /** - * List announcement groups - * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListAnnouncementGroupsResponse> + * Get statistics - monthly + * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- + * @return getStatisticsMonthlyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listAnnouncementGroupsWithHttpInfo(String apiToken, String token, Integer limit) throws ApiException { + public APIgetStatisticsMonthlyRequest getStatisticsMonthly() throws ApiException { + return new APIgetStatisticsMonthlyRequest(); + } + +private ApiResponse listAnnouncementGroupsWithHttpInfo(String apiToken, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -464,37 +629,90 @@ public ApiResponse listAnnouncementGroupsWithHtt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Schedule an announcement - * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - * @param apiToken (required) - * @param scheduleAnnouncementData (optional) - * @return ScheduleAnnouncementResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ScheduleAnnouncementResponse scheduleAnnouncement(String apiToken, ScheduleAnnouncementData scheduleAnnouncementData) throws ApiException { - return scheduleAnnouncementWithHttpInfo(apiToken, scheduleAnnouncementData).getData(); + + public class APIlistAnnouncementGroupsRequest { + private String apiToken; + private String token; + private Integer limit; + + private APIlistAnnouncementGroupsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistAnnouncementGroupsRequest + */ + public APIlistAnnouncementGroupsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistAnnouncementGroupsRequest + */ + public APIlistAnnouncementGroupsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistAnnouncementGroupsRequest + */ + public APIlistAnnouncementGroupsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listAnnouncementGroups request + * @return ListAnnouncementGroupsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListAnnouncementGroupsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listAnnouncementGroups request with HTTP info returned + * @return ApiResponse<ListAnnouncementGroupsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listAnnouncementGroupsWithHttpInfo(apiToken, token, limit); + } } /** - * Schedule an announcement - * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - * @param apiToken (required) - * @param scheduleAnnouncementData (optional) - * @return ApiResponse<ScheduleAnnouncementResponse> + * List announcement groups + * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- + * @return listAnnouncementGroupsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse scheduleAnnouncementWithHttpInfo(String apiToken, ScheduleAnnouncementData scheduleAnnouncementData) throws ApiException { + public APIlistAnnouncementGroupsRequest listAnnouncementGroups() throws ApiException { + return new APIlistAnnouncementGroupsRequest(); + } + +private ApiResponse scheduleAnnouncementWithHttpInfo(String apiToken, ScheduleAnnouncementData scheduleAnnouncementData) throws ApiException { Object localVarPostBody = scheduleAnnouncementData; // verify the required parameter 'apiToken' is set @@ -535,39 +753,79 @@ public ApiResponse scheduleAnnouncementWithHttpInf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update an announcement - * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- - * @param apiToken (required) - * @param uniqueId (required) - * @param updateAnnouncementByIdData (optional) - * @return UpdateAnnouncementByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateAnnouncementByIdResponse updateAnnouncementById(String apiToken, String uniqueId, UpdateAnnouncementByIdData updateAnnouncementByIdData) throws ApiException { - return updateAnnouncementByIdWithHttpInfo(apiToken, uniqueId, updateAnnouncementByIdData).getData(); + + public class APIscheduleAnnouncementRequest { + private String apiToken; + private ScheduleAnnouncementData scheduleAnnouncementData; + + private APIscheduleAnnouncementRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIscheduleAnnouncementRequest + */ + public APIscheduleAnnouncementRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set scheduleAnnouncementData + * @param scheduleAnnouncementData (optional) + * @return APIscheduleAnnouncementRequest + */ + public APIscheduleAnnouncementRequest scheduleAnnouncementData(ScheduleAnnouncementData scheduleAnnouncementData) { + this.scheduleAnnouncementData = scheduleAnnouncementData; + return this; + } + + /** + * Execute scheduleAnnouncement request + * @return ScheduleAnnouncementResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ScheduleAnnouncementResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute scheduleAnnouncement request with HTTP info returned + * @return ApiResponse<ScheduleAnnouncementResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return scheduleAnnouncementWithHttpInfo(apiToken, scheduleAnnouncementData); + } } /** - * Update an announcement - * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- - * @param apiToken (required) - * @param uniqueId (required) - * @param updateAnnouncementByIdData (optional) - * @return ApiResponse<UpdateAnnouncementByIdResponse> + * Schedule an announcement + * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement + * @return scheduleAnnouncementRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId, UpdateAnnouncementByIdData updateAnnouncementByIdData) throws ApiException { + public APIscheduleAnnouncementRequest scheduleAnnouncement() throws ApiException { + return new APIscheduleAnnouncementRequest(); + } + +private ApiResponse updateAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId, UpdateAnnouncementByIdData updateAnnouncementByIdData) throws ApiException { Object localVarPostBody = updateAnnouncementByIdData; // verify the required parameter 'apiToken' is set @@ -614,37 +872,82 @@ public ApiResponse updateAnnouncementByIdWithHtt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View an announcement - * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - * @param apiToken (required) - * @param uniqueId (required) - * @return ViewAnnouncementByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewAnnouncementByIdResponse viewAnnouncementById(String apiToken, String uniqueId) throws ApiException { - return viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId).getData(); + + public class APIupdateAnnouncementByIdRequest { + private String apiToken; + private String uniqueId; + private UpdateAnnouncementByIdData updateAnnouncementByIdData; + + private APIupdateAnnouncementByIdRequest(String uniqueId) { + this.uniqueId = uniqueId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateAnnouncementByIdRequest + */ + public APIupdateAnnouncementByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateAnnouncementByIdData + * @param updateAnnouncementByIdData (optional) + * @return APIupdateAnnouncementByIdRequest + */ + public APIupdateAnnouncementByIdRequest updateAnnouncementByIdData(UpdateAnnouncementByIdData updateAnnouncementByIdData) { + this.updateAnnouncementByIdData = updateAnnouncementByIdData; + return this; + } + + /** + * Execute updateAnnouncementById request + * @return UpdateAnnouncementByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateAnnouncementByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateAnnouncementById request with HTTP info returned + * @return ApiResponse<UpdateAnnouncementByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateAnnouncementByIdWithHttpInfo(apiToken, uniqueId, updateAnnouncementByIdData); + } } /** - * View an announcement - * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - * @param apiToken (required) + * Update an announcement + * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- * @param uniqueId (required) - * @return ApiResponse<ViewAnnouncementByIdResponse> + * @return updateAnnouncementByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId) throws ApiException { + public APIupdateAnnouncementByIdRequest updateAnnouncementById(String uniqueId) throws ApiException { + return new APIupdateAnnouncementByIdRequest(uniqueId); + } + +private ApiResponse viewAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -691,4 +994,67 @@ public ApiResponse viewAnnouncementByIdWithHttpInf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewAnnouncementByIdRequest { + private String apiToken; + private String uniqueId; + + private APIviewAnnouncementByIdRequest(String uniqueId) { + this.uniqueId = uniqueId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewAnnouncementByIdRequest + */ + public APIviewAnnouncementByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewAnnouncementById request + * @return ViewAnnouncementByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewAnnouncementByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewAnnouncementById request with HTTP info returned + * @return ApiResponse<ViewAnnouncementByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId); + } + } + + /** + * View an announcement + * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- + * @param uniqueId (required) + * @return viewAnnouncementByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewAnnouncementByIdRequest viewAnnouncementById(String uniqueId) throws ApiException { + return new APIviewAnnouncementByIdRequest(uniqueId); + } } diff --git a/src/main/java/org/sendbird/client/api/ApplicationApi.java b/src/main/java/org/sendbird/client/api/ApplicationApi.java index b04b9e71..6fe89fc9 100644 --- a/src/main/java/org/sendbird/client/api/ApplicationApi.java +++ b/src/main/java/org/sendbird/client/api/ApplicationApi.java @@ -54,7 +54,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ApplicationApi { private ApiClient apiClient; @@ -84,37 +84,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Add an APNs push configuration - * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - * @param apiToken (required) - * @param addApnsPushConfigurationData (optional) - * @return AddApnsPushConfigurationResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddApnsPushConfigurationResponse addApnsPushConfiguration(String apiToken, AddApnsPushConfigurationData addApnsPushConfigurationData) throws ApiException { - return addApnsPushConfigurationWithHttpInfo(apiToken, addApnsPushConfigurationData).getData(); - } - /** - * Add an APNs push configuration - * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - * @param apiToken (required) - * @param addApnsPushConfigurationData (optional) - * @return ApiResponse<AddApnsPushConfigurationResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse addApnsPushConfigurationWithHttpInfo(String apiToken, AddApnsPushConfigurationData addApnsPushConfigurationData) throws ApiException { +private ApiResponse addApnsPushConfigurationWithHttpInfo(String apiToken, AddApnsPushConfigurationData addApnsPushConfigurationData) throws ApiException { Object localVarPostBody = addApnsPushConfigurationData; // verify the required parameter 'apiToken' is set @@ -155,37 +126,79 @@ public ApiResponse addApnsPushConfigurationWit localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Add a FCM push configuration - * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - * @param apiToken (required) - * @param addFcmPushConfigurationData (optional) - * @return AddFcmPushConfigurationResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddFcmPushConfigurationResponse addFcmPushConfiguration(String apiToken, AddFcmPushConfigurationData addFcmPushConfigurationData) throws ApiException { - return addFcmPushConfigurationWithHttpInfo(apiToken, addFcmPushConfigurationData).getData(); + + public class APIaddApnsPushConfigurationRequest { + private String apiToken; + private AddApnsPushConfigurationData addApnsPushConfigurationData; + + private APIaddApnsPushConfigurationRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddApnsPushConfigurationRequest + */ + public APIaddApnsPushConfigurationRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addApnsPushConfigurationData + * @param addApnsPushConfigurationData (optional) + * @return APIaddApnsPushConfigurationRequest + */ + public APIaddApnsPushConfigurationRequest addApnsPushConfigurationData(AddApnsPushConfigurationData addApnsPushConfigurationData) { + this.addApnsPushConfigurationData = addApnsPushConfigurationData; + return this; + } + + /** + * Execute addApnsPushConfiguration request + * @return AddApnsPushConfigurationResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddApnsPushConfigurationResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addApnsPushConfiguration request with HTTP info returned + * @return ApiResponse<AddApnsPushConfigurationResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addApnsPushConfigurationWithHttpInfo(apiToken, addApnsPushConfigurationData); + } } /** - * Add a FCM push configuration - * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - * @param apiToken (required) - * @param addFcmPushConfigurationData (optional) - * @return ApiResponse<AddFcmPushConfigurationResponse> + * Add an APNs push configuration + * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration + * @return addApnsPushConfigurationRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse addFcmPushConfigurationWithHttpInfo(String apiToken, AddFcmPushConfigurationData addFcmPushConfigurationData) throws ApiException { + public APIaddApnsPushConfigurationRequest addApnsPushConfiguration() throws ApiException { + return new APIaddApnsPushConfigurationRequest(); + } + +private ApiResponse addFcmPushConfigurationWithHttpInfo(String apiToken, AddFcmPushConfigurationData addFcmPushConfigurationData) throws ApiException { Object localVarPostBody = addFcmPushConfigurationData; // verify the required parameter 'apiToken' is set @@ -226,37 +239,79 @@ public ApiResponse addFcmPushConfigurationWithH localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Add an HMS push configuration - * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - * @param apiToken (required) - * @param addHmsPushConfigurationData (optional) - * @return AddHmsPushConfigurationResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddHmsPushConfigurationResponse addHmsPushConfiguration(String apiToken, AddHmsPushConfigurationData addHmsPushConfigurationData) throws ApiException { - return addHmsPushConfigurationWithHttpInfo(apiToken, addHmsPushConfigurationData).getData(); + + public class APIaddFcmPushConfigurationRequest { + private String apiToken; + private AddFcmPushConfigurationData addFcmPushConfigurationData; + + private APIaddFcmPushConfigurationRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddFcmPushConfigurationRequest + */ + public APIaddFcmPushConfigurationRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addFcmPushConfigurationData + * @param addFcmPushConfigurationData (optional) + * @return APIaddFcmPushConfigurationRequest + */ + public APIaddFcmPushConfigurationRequest addFcmPushConfigurationData(AddFcmPushConfigurationData addFcmPushConfigurationData) { + this.addFcmPushConfigurationData = addFcmPushConfigurationData; + return this; + } + + /** + * Execute addFcmPushConfiguration request + * @return AddFcmPushConfigurationResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddFcmPushConfigurationResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addFcmPushConfiguration request with HTTP info returned + * @return ApiResponse<AddFcmPushConfigurationResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addFcmPushConfigurationWithHttpInfo(apiToken, addFcmPushConfigurationData); + } } /** - * Add an HMS push configuration - * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - * @param apiToken (required) - * @param addHmsPushConfigurationData (optional) - * @return ApiResponse<AddHmsPushConfigurationResponse> + * Add a FCM push configuration + * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration + * @return addFcmPushConfigurationRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse addHmsPushConfigurationWithHttpInfo(String apiToken, AddHmsPushConfigurationData addHmsPushConfigurationData) throws ApiException { + public APIaddFcmPushConfigurationRequest addFcmPushConfiguration() throws ApiException { + return new APIaddFcmPushConfigurationRequest(); + } + +private ApiResponse addHmsPushConfigurationWithHttpInfo(String apiToken, AddHmsPushConfigurationData addHmsPushConfigurationData) throws ApiException { Object localVarPostBody = addHmsPushConfigurationData; // verify the required parameter 'apiToken' is set @@ -297,37 +352,79 @@ public ApiResponse addHmsPushConfigurationWithH localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Add an IP to a whitelist - * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - * @param apiToken (required) - * @param addIpToWhitelistData (optional) - * @return AddIpToWhitelistResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddIpToWhitelistResponse addIpToWhitelist(String apiToken, AddIpToWhitelistData addIpToWhitelistData) throws ApiException { - return addIpToWhitelistWithHttpInfo(apiToken, addIpToWhitelistData).getData(); + + public class APIaddHmsPushConfigurationRequest { + private String apiToken; + private AddHmsPushConfigurationData addHmsPushConfigurationData; + + private APIaddHmsPushConfigurationRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddHmsPushConfigurationRequest + */ + public APIaddHmsPushConfigurationRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addHmsPushConfigurationData + * @param addHmsPushConfigurationData (optional) + * @return APIaddHmsPushConfigurationRequest + */ + public APIaddHmsPushConfigurationRequest addHmsPushConfigurationData(AddHmsPushConfigurationData addHmsPushConfigurationData) { + this.addHmsPushConfigurationData = addHmsPushConfigurationData; + return this; + } + + /** + * Execute addHmsPushConfiguration request + * @return AddHmsPushConfigurationResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddHmsPushConfigurationResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addHmsPushConfiguration request with HTTP info returned + * @return ApiResponse<AddHmsPushConfigurationResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addHmsPushConfigurationWithHttpInfo(apiToken, addHmsPushConfigurationData); + } } /** - * Add an IP to a whitelist - * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - * @param apiToken (required) - * @param addIpToWhitelistData (optional) - * @return ApiResponse<AddIpToWhitelistResponse> + * Add an HMS push configuration + * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration + * @return addHmsPushConfigurationRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse addIpToWhitelistWithHttpInfo(String apiToken, AddIpToWhitelistData addIpToWhitelistData) throws ApiException { + public APIaddHmsPushConfigurationRequest addHmsPushConfiguration() throws ApiException { + return new APIaddHmsPushConfigurationRequest(); + } + +private ApiResponse addIpToWhitelistWithHttpInfo(String apiToken, AddIpToWhitelistData addIpToWhitelistData) throws ApiException { Object localVarPostBody = addIpToWhitelistData; // verify the required parameter 'apiToken' is set @@ -368,39 +465,79 @@ public ApiResponse addIpToWhitelistWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Ban users in channels with a custom channel type - * ## Ban specified users in channels with a custom channel type at once. - * @param apiToken (required) - * @param customType (required) - * @param banUsersInChannelsWithCustomChannelTypeData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object banUsersInChannelsWithCustomChannelType(String apiToken, String customType, BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData) throws ApiException { - return banUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, banUsersInChannelsWithCustomChannelTypeData).getData(); + + public class APIaddIpToWhitelistRequest { + private String apiToken; + private AddIpToWhitelistData addIpToWhitelistData; + + private APIaddIpToWhitelistRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddIpToWhitelistRequest + */ + public APIaddIpToWhitelistRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addIpToWhitelistData + * @param addIpToWhitelistData (optional) + * @return APIaddIpToWhitelistRequest + */ + public APIaddIpToWhitelistRequest addIpToWhitelistData(AddIpToWhitelistData addIpToWhitelistData) { + this.addIpToWhitelistData = addIpToWhitelistData; + return this; + } + + /** + * Execute addIpToWhitelist request + * @return AddIpToWhitelistResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddIpToWhitelistResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addIpToWhitelist request with HTTP info returned + * @return ApiResponse<AddIpToWhitelistResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addIpToWhitelistWithHttpInfo(apiToken, addIpToWhitelistData); + } } /** - * Ban users in channels with a custom channel type - * ## Ban specified users in channels with a custom channel type at once. - * @param apiToken (required) - * @param customType (required) - * @param banUsersInChannelsWithCustomChannelTypeData (optional) - * @return ApiResponse<Object> + * Add an IP to a whitelist + * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist + * @return addIpToWhitelistRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse banUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData) throws ApiException { + public APIaddIpToWhitelistRequest addIpToWhitelist() throws ApiException { + return new APIaddIpToWhitelistRequest(); + } + +private ApiResponse banUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData) throws ApiException { Object localVarPostBody = banUsersInChannelsWithCustomChannelTypeData; // verify the required parameter 'apiToken' is set @@ -447,37 +584,82 @@ public ApiResponse banUsersInChannelsWithCustomChannelTypeWithHttpInfo(S localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Configure auto event message settings - * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - * @param apiToken (required) - * @param configureAutoEventData (optional) - * @return SendBirdAutoEventMessageSettings - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdAutoEventMessageSettings configureAutoEventMessages(String apiToken, ConfigureAutoEventData configureAutoEventData) throws ApiException { - return configureAutoEventMessagesWithHttpInfo(apiToken, configureAutoEventData).getData(); + + public class APIbanUsersInChannelsWithCustomChannelTypeRequest { + private String apiToken; + private String customType; + private BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData; + + private APIbanUsersInChannelsWithCustomChannelTypeRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIbanUsersInChannelsWithCustomChannelTypeRequest + */ + public APIbanUsersInChannelsWithCustomChannelTypeRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set banUsersInChannelsWithCustomChannelTypeData + * @param banUsersInChannelsWithCustomChannelTypeData (optional) + * @return APIbanUsersInChannelsWithCustomChannelTypeRequest + */ + public APIbanUsersInChannelsWithCustomChannelTypeRequest banUsersInChannelsWithCustomChannelTypeData(BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData) { + this.banUsersInChannelsWithCustomChannelTypeData = banUsersInChannelsWithCustomChannelTypeData; + return this; + } + + /** + * Execute banUsersInChannelsWithCustomChannelType request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute banUsersInChannelsWithCustomChannelType request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return banUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, banUsersInChannelsWithCustomChannelTypeData); + } } /** - * Configure auto event message settings - * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - * @param apiToken (required) - * @param configureAutoEventData (optional) - * @return ApiResponse<SendBirdAutoEventMessageSettings> + * Ban users in channels with a custom channel type + * ## Ban specified users in channels with a custom channel type at once. + * @param customType (required) + * @return banUsersInChannelsWithCustomChannelTypeRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse configureAutoEventMessagesWithHttpInfo(String apiToken, ConfigureAutoEventData configureAutoEventData) throws ApiException { + public APIbanUsersInChannelsWithCustomChannelTypeRequest banUsersInChannelsWithCustomChannelType(String customType) throws ApiException { + return new APIbanUsersInChannelsWithCustomChannelTypeRequest(customType); + } + +private ApiResponse configureAutoEventMessagesWithHttpInfo(String apiToken, ConfigureAutoEventData configureAutoEventData) throws ApiException { Object localVarPostBody = configureAutoEventData; // verify the required parameter 'apiToken' is set @@ -518,37 +700,79 @@ public ApiResponse configureAutoEventMessagesW localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete allowed IPs from a whitelist - * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - * @param apiToken (required) - * @param ipWhitelistAddresses (required) - * @return DeleteAllowedIpsFromWhitelistResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public DeleteAllowedIpsFromWhitelistResponse deleteAllowedIpsFromWhitelist(String apiToken, List ipWhitelistAddresses) throws ApiException { - return deleteAllowedIpsFromWhitelistWithHttpInfo(apiToken, ipWhitelistAddresses).getData(); + + public class APIconfigureAutoEventMessagesRequest { + private String apiToken; + private ConfigureAutoEventData configureAutoEventData; + + private APIconfigureAutoEventMessagesRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIconfigureAutoEventMessagesRequest + */ + public APIconfigureAutoEventMessagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set configureAutoEventData + * @param configureAutoEventData (optional) + * @return APIconfigureAutoEventMessagesRequest + */ + public APIconfigureAutoEventMessagesRequest configureAutoEventData(ConfigureAutoEventData configureAutoEventData) { + this.configureAutoEventData = configureAutoEventData; + return this; + } + + /** + * Execute configureAutoEventMessages request + * @return SendBirdAutoEventMessageSettings + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdAutoEventMessageSettings execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute configureAutoEventMessages request with HTTP info returned + * @return ApiResponse<SendBirdAutoEventMessageSettings> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return configureAutoEventMessagesWithHttpInfo(apiToken, configureAutoEventData); + } } /** - * Delete allowed IPs from a whitelist - * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - * @param apiToken (required) - * @param ipWhitelistAddresses (required) - * @return ApiResponse<DeleteAllowedIpsFromWhitelistResponse> + * Configure auto event message settings + * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- + * @return configureAutoEventMessagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteAllowedIpsFromWhitelistWithHttpInfo(String apiToken, List ipWhitelistAddresses) throws ApiException { + public APIconfigureAutoEventMessagesRequest configureAutoEventMessages() throws ApiException { + return new APIconfigureAutoEventMessagesRequest(); + } + +private ApiResponse deleteAllowedIpsFromWhitelistWithHttpInfo(String apiToken, List ipWhitelistAddresses) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -595,37 +819,79 @@ public ApiResponse deleteAllowedIpsFromWh localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete an APNs certificate - * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @return DeleteApnsCertificateByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public DeleteApnsCertificateByIdResponse deleteApnsCertificateById(String apiToken, String providerId) throws ApiException { - return deleteApnsCertificateByIdWithHttpInfo(apiToken, providerId).getData(); + + public class APIdeleteAllowedIpsFromWhitelistRequest { + private String apiToken; + private List ipWhitelistAddresses; + + private APIdeleteAllowedIpsFromWhitelistRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteAllowedIpsFromWhitelistRequest + */ + public APIdeleteAllowedIpsFromWhitelistRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ipWhitelistAddresses + * @param ipWhitelistAddresses (required) + * @return APIdeleteAllowedIpsFromWhitelistRequest + */ + public APIdeleteAllowedIpsFromWhitelistRequest ipWhitelistAddresses(List ipWhitelistAddresses) { + this.ipWhitelistAddresses = ipWhitelistAddresses; + return this; + } + + /** + * Execute deleteAllowedIpsFromWhitelist request + * @return DeleteAllowedIpsFromWhitelistResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public DeleteAllowedIpsFromWhitelistResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteAllowedIpsFromWhitelist request with HTTP info returned + * @return ApiResponse<DeleteAllowedIpsFromWhitelistResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteAllowedIpsFromWhitelistWithHttpInfo(apiToken, ipWhitelistAddresses); + } } /** - * Delete an APNs certificate - * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @return ApiResponse<DeleteApnsCertificateByIdResponse> + * Delete allowed IPs from a whitelist + * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist + * @return deleteAllowedIpsFromWhitelistRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteApnsCertificateByIdWithHttpInfo(String apiToken, String providerId) throws ApiException { + public APIdeleteAllowedIpsFromWhitelistRequest deleteAllowedIpsFromWhitelist() throws ApiException { + return new APIdeleteAllowedIpsFromWhitelistRequest(); + } + +private ApiResponse deleteApnsCertificateByIdWithHttpInfo(String apiToken, String providerId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -672,37 +938,71 @@ public ApiResponse deleteApnsCertificateByIdW localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Generate a secondary API token - * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - * @param apiToken (required) - * @param generateSecondaryApiTokenData (optional) - * @return GenerateSecondaryApiTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GenerateSecondaryApiTokenResponse generateSecondaryApiToken(String apiToken, GenerateSecondaryApiTokenData generateSecondaryApiTokenData) throws ApiException { - return generateSecondaryApiTokenWithHttpInfo(apiToken, generateSecondaryApiTokenData).getData(); + + public class APIdeleteApnsCertificateByIdRequest { + private String apiToken; + private String providerId; + + private APIdeleteApnsCertificateByIdRequest(String providerId) { + this.providerId = providerId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteApnsCertificateByIdRequest + */ + public APIdeleteApnsCertificateByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteApnsCertificateById request + * @return DeleteApnsCertificateByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public DeleteApnsCertificateByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteApnsCertificateById request with HTTP info returned + * @return ApiResponse<DeleteApnsCertificateByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteApnsCertificateByIdWithHttpInfo(apiToken, providerId); + } } /** - * Generate a secondary API token - * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - * @param apiToken (required) - * @param generateSecondaryApiTokenData (optional) - * @return ApiResponse<GenerateSecondaryApiTokenResponse> + * Delete an APNs certificate + * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- + * @param providerId (required) + * @return deleteApnsCertificateByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse generateSecondaryApiTokenWithHttpInfo(String apiToken, GenerateSecondaryApiTokenData generateSecondaryApiTokenData) throws ApiException { + public APIdeleteApnsCertificateByIdRequest deleteApnsCertificateById(String providerId) throws ApiException { + return new APIdeleteApnsCertificateByIdRequest(providerId); + } + +private ApiResponse generateSecondaryApiTokenWithHttpInfo(String apiToken, GenerateSecondaryApiTokenData generateSecondaryApiTokenData) throws ApiException { Object localVarPostBody = generateSecondaryApiTokenData; // verify the required parameter 'apiToken' is set @@ -743,35 +1043,79 @@ public ApiResponse generateSecondaryApiTokenW localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List auto event messages - * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - * @param apiToken (required) - * @return SendBirdAutoEventMessageSettings - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdAutoEventMessageSettings listAutoEventMessages(String apiToken) throws ApiException { - return listAutoEventMessagesWithHttpInfo(apiToken).getData(); + + public class APIgenerateSecondaryApiTokenRequest { + private String apiToken; + private GenerateSecondaryApiTokenData generateSecondaryApiTokenData; + + private APIgenerateSecondaryApiTokenRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgenerateSecondaryApiTokenRequest + */ + public APIgenerateSecondaryApiTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set generateSecondaryApiTokenData + * @param generateSecondaryApiTokenData (optional) + * @return APIgenerateSecondaryApiTokenRequest + */ + public APIgenerateSecondaryApiTokenRequest generateSecondaryApiTokenData(GenerateSecondaryApiTokenData generateSecondaryApiTokenData) { + this.generateSecondaryApiTokenData = generateSecondaryApiTokenData; + return this; + } + + /** + * Execute generateSecondaryApiToken request + * @return GenerateSecondaryApiTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GenerateSecondaryApiTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute generateSecondaryApiToken request with HTTP info returned + * @return ApiResponse<GenerateSecondaryApiTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return generateSecondaryApiTokenWithHttpInfo(apiToken, generateSecondaryApiTokenData); + } } /** - * List auto event messages - * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - * @param apiToken (required) - * @return ApiResponse<SendBirdAutoEventMessageSettings> + * Generate a secondary API token + * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token + * @return generateSecondaryApiTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listAutoEventMessagesWithHttpInfo(String apiToken) throws ApiException { + public APIgenerateSecondaryApiTokenRequest generateSecondaryApiToken() throws ApiException { + return new APIgenerateSecondaryApiTokenRequest(); + } + +private ApiResponse listAutoEventMessagesWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -812,41 +1156,68 @@ public ApiResponse listAutoEventMessagesWithHt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List banned users in channels with a custom channel type - * ## Retrieves a list of users banned from channels with the specified custom channel type. - * @param apiToken (required) - * @param customType (required) - * @param token (optional) - * @param limit (optional) - * @return CustomTypeListBannedUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public CustomTypeListBannedUsersResponse listBannedUsersInChannelsWithCustomChannelType(String apiToken, String customType, String token, Integer limit) throws ApiException { - return listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, token, limit).getData(); + + public class APIlistAutoEventMessagesRequest { + private String apiToken; + + private APIlistAutoEventMessagesRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistAutoEventMessagesRequest + */ + public APIlistAutoEventMessagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listAutoEventMessages request + * @return SendBirdAutoEventMessageSettings + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdAutoEventMessageSettings execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listAutoEventMessages request with HTTP info returned + * @return ApiResponse<SendBirdAutoEventMessageSettings> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listAutoEventMessagesWithHttpInfo(apiToken); + } } /** - * List banned users in channels with a custom channel type - * ## Retrieves a list of users banned from channels with the specified custom channel type. - * @param apiToken (required) - * @param customType (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<CustomTypeListBannedUsersResponse> + * List auto event messages + * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- + * @return listAutoEventMessagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, String token, Integer limit) throws ApiException { + public APIlistAutoEventMessagesRequest listAutoEventMessages() throws ApiException { + return new APIlistAutoEventMessagesRequest(); + } + +private ApiResponse listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -895,41 +1266,93 @@ public ApiResponse listBannedUsersInChannelsW localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List muted users in channels with a custom channel type - * ## Retrieves a list of the muted users in channels with a custom channel type. - * @param apiToken (required) - * @param customType (required) - * @param token (optional) - * @param limit (optional) - * @return ListMutedUsersInChannelsWithCustomChannelType200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListMutedUsersInChannelsWithCustomChannelType200Response listMutedUsersInChannelsWithCustomChannelType(String apiToken, String customType, String token, Integer limit) throws ApiException { - return listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, token, limit).getData(); + + public class APIlistBannedUsersInChannelsWithCustomChannelTypeRequest { + private String apiToken; + private String customType; + private String token; + private Integer limit; + + private APIlistBannedUsersInChannelsWithCustomChannelTypeRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistBannedUsersInChannelsWithCustomChannelTypeRequest + */ + public APIlistBannedUsersInChannelsWithCustomChannelTypeRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistBannedUsersInChannelsWithCustomChannelTypeRequest + */ + public APIlistBannedUsersInChannelsWithCustomChannelTypeRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistBannedUsersInChannelsWithCustomChannelTypeRequest + */ + public APIlistBannedUsersInChannelsWithCustomChannelTypeRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listBannedUsersInChannelsWithCustomChannelType request + * @return CustomTypeListBannedUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public CustomTypeListBannedUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listBannedUsersInChannelsWithCustomChannelType request with HTTP info returned + * @return ApiResponse<CustomTypeListBannedUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, token, limit); + } } /** - * List muted users in channels with a custom channel type - * ## Retrieves a list of the muted users in channels with a custom channel type. - * @param apiToken (required) + * List banned users in channels with a custom channel type + * ## Retrieves a list of users banned from channels with the specified custom channel type. * @param customType (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListMutedUsersInChannelsWithCustomChannelType200Response> + * @return listBannedUsersInChannelsWithCustomChannelTypeRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, String token, Integer limit) throws ApiException { + public APIlistBannedUsersInChannelsWithCustomChannelTypeRequest listBannedUsersInChannelsWithCustomChannelType(String customType) throws ApiException { + return new APIlistBannedUsersInChannelsWithCustomChannelTypeRequest(customType); + } + +private ApiResponse listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -978,37 +1401,93 @@ public ApiResponse lis localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List push configurations - * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - * @param apiToken (required) - * @param pushType (required) - * @return ListPushConfigurationsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListPushConfigurationsResponse listPushConfigurations(String apiToken, String pushType) throws ApiException { - return listPushConfigurationsWithHttpInfo(apiToken, pushType).getData(); + + public class APIlistMutedUsersInChannelsWithCustomChannelTypeRequest { + private String apiToken; + private String customType; + private String token; + private Integer limit; + + private APIlistMutedUsersInChannelsWithCustomChannelTypeRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistMutedUsersInChannelsWithCustomChannelTypeRequest + */ + public APIlistMutedUsersInChannelsWithCustomChannelTypeRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistMutedUsersInChannelsWithCustomChannelTypeRequest + */ + public APIlistMutedUsersInChannelsWithCustomChannelTypeRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistMutedUsersInChannelsWithCustomChannelTypeRequest + */ + public APIlistMutedUsersInChannelsWithCustomChannelTypeRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listMutedUsersInChannelsWithCustomChannelType request + * @return ListMutedUsersInChannelsWithCustomChannelType200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListMutedUsersInChannelsWithCustomChannelType200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listMutedUsersInChannelsWithCustomChannelType request with HTTP info returned + * @return ApiResponse<ListMutedUsersInChannelsWithCustomChannelType200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, token, limit); + } } /** - * List push configurations - * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - * @param apiToken (required) - * @param pushType (required) - * @return ApiResponse<ListPushConfigurationsResponse> + * List muted users in channels with a custom channel type + * ## Retrieves a list of the muted users in channels with a custom channel type. + * @param customType (required) + * @return listMutedUsersInChannelsWithCustomChannelTypeRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listPushConfigurationsWithHttpInfo(String apiToken, String pushType) throws ApiException { + public APIlistMutedUsersInChannelsWithCustomChannelTypeRequest listMutedUsersInChannelsWithCustomChannelType(String customType) throws ApiException { + return new APIlistMutedUsersInChannelsWithCustomChannelTypeRequest(customType); + } + +private ApiResponse listPushConfigurationsWithHttpInfo(String apiToken, String pushType) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1055,35 +1534,71 @@ public ApiResponse listPushConfigurationsWithHtt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List push notification content templates - * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - * @param apiToken (required) - * @return ListPushNotificationContentTemplatesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListPushNotificationContentTemplatesResponse listPushNotificationContentTemplates(String apiToken) throws ApiException { - return listPushNotificationContentTemplatesWithHttpInfo(apiToken).getData(); + + public class APIlistPushConfigurationsRequest { + private String apiToken; + private String pushType; + + private APIlistPushConfigurationsRequest(String pushType) { + this.pushType = pushType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistPushConfigurationsRequest + */ + public APIlistPushConfigurationsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listPushConfigurations request + * @return ListPushConfigurationsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListPushConfigurationsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listPushConfigurations request with HTTP info returned + * @return ApiResponse<ListPushConfigurationsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listPushConfigurationsWithHttpInfo(apiToken, pushType); + } } /** - * List push notification content templates - * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - * @param apiToken (required) - * @return ApiResponse<ListPushNotificationContentTemplatesResponse> + * List push configurations + * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- + * @param pushType (required) + * @return listPushConfigurationsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listPushNotificationContentTemplatesWithHttpInfo(String apiToken) throws ApiException { + public APIlistPushConfigurationsRequest listPushConfigurations(String pushType) throws ApiException { + return new APIlistPushConfigurationsRequest(pushType); + } + +private ApiResponse listPushNotificationContentTemplatesWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1124,35 +1639,68 @@ public ApiResponse listPushNotific localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List secondary API tokens - * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - * @param apiToken (required) - * @return ListSecondaryApiTokensResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListSecondaryApiTokensResponse listSecondaryApiTokens(String apiToken) throws ApiException { - return listSecondaryApiTokensWithHttpInfo(apiToken).getData(); + + public class APIlistPushNotificationContentTemplatesRequest { + private String apiToken; + + private APIlistPushNotificationContentTemplatesRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistPushNotificationContentTemplatesRequest + */ + public APIlistPushNotificationContentTemplatesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listPushNotificationContentTemplates request + * @return ListPushNotificationContentTemplatesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListPushNotificationContentTemplatesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listPushNotificationContentTemplates request with HTTP info returned + * @return ApiResponse<ListPushNotificationContentTemplatesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listPushNotificationContentTemplatesWithHttpInfo(apiToken); + } } /** - * List secondary API tokens - * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - * @param apiToken (required) - * @return ApiResponse<ListSecondaryApiTokensResponse> + * List push notification content templates + * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates + * @return listPushNotificationContentTemplatesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listSecondaryApiTokensWithHttpInfo(String apiToken) throws ApiException { + public APIlistPushNotificationContentTemplatesRequest listPushNotificationContentTemplates() throws ApiException { + return new APIlistPushNotificationContentTemplatesRequest(); + } + +private ApiResponse listSecondaryApiTokensWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1193,39 +1741,68 @@ public ApiResponse listSecondaryApiTokensWithHtt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mute users in channels with a custom channel type - * ## Mutes specified users in channels with a custom channel type at once. - * @param apiToken (required) - * @param customType (required) - * @param muteUsersInChannelsWithCustomChannelTypeData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object muteUsersInChannelsWithCustomChannelType(String apiToken, String customType, MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData) throws ApiException { - return muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, muteUsersInChannelsWithCustomChannelTypeData).getData(); + + public class APIlistSecondaryApiTokensRequest { + private String apiToken; + + private APIlistSecondaryApiTokensRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistSecondaryApiTokensRequest + */ + public APIlistSecondaryApiTokensRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listSecondaryApiTokens request + * @return ListSecondaryApiTokensResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListSecondaryApiTokensResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listSecondaryApiTokens request with HTTP info returned + * @return ApiResponse<ListSecondaryApiTokensResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listSecondaryApiTokensWithHttpInfo(apiToken); + } } /** - * Mute users in channels with a custom channel type - * ## Mutes specified users in channels with a custom channel type at once. - * @param apiToken (required) - * @param customType (required) - * @param muteUsersInChannelsWithCustomChannelTypeData (optional) - * @return ApiResponse<Object> + * List secondary API tokens + * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens + * @return listSecondaryApiTokensRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData) throws ApiException { + public APIlistSecondaryApiTokensRequest listSecondaryApiTokens() throws ApiException { + return new APIlistSecondaryApiTokensRequest(); + } + +private ApiResponse muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData) throws ApiException { Object localVarPostBody = muteUsersInChannelsWithCustomChannelTypeData; // verify the required parameter 'apiToken' is set @@ -1272,39 +1849,82 @@ public ApiResponse muteUsersInChannelsWithCustomChannelTypeWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Remove a push configuration - * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - * @param apiToken (required) - * @param pushType (required) - * @param providerId (required) - * @return RemovePushConfigurationByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RemovePushConfigurationByIdResponse removePushConfigurationById(String apiToken, String pushType, String providerId) throws ApiException { - return removePushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId).getData(); + + public class APImuteUsersInChannelsWithCustomChannelTypeRequest { + private String apiToken; + private String customType; + private MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData; + + private APImuteUsersInChannelsWithCustomChannelTypeRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APImuteUsersInChannelsWithCustomChannelTypeRequest + */ + public APImuteUsersInChannelsWithCustomChannelTypeRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set muteUsersInChannelsWithCustomChannelTypeData + * @param muteUsersInChannelsWithCustomChannelTypeData (optional) + * @return APImuteUsersInChannelsWithCustomChannelTypeRequest + */ + public APImuteUsersInChannelsWithCustomChannelTypeRequest muteUsersInChannelsWithCustomChannelTypeData(MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData) { + this.muteUsersInChannelsWithCustomChannelTypeData = muteUsersInChannelsWithCustomChannelTypeData; + return this; + } + + /** + * Execute muteUsersInChannelsWithCustomChannelType request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute muteUsersInChannelsWithCustomChannelType request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, muteUsersInChannelsWithCustomChannelTypeData); + } } /** - * Remove a push configuration - * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - * @param apiToken (required) - * @param pushType (required) - * @param providerId (required) - * @return ApiResponse<RemovePushConfigurationByIdResponse> + * Mute users in channels with a custom channel type + * ## Mutes specified users in channels with a custom channel type at once. + * @param customType (required) + * @return muteUsersInChannelsWithCustomChannelTypeRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse removePushConfigurationByIdWithHttpInfo(String apiToken, String pushType, String providerId) throws ApiException { + public APImuteUsersInChannelsWithCustomChannelTypeRequest muteUsersInChannelsWithCustomChannelType(String customType) throws ApiException { + return new APImuteUsersInChannelsWithCustomChannelTypeRequest(customType); + } + +private ApiResponse removePushConfigurationByIdWithHttpInfo(String apiToken, String pushType, String providerId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1357,35 +1977,74 @@ public ApiResponse removePushConfigurationB localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Retrieve an IP whitelist - * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - * @param apiToken (required) - * @return RetrieveIpWhitelistResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RetrieveIpWhitelistResponse retrieveIpWhitelist(String apiToken) throws ApiException { - return retrieveIpWhitelistWithHttpInfo(apiToken).getData(); + + public class APIremovePushConfigurationByIdRequest { + private String apiToken; + private String pushType; + private String providerId; + + private APIremovePushConfigurationByIdRequest(String pushType, String providerId) { + this.pushType = pushType; + this.providerId = providerId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIremovePushConfigurationByIdRequest + */ + public APIremovePushConfigurationByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute removePushConfigurationById request + * @return RemovePushConfigurationByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RemovePushConfigurationByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute removePushConfigurationById request with HTTP info returned + * @return ApiResponse<RemovePushConfigurationByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return removePushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId); + } } /** - * Retrieve an IP whitelist - * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - * @param apiToken (required) - * @return ApiResponse<RetrieveIpWhitelistResponse> + * Remove a push configuration + * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- + * @param pushType (required) + * @param providerId (required) + * @return removePushConfigurationByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse retrieveIpWhitelistWithHttpInfo(String apiToken) throws ApiException { + public APIremovePushConfigurationByIdRequest removePushConfigurationById(String pushType, String providerId) throws ApiException { + return new APIremovePushConfigurationByIdRequest(pushType, providerId); + } + +private ApiResponse retrieveIpWhitelistWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1426,37 +2085,68 @@ public ApiResponse retrieveIpWhitelistWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Revoke a secondary API token - * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - * @param apiToken (required) - * @param apiToken2 (required) - * @return RevokeSecondaryApiTokenByTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RevokeSecondaryApiTokenByTokenResponse revokeSecondaryApiTokenByToken(String apiToken, String apiToken2) throws ApiException { - return revokeSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2).getData(); + + public class APIretrieveIpWhitelistRequest { + private String apiToken; + + private APIretrieveIpWhitelistRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIretrieveIpWhitelistRequest + */ + public APIretrieveIpWhitelistRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute retrieveIpWhitelist request + * @return RetrieveIpWhitelistResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RetrieveIpWhitelistResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute retrieveIpWhitelist request with HTTP info returned + * @return ApiResponse<RetrieveIpWhitelistResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return retrieveIpWhitelistWithHttpInfo(apiToken); + } } /** - * Revoke a secondary API token - * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - * @param apiToken (required) - * @param apiToken2 (required) - * @return ApiResponse<RevokeSecondaryApiTokenByTokenResponse> + * Retrieve an IP whitelist + * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist + * @return retrieveIpWhitelistRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse revokeSecondaryApiTokenByTokenWithHttpInfo(String apiToken, String apiToken2) throws ApiException { + public APIretrieveIpWhitelistRequest retrieveIpWhitelist() throws ApiException { + return new APIretrieveIpWhitelistRequest(); + } + +private ApiResponse revokeSecondaryApiTokenByTokenWithHttpInfo(String apiToken, String apiToken2) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1503,39 +2193,71 @@ public ApiResponse revokeSecondaryApiTok localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Message moderation - * ## - * @param apiToken (required) - * @param customType (required) - * @param setDomainFilterData (optional) - * @return SendBirdChannelResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdChannelResponse setDomainFilter(String apiToken, String customType, SetDomainFilterData setDomainFilterData) throws ApiException { - return setDomainFilterWithHttpInfo(apiToken, customType, setDomainFilterData).getData(); + + public class APIrevokeSecondaryApiTokenByTokenRequest { + private String apiToken; + private String apiToken2; + + private APIrevokeSecondaryApiTokenByTokenRequest(String apiToken2) { + this.apiToken2 = apiToken2; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIrevokeSecondaryApiTokenByTokenRequest + */ + public APIrevokeSecondaryApiTokenByTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute revokeSecondaryApiTokenByToken request + * @return RevokeSecondaryApiTokenByTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RevokeSecondaryApiTokenByTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute revokeSecondaryApiTokenByToken request with HTTP info returned + * @return ApiResponse<RevokeSecondaryApiTokenByTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return revokeSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2); + } } /** - * Message moderation - * ## - * @param apiToken (required) - * @param customType (required) - * @param setDomainFilterData (optional) - * @return ApiResponse<SendBirdChannelResponse> + * Revoke a secondary API token + * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token + * @param apiToken2 (required) + * @return revokeSecondaryApiTokenByTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse setDomainFilterWithHttpInfo(String apiToken, String customType, SetDomainFilterData setDomainFilterData) throws ApiException { + public APIrevokeSecondaryApiTokenByTokenRequest revokeSecondaryApiTokenByToken(String apiToken2) throws ApiException { + return new APIrevokeSecondaryApiTokenByTokenRequest(apiToken2); + } + +private ApiResponse setDomainFilterWithHttpInfo(String apiToken, String customType, SetDomainFilterData setDomainFilterData) throws ApiException { Object localVarPostBody = setDomainFilterData; // verify the required parameter 'apiToken' is set @@ -1582,39 +2304,82 @@ public ApiResponse setDomainFilterWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unban users in channels with a custom channel type - * ## Unban specified users in channels with a custom channel type at once. - * @param apiToken (required) - * @param customType (required) - * @param userIds (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object unbanUsersInChannelsWithCustomChannelType(String apiToken, String customType, List userIds) throws ApiException { - return unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds).getData(); + + public class APIsetDomainFilterRequest { + private String apiToken; + private String customType; + private SetDomainFilterData setDomainFilterData; + + private APIsetDomainFilterRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIsetDomainFilterRequest + */ + public APIsetDomainFilterRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set setDomainFilterData + * @param setDomainFilterData (optional) + * @return APIsetDomainFilterRequest + */ + public APIsetDomainFilterRequest setDomainFilterData(SetDomainFilterData setDomainFilterData) { + this.setDomainFilterData = setDomainFilterData; + return this; + } + + /** + * Execute setDomainFilter request + * @return SendBirdChannelResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdChannelResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute setDomainFilter request with HTTP info returned + * @return ApiResponse<SendBirdChannelResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return setDomainFilterWithHttpInfo(apiToken, customType, setDomainFilterData); + } } /** - * Unban users in channels with a custom channel type - * ## Unban specified users in channels with a custom channel type at once. - * @param apiToken (required) + * Message moderation + * ## * @param customType (required) - * @param userIds (required) - * @return ApiResponse<Object> + * @return setDomainFilterRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, List userIds) throws ApiException { + public APIsetDomainFilterRequest setDomainFilter(String customType) throws ApiException { + return new APIsetDomainFilterRequest(customType); + } + +private ApiResponse unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, List userIds) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1667,39 +2432,82 @@ public ApiResponse unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unmute users in channels with a custom channel type - * ## Unmute specified users in channels with a custom channel type at once. - * @param apiToken (required) - * @param customType (required) - * @param userIds (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object unmuteUsersInChannelsWithCustomChannelType(String apiToken, String customType, List userIds) throws ApiException { - return unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds).getData(); + + public class APIunbanUsersInChannelsWithCustomChannelTypeRequest { + private String apiToken; + private String customType; + private List userIds; + + private APIunbanUsersInChannelsWithCustomChannelTypeRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIunbanUsersInChannelsWithCustomChannelTypeRequest + */ + public APIunbanUsersInChannelsWithCustomChannelTypeRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set userIds + * @param userIds (required) + * @return APIunbanUsersInChannelsWithCustomChannelTypeRequest + */ + public APIunbanUsersInChannelsWithCustomChannelTypeRequest userIds(List userIds) { + this.userIds = userIds; + return this; + } + + /** + * Execute unbanUsersInChannelsWithCustomChannelType request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute unbanUsersInChannelsWithCustomChannelType request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds); + } } /** - * Unmute users in channels with a custom channel type - * ## Unmute specified users in channels with a custom channel type at once. - * @param apiToken (required) + * Unban users in channels with a custom channel type + * ## Unban specified users in channels with a custom channel type at once. * @param customType (required) - * @param userIds (required) - * @return ApiResponse<Object> + * @return unbanUsersInChannelsWithCustomChannelTypeRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, List userIds) throws ApiException { + public APIunbanUsersInChannelsWithCustomChannelTypeRequest unbanUsersInChannelsWithCustomChannelType(String customType) throws ApiException { + return new APIunbanUsersInChannelsWithCustomChannelTypeRequest(customType); + } + +private ApiResponse unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(String apiToken, String customType, List userIds) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1752,39 +2560,82 @@ public ApiResponse unmuteUsersInChannelsWithCustomChannelTypeWithHttpInf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update an APNs push configuration - * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @param updateApnsPushConfigurationByIdData (optional) - * @return UpdateApnsPushConfigurationByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateApnsPushConfigurationByIdResponse updateApnsPushConfigurationById(String apiToken, String providerId, UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData) throws ApiException { - return updateApnsPushConfigurationByIdWithHttpInfo(apiToken, providerId, updateApnsPushConfigurationByIdData).getData(); + + public class APIunmuteUsersInChannelsWithCustomChannelTypeRequest { + private String apiToken; + private String customType; + private List userIds; + + private APIunmuteUsersInChannelsWithCustomChannelTypeRequest(String customType) { + this.customType = customType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIunmuteUsersInChannelsWithCustomChannelTypeRequest + */ + public APIunmuteUsersInChannelsWithCustomChannelTypeRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set userIds + * @param userIds (required) + * @return APIunmuteUsersInChannelsWithCustomChannelTypeRequest + */ + public APIunmuteUsersInChannelsWithCustomChannelTypeRequest userIds(List userIds) { + this.userIds = userIds; + return this; + } + + /** + * Execute unmuteUsersInChannelsWithCustomChannelType request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute unmuteUsersInChannelsWithCustomChannelType request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds); + } } /** - * Update an APNs push configuration - * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @param updateApnsPushConfigurationByIdData (optional) - * @return ApiResponse<UpdateApnsPushConfigurationByIdResponse> + * Unmute users in channels with a custom channel type + * ## Unmute specified users in channels with a custom channel type at once. + * @param customType (required) + * @return unmuteUsersInChannelsWithCustomChannelTypeRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateApnsPushConfigurationByIdWithHttpInfo(String apiToken, String providerId, UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData) throws ApiException { + public APIunmuteUsersInChannelsWithCustomChannelTypeRequest unmuteUsersInChannelsWithCustomChannelType(String customType) throws ApiException { + return new APIunmuteUsersInChannelsWithCustomChannelTypeRequest(customType); + } + +private ApiResponse updateApnsPushConfigurationByIdWithHttpInfo(String apiToken, String providerId, UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData) throws ApiException { Object localVarPostBody = updateApnsPushConfigurationByIdData; // verify the required parameter 'apiToken' is set @@ -1831,37 +2682,82 @@ public ApiResponse updateApnsPushConfig localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update default channel invitation preference - * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - * @param apiToken (required) - * @param updateDefaultChannelInvitationPreferenceData (optional) - * @return UpdateDefaultChannelInvitationPreferenceResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateDefaultChannelInvitationPreferenceResponse updateDefaultChannelInvitationPreference(String apiToken, UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData) throws ApiException { - return updateDefaultChannelInvitationPreferenceWithHttpInfo(apiToken, updateDefaultChannelInvitationPreferenceData).getData(); + + public class APIupdateApnsPushConfigurationByIdRequest { + private String apiToken; + private String providerId; + private UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData; + + private APIupdateApnsPushConfigurationByIdRequest(String providerId) { + this.providerId = providerId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateApnsPushConfigurationByIdRequest + */ + public APIupdateApnsPushConfigurationByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateApnsPushConfigurationByIdData + * @param updateApnsPushConfigurationByIdData (optional) + * @return APIupdateApnsPushConfigurationByIdRequest + */ + public APIupdateApnsPushConfigurationByIdRequest updateApnsPushConfigurationByIdData(UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData) { + this.updateApnsPushConfigurationByIdData = updateApnsPushConfigurationByIdData; + return this; + } + + /** + * Execute updateApnsPushConfigurationById request + * @return UpdateApnsPushConfigurationByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateApnsPushConfigurationByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateApnsPushConfigurationById request with HTTP info returned + * @return ApiResponse<UpdateApnsPushConfigurationByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateApnsPushConfigurationByIdWithHttpInfo(apiToken, providerId, updateApnsPushConfigurationByIdData); + } } /** - * Update default channel invitation preference - * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - * @param apiToken (required) - * @param updateDefaultChannelInvitationPreferenceData (optional) - * @return ApiResponse<UpdateDefaultChannelInvitationPreferenceResponse> + * Update an APNs push configuration + * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- + * @param providerId (required) + * @return updateApnsPushConfigurationByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateDefaultChannelInvitationPreferenceWithHttpInfo(String apiToken, UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData) throws ApiException { + public APIupdateApnsPushConfigurationByIdRequest updateApnsPushConfigurationById(String providerId) throws ApiException { + return new APIupdateApnsPushConfigurationByIdRequest(providerId); + } + +private ApiResponse updateDefaultChannelInvitationPreferenceWithHttpInfo(String apiToken, UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData) throws ApiException { Object localVarPostBody = updateDefaultChannelInvitationPreferenceData; // verify the required parameter 'apiToken' is set @@ -1902,39 +2798,79 @@ public ApiResponse updateDefau localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a FCM push configuration - * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @param updateFcmPushConfigurationByIdData (optional) - * @return UpdateFcmPushConfigurationByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateFcmPushConfigurationByIdResponse updateFcmPushConfigurationById(String apiToken, String providerId, UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData) throws ApiException { - return updateFcmPushConfigurationByIdWithHttpInfo(apiToken, providerId, updateFcmPushConfigurationByIdData).getData(); + + public class APIupdateDefaultChannelInvitationPreferenceRequest { + private String apiToken; + private UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData; + + private APIupdateDefaultChannelInvitationPreferenceRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateDefaultChannelInvitationPreferenceRequest + */ + public APIupdateDefaultChannelInvitationPreferenceRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateDefaultChannelInvitationPreferenceData + * @param updateDefaultChannelInvitationPreferenceData (optional) + * @return APIupdateDefaultChannelInvitationPreferenceRequest + */ + public APIupdateDefaultChannelInvitationPreferenceRequest updateDefaultChannelInvitationPreferenceData(UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData) { + this.updateDefaultChannelInvitationPreferenceData = updateDefaultChannelInvitationPreferenceData; + return this; + } + + /** + * Execute updateDefaultChannelInvitationPreference request + * @return UpdateDefaultChannelInvitationPreferenceResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateDefaultChannelInvitationPreferenceResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateDefaultChannelInvitationPreference request with HTTP info returned + * @return ApiResponse<UpdateDefaultChannelInvitationPreferenceResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateDefaultChannelInvitationPreferenceWithHttpInfo(apiToken, updateDefaultChannelInvitationPreferenceData); + } } /** - * Update a FCM push configuration - * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @param updateFcmPushConfigurationByIdData (optional) - * @return ApiResponse<UpdateFcmPushConfigurationByIdResponse> + * Update default channel invitation preference + * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference + * @return updateDefaultChannelInvitationPreferenceRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateFcmPushConfigurationByIdWithHttpInfo(String apiToken, String providerId, UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData) throws ApiException { + public APIupdateDefaultChannelInvitationPreferenceRequest updateDefaultChannelInvitationPreference() throws ApiException { + return new APIupdateDefaultChannelInvitationPreferenceRequest(); + } + +private ApiResponse updateFcmPushConfigurationByIdWithHttpInfo(String apiToken, String providerId, UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData) throws ApiException { Object localVarPostBody = updateFcmPushConfigurationByIdData; // verify the required parameter 'apiToken' is set @@ -1981,39 +2917,82 @@ public ApiResponse updateFcmPushConfigur localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update an HMS push configuration - * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - * @param apiToken (required) - * @param providerId (required) - * @param updateHmsPushConfigurationByIdData (optional) - * @return UpdateHmsPushConfigurationByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateHmsPushConfigurationByIdResponse updateHmsPushConfigurationById(String apiToken, String providerId, UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData) throws ApiException { - return updateHmsPushConfigurationByIdWithHttpInfo(apiToken, providerId, updateHmsPushConfigurationByIdData).getData(); + + public class APIupdateFcmPushConfigurationByIdRequest { + private String apiToken; + private String providerId; + private UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData; + + private APIupdateFcmPushConfigurationByIdRequest(String providerId) { + this.providerId = providerId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateFcmPushConfigurationByIdRequest + */ + public APIupdateFcmPushConfigurationByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateFcmPushConfigurationByIdData + * @param updateFcmPushConfigurationByIdData (optional) + * @return APIupdateFcmPushConfigurationByIdRequest + */ + public APIupdateFcmPushConfigurationByIdRequest updateFcmPushConfigurationByIdData(UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData) { + this.updateFcmPushConfigurationByIdData = updateFcmPushConfigurationByIdData; + return this; + } + + /** + * Execute updateFcmPushConfigurationById request + * @return UpdateFcmPushConfigurationByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateFcmPushConfigurationByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateFcmPushConfigurationById request with HTTP info returned + * @return ApiResponse<UpdateFcmPushConfigurationByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateFcmPushConfigurationByIdWithHttpInfo(apiToken, providerId, updateFcmPushConfigurationByIdData); + } } /** - * Update an HMS push configuration - * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - * @param apiToken (required) + * Update a FCM push configuration + * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- * @param providerId (required) - * @param updateHmsPushConfigurationByIdData (optional) - * @return ApiResponse<UpdateHmsPushConfigurationByIdResponse> + * @return updateFcmPushConfigurationByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateHmsPushConfigurationByIdWithHttpInfo(String apiToken, String providerId, UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData) throws ApiException { + public APIupdateFcmPushConfigurationByIdRequest updateFcmPushConfigurationById(String providerId) throws ApiException { + return new APIupdateFcmPushConfigurationByIdRequest(providerId); + } + +private ApiResponse updateHmsPushConfigurationByIdWithHttpInfo(String apiToken, String providerId, UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData) throws ApiException { Object localVarPostBody = updateHmsPushConfigurationByIdData; // verify the required parameter 'apiToken' is set @@ -2060,39 +3039,82 @@ public ApiResponse updateHmsPushConfigur localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a push notification content template - * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - * @param apiToken (required) - * @param templateName (required) - * @param updatePushNotificationContentTemplateData (optional) - * @return UpdatePushNotificationContentTemplateResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdatePushNotificationContentTemplateResponse updatePushNotificationContentTemplate(String apiToken, String templateName, UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData) throws ApiException { - return updatePushNotificationContentTemplateWithHttpInfo(apiToken, templateName, updatePushNotificationContentTemplateData).getData(); + + public class APIupdateHmsPushConfigurationByIdRequest { + private String apiToken; + private String providerId; + private UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData; + + private APIupdateHmsPushConfigurationByIdRequest(String providerId) { + this.providerId = providerId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateHmsPushConfigurationByIdRequest + */ + public APIupdateHmsPushConfigurationByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateHmsPushConfigurationByIdData + * @param updateHmsPushConfigurationByIdData (optional) + * @return APIupdateHmsPushConfigurationByIdRequest + */ + public APIupdateHmsPushConfigurationByIdRequest updateHmsPushConfigurationByIdData(UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData) { + this.updateHmsPushConfigurationByIdData = updateHmsPushConfigurationByIdData; + return this; + } + + /** + * Execute updateHmsPushConfigurationById request + * @return UpdateHmsPushConfigurationByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateHmsPushConfigurationByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateHmsPushConfigurationById request with HTTP info returned + * @return ApiResponse<UpdateHmsPushConfigurationByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateHmsPushConfigurationByIdWithHttpInfo(apiToken, providerId, updateHmsPushConfigurationByIdData); + } } /** - * Update a push notification content template - * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - * @param apiToken (required) - * @param templateName (required) - * @param updatePushNotificationContentTemplateData (optional) - * @return ApiResponse<UpdatePushNotificationContentTemplateResponse> + * Update an HMS push configuration + * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- + * @param providerId (required) + * @return updateHmsPushConfigurationByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updatePushNotificationContentTemplateWithHttpInfo(String apiToken, String templateName, UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData) throws ApiException { + public APIupdateHmsPushConfigurationByIdRequest updateHmsPushConfigurationById(String providerId) throws ApiException { + return new APIupdateHmsPushConfigurationByIdRequest(providerId); + } + +private ApiResponse updatePushNotificationContentTemplateWithHttpInfo(String apiToken, String templateName, UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData) throws ApiException { Object localVarPostBody = updatePushNotificationContentTemplateData; // verify the required parameter 'apiToken' is set @@ -2139,35 +3161,82 @@ public ApiResponse updatePushNoti localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View default channel invitation preference - * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - * @param apiToken (required) - * @return ViewDefaultChannelInvitationPreferenceResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewDefaultChannelInvitationPreferenceResponse viewDefaultChannelInvitationPreference(String apiToken) throws ApiException { - return viewDefaultChannelInvitationPreferenceWithHttpInfo(apiToken).getData(); + + public class APIupdatePushNotificationContentTemplateRequest { + private String apiToken; + private String templateName; + private UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData; + + private APIupdatePushNotificationContentTemplateRequest(String templateName) { + this.templateName = templateName; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdatePushNotificationContentTemplateRequest + */ + public APIupdatePushNotificationContentTemplateRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updatePushNotificationContentTemplateData + * @param updatePushNotificationContentTemplateData (optional) + * @return APIupdatePushNotificationContentTemplateRequest + */ + public APIupdatePushNotificationContentTemplateRequest updatePushNotificationContentTemplateData(UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData) { + this.updatePushNotificationContentTemplateData = updatePushNotificationContentTemplateData; + return this; + } + + /** + * Execute updatePushNotificationContentTemplate request + * @return UpdatePushNotificationContentTemplateResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdatePushNotificationContentTemplateResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updatePushNotificationContentTemplate request with HTTP info returned + * @return ApiResponse<UpdatePushNotificationContentTemplateResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updatePushNotificationContentTemplateWithHttpInfo(apiToken, templateName, updatePushNotificationContentTemplateData); + } } /** - * View default channel invitation preference - * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - * @param apiToken (required) - * @return ApiResponse<ViewDefaultChannelInvitationPreferenceResponse> + * Update a push notification content template + * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- + * @param templateName (required) + * @return updatePushNotificationContentTemplateRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewDefaultChannelInvitationPreferenceWithHttpInfo(String apiToken) throws ApiException { + public APIupdatePushNotificationContentTemplateRequest updatePushNotificationContentTemplate(String templateName) throws ApiException { + return new APIupdatePushNotificationContentTemplateRequest(templateName); + } + +private ApiResponse viewDefaultChannelInvitationPreferenceWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2208,39 +3277,68 @@ public ApiResponse viewDefaultCh localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a push configuration - * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - * @param apiToken (required) - * @param pushType (required) - * @param providerId (required) - * @return ViewPushConfigurationByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewPushConfigurationByIdResponse viewPushConfigurationById(String apiToken, String pushType, String providerId) throws ApiException { - return viewPushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId).getData(); + + public class APIviewDefaultChannelInvitationPreferenceRequest { + private String apiToken; + + private APIviewDefaultChannelInvitationPreferenceRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewDefaultChannelInvitationPreferenceRequest + */ + public APIviewDefaultChannelInvitationPreferenceRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewDefaultChannelInvitationPreference request + * @return ViewDefaultChannelInvitationPreferenceResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewDefaultChannelInvitationPreferenceResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewDefaultChannelInvitationPreference request with HTTP info returned + * @return ApiResponse<ViewDefaultChannelInvitationPreferenceResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewDefaultChannelInvitationPreferenceWithHttpInfo(apiToken); + } } /** - * View a push configuration - * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - * @param apiToken (required) - * @param pushType (required) - * @param providerId (required) - * @return ApiResponse<ViewPushConfigurationByIdResponse> + * View default channel invitation preference + * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference + * @return viewDefaultChannelInvitationPreferenceRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewPushConfigurationByIdWithHttpInfo(String apiToken, String pushType, String providerId) throws ApiException { + public APIviewDefaultChannelInvitationPreferenceRequest viewDefaultChannelInvitationPreference() throws ApiException { + return new APIviewDefaultChannelInvitationPreferenceRequest(); + } + +private ApiResponse viewPushConfigurationByIdWithHttpInfo(String apiToken, String pushType, String providerId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2293,37 +3391,74 @@ public ApiResponse viewPushConfigurationByIdW localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a push notification content template - * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - * @param apiToken (required) - * @param templateName (required) - * @return ViewPushNotificationContentTemplateResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewPushNotificationContentTemplateResponse viewPushNotificationContentTemplate(String apiToken, String templateName) throws ApiException { - return viewPushNotificationContentTemplateWithHttpInfo(apiToken, templateName).getData(); + + public class APIviewPushConfigurationByIdRequest { + private String apiToken; + private String pushType; + private String providerId; + + private APIviewPushConfigurationByIdRequest(String pushType, String providerId) { + this.pushType = pushType; + this.providerId = providerId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewPushConfigurationByIdRequest + */ + public APIviewPushConfigurationByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewPushConfigurationById request + * @return ViewPushConfigurationByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewPushConfigurationByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewPushConfigurationById request with HTTP info returned + * @return ApiResponse<ViewPushConfigurationByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewPushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId); + } } /** - * View a push notification content template - * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - * @param apiToken (required) - * @param templateName (required) - * @return ApiResponse<ViewPushNotificationContentTemplateResponse> + * View a push configuration + * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- + * @param pushType (required) + * @param providerId (required) + * @return viewPushConfigurationByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewPushNotificationContentTemplateWithHttpInfo(String apiToken, String templateName) throws ApiException { + public APIviewPushConfigurationByIdRequest viewPushConfigurationById(String pushType, String providerId) throws ApiException { + return new APIviewPushConfigurationByIdRequest(pushType, providerId); + } + +private ApiResponse viewPushNotificationContentTemplateWithHttpInfo(String apiToken, String templateName) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2370,37 +3505,71 @@ public ApiResponse viewPushNotifica localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a secondary API token - * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - * @param apiToken (required) - * @param apiToken2 (required) - * @return ViewSecondaryApiTokenByTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewSecondaryApiTokenByTokenResponse viewSecondaryApiTokenByToken(String apiToken, String apiToken2) throws ApiException { - return viewSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2).getData(); + + public class APIviewPushNotificationContentTemplateRequest { + private String apiToken; + private String templateName; + + private APIviewPushNotificationContentTemplateRequest(String templateName) { + this.templateName = templateName; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewPushNotificationContentTemplateRequest + */ + public APIviewPushNotificationContentTemplateRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewPushNotificationContentTemplate request + * @return ViewPushNotificationContentTemplateResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewPushNotificationContentTemplateResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewPushNotificationContentTemplate request with HTTP info returned + * @return ApiResponse<ViewPushNotificationContentTemplateResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewPushNotificationContentTemplateWithHttpInfo(apiToken, templateName); + } } /** - * View a secondary API token - * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - * @param apiToken (required) - * @param apiToken2 (required) - * @return ApiResponse<ViewSecondaryApiTokenByTokenResponse> + * View a push notification content template + * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- + * @param templateName (required) + * @return viewPushNotificationContentTemplateRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewSecondaryApiTokenByTokenWithHttpInfo(String apiToken, String apiToken2) throws ApiException { + public APIviewPushNotificationContentTemplateRequest viewPushNotificationContentTemplate(String templateName) throws ApiException { + return new APIviewPushNotificationContentTemplateRequest(templateName); + } + +private ApiResponse viewSecondaryApiTokenByTokenWithHttpInfo(String apiToken, String apiToken2) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2447,4 +3616,67 @@ public ApiResponse viewSecondaryApiTokenBy localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewSecondaryApiTokenByTokenRequest { + private String apiToken; + private String apiToken2; + + private APIviewSecondaryApiTokenByTokenRequest(String apiToken2) { + this.apiToken2 = apiToken2; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewSecondaryApiTokenByTokenRequest + */ + public APIviewSecondaryApiTokenByTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewSecondaryApiTokenByToken request + * @return ViewSecondaryApiTokenByTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewSecondaryApiTokenByTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewSecondaryApiTokenByToken request with HTTP info returned + * @return ApiResponse<ViewSecondaryApiTokenByTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2); + } + } + + /** + * View a secondary API token + * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token + * @param apiToken2 (required) + * @return viewSecondaryApiTokenByTokenRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewSecondaryApiTokenByTokenRequest viewSecondaryApiTokenByToken(String apiToken2) throws ApiException { + return new APIviewSecondaryApiTokenByTokenRequest(apiToken2); + } } diff --git a/src/main/java/org/sendbird/client/api/BotApi.java b/src/main/java/org/sendbird/client/api/BotApi.java index 9258e11b..1250e3d2 100644 --- a/src/main/java/org/sendbird/client/api/BotApi.java +++ b/src/main/java/org/sendbird/client/api/BotApi.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class BotApi { private ApiClient apiClient; @@ -54,37 +54,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Create a bot - * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot - * @param apiToken (required) - * @param createBotData (optional) - * @return CreateBotResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public CreateBotResponse createBot(String apiToken, CreateBotData createBotData) throws ApiException { - return createBotWithHttpInfo(apiToken, createBotData).getData(); - } - /** - * Create a bot - * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot - * @param apiToken (required) - * @param createBotData (optional) - * @return ApiResponse<CreateBotResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse createBotWithHttpInfo(String apiToken, CreateBotData createBotData) throws ApiException { +private ApiResponse createBotWithHttpInfo(String apiToken, CreateBotData createBotData) throws ApiException { Object localVarPostBody = createBotData; // verify the required parameter 'apiToken' is set @@ -125,37 +96,79 @@ public ApiResponse createBotWithHttpInfo(String apiToken, Cre localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete a bot - * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object deleteBotById(String apiToken, String botUserid) throws ApiException { - return deleteBotByIdWithHttpInfo(apiToken, botUserid).getData(); + + public class APIcreateBotRequest { + private String apiToken; + private CreateBotData createBotData; + + private APIcreateBotRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcreateBotRequest + */ + public APIcreateBotRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set createBotData + * @param createBotData (optional) + * @return APIcreateBotRequest + */ + public APIcreateBotRequest createBotData(CreateBotData createBotData) { + this.createBotData = createBotData; + return this; + } + + /** + * Execute createBot request + * @return CreateBotResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public CreateBotResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute createBot request with HTTP info returned + * @return ApiResponse<CreateBotResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createBotWithHttpInfo(apiToken, createBotData); + } } /** - * Delete a bot - * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @return ApiResponse<Object> + * Create a bot + * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot + * @return createBotRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteBotByIdWithHttpInfo(String apiToken, String botUserid) throws ApiException { + public APIcreateBotRequest createBot() throws ApiException { + return new APIcreateBotRequest(); + } + +private ApiResponse deleteBotByIdWithHttpInfo(String apiToken, String botUserid) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -202,39 +215,71 @@ public ApiResponse deleteBotByIdWithHttpInfo(String apiToken, String bot localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Join channels - * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @param joinChannelsData (optional) - * @return JoinChannelsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public JoinChannelsResponse joinChannels(String apiToken, String botUserid, JoinChannelsData joinChannelsData) throws ApiException { - return joinChannelsWithHttpInfo(apiToken, botUserid, joinChannelsData).getData(); + + public class APIdeleteBotByIdRequest { + private String apiToken; + private String botUserid; + + private APIdeleteBotByIdRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteBotByIdRequest + */ + public APIdeleteBotByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteBotById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteBotById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteBotByIdWithHttpInfo(apiToken, botUserid); + } } /** - * Join channels - * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- - * @param apiToken (required) + * Delete a bot + * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- * @param botUserid (required) - * @param joinChannelsData (optional) - * @return ApiResponse<JoinChannelsResponse> + * @return deleteBotByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse joinChannelsWithHttpInfo(String apiToken, String botUserid, JoinChannelsData joinChannelsData) throws ApiException { + public APIdeleteBotByIdRequest deleteBotById(String botUserid) throws ApiException { + return new APIdeleteBotByIdRequest(botUserid); + } + +private ApiResponse joinChannelsWithHttpInfo(String apiToken, String botUserid, JoinChannelsData joinChannelsData) throws ApiException { Object localVarPostBody = joinChannelsData; // verify the required parameter 'apiToken' is set @@ -281,38 +326,82 @@ public ApiResponse joinChannelsWithHttpInfo(String apiToke localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Leave channels - When leaving all channels - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @param channelUrl (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void leaveChannels(String apiToken, String botUserid, String channelUrl) throws ApiException { - leaveChannelsWithHttpInfo(apiToken, botUserid, channelUrl); + + public class APIjoinChannelsRequest { + private String apiToken; + private String botUserid; + private JoinChannelsData joinChannelsData; + + private APIjoinChannelsRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIjoinChannelsRequest + */ + public APIjoinChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set joinChannelsData + * @param joinChannelsData (optional) + * @return APIjoinChannelsRequest + */ + public APIjoinChannelsRequest joinChannelsData(JoinChannelsData joinChannelsData) { + this.joinChannelsData = joinChannelsData; + return this; + } + + /** + * Execute joinChannels request + * @return JoinChannelsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public JoinChannelsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute joinChannels request with HTTP info returned + * @return ApiResponse<JoinChannelsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return joinChannelsWithHttpInfo(apiToken, botUserid, joinChannelsData); + } } /** - * Leave channels - When leaving all channels - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param apiToken (required) + * Join channels + * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- * @param botUserid (required) - * @param channelUrl (optional) - * @return ApiResponse<Void> + * @return joinChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse leaveChannelsWithHttpInfo(String apiToken, String botUserid, String channelUrl) throws ApiException { + public APIjoinChannelsRequest joinChannels(String botUserid) throws ApiException { + return new APIjoinChannelsRequest(botUserid); + } + +private ApiResponse leaveChannelsWithHttpInfo(String apiToken, String botUserid, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -358,39 +447,82 @@ public ApiResponse leaveChannelsWithHttpInfo(String apiToken, String botUs localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Leave channels - When leaving a channel by its channel URL - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @param channelUrl (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object leaveChannelsByUrl(String apiToken, String botUserid, String channelUrl) throws ApiException { - return leaveChannelsByUrlWithHttpInfo(apiToken, botUserid, channelUrl).getData(); + + public class APIleaveChannelsRequest { + private String apiToken; + private String botUserid; + private String channelUrl; + + private APIleaveChannelsRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIleaveChannelsRequest + */ + public APIleaveChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set channelUrl + * @param channelUrl (optional) + * @return APIleaveChannelsRequest + */ + public APIleaveChannelsRequest channelUrl(String channelUrl) { + this.channelUrl = channelUrl; + return this; + } + + /** + * Execute leaveChannels request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute leaveChannels request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return leaveChannelsWithHttpInfo(apiToken, botUserid, channelUrl); + } } /** - * Leave channels - When leaving a channel by its channel URL + * Leave channels - When leaving all channels * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param apiToken (required) * @param botUserid (required) - * @param channelUrl (required) - * @return ApiResponse<Object> + * @return leaveChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse leaveChannelsByUrlWithHttpInfo(String apiToken, String botUserid, String channelUrl) throws ApiException { + public APIleaveChannelsRequest leaveChannels(String botUserid) throws ApiException { + return new APIleaveChannelsRequest(botUserid); + } + +private ApiResponse leaveChannelsByUrlWithHttpInfo(String apiToken, String botUserid, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -443,39 +575,74 @@ public ApiResponse leaveChannelsByUrlWithHttpInfo(String apiToken, Strin localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List bots - * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @return ListBotsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListBotsResponse listBots(String apiToken, String token, Integer limit) throws ApiException { - return listBotsWithHttpInfo(apiToken, token, limit).getData(); + + public class APIleaveChannelsByUrlRequest { + private String apiToken; + private String botUserid; + private String channelUrl; + + private APIleaveChannelsByUrlRequest(String botUserid, String channelUrl) { + this.botUserid = botUserid; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIleaveChannelsByUrlRequest + */ + public APIleaveChannelsByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute leaveChannelsByUrl request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute leaveChannelsByUrl request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return leaveChannelsByUrlWithHttpInfo(apiToken, botUserid, channelUrl); + } } /** - * List bots - * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListBotsResponse> + * Leave channels - When leaving a channel by its channel URL + * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- + * @param botUserid (required) + * @param channelUrl (required) + * @return leaveChannelsByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listBotsWithHttpInfo(String apiToken, String token, Integer limit) throws ApiException { + public APIleaveChannelsByUrlRequest leaveChannelsByUrl(String botUserid, String channelUrl) throws ApiException { + return new APIleaveChannelsByUrlRequest(botUserid, channelUrl); + } + +private ApiResponse listBotsWithHttpInfo(String apiToken, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -518,39 +685,90 @@ public ApiResponse listBotsWithHttpInfo(String apiToken, Strin localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Send a bot's message - * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - * @param apiToken (required) - * @param botUserid (required) - * @param sendBotSMessageData (optional) - * @return SendBirdMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdMessageResponse sendBotsMessage(String apiToken, String botUserid, SendBotSMessageData sendBotSMessageData) throws ApiException { - return sendBotsMessageWithHttpInfo(apiToken, botUserid, sendBotSMessageData).getData(); + + public class APIlistBotsRequest { + private String apiToken; + private String token; + private Integer limit; + + private APIlistBotsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistBotsRequest + */ + public APIlistBotsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistBotsRequest + */ + public APIlistBotsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistBotsRequest + */ + public APIlistBotsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listBots request + * @return ListBotsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListBotsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listBots request with HTTP info returned + * @return ApiResponse<ListBotsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listBotsWithHttpInfo(apiToken, token, limit); + } } /** - * Send a bot's message - * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - * @param apiToken (required) - * @param botUserid (required) - * @param sendBotSMessageData (optional) - * @return ApiResponse<SendBirdMessageResponse> + * List bots + * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- + * @return listBotsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse sendBotsMessageWithHttpInfo(String apiToken, String botUserid, SendBotSMessageData sendBotSMessageData) throws ApiException { + public APIlistBotsRequest listBots() throws ApiException { + return new APIlistBotsRequest(); + } + +private ApiResponse sendBotsMessageWithHttpInfo(String apiToken, String botUserid, SendBotSMessageData sendBotSMessageData) throws ApiException { Object localVarPostBody = sendBotSMessageData; // verify the required parameter 'apiToken' is set @@ -597,39 +815,82 @@ public ApiResponse sendBotsMessageWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a bot - * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @param updateBotByIdData (optional) - * @return UpdateBotByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateBotByIdResponse updateBotById(String apiToken, String botUserid, UpdateBotByIdData updateBotByIdData) throws ApiException { - return updateBotByIdWithHttpInfo(apiToken, botUserid, updateBotByIdData).getData(); + + public class APIsendBotsMessageRequest { + private String apiToken; + private String botUserid; + private SendBotSMessageData sendBotSMessageData; + + private APIsendBotsMessageRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIsendBotsMessageRequest + */ + public APIsendBotsMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set sendBotSMessageData + * @param sendBotSMessageData (optional) + * @return APIsendBotsMessageRequest + */ + public APIsendBotsMessageRequest sendBotSMessageData(SendBotSMessageData sendBotSMessageData) { + this.sendBotSMessageData = sendBotSMessageData; + return this; + } + + /** + * Execute sendBotsMessage request + * @return SendBirdMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute sendBotsMessage request with HTTP info returned + * @return ApiResponse<SendBirdMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return sendBotsMessageWithHttpInfo(apiToken, botUserid, sendBotSMessageData); + } } /** - * Update a bot - * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- - * @param apiToken (required) + * Send a bot's message + * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. * @param botUserid (required) - * @param updateBotByIdData (optional) - * @return ApiResponse<UpdateBotByIdResponse> + * @return sendBotsMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateBotByIdWithHttpInfo(String apiToken, String botUserid, UpdateBotByIdData updateBotByIdData) throws ApiException { + public APIsendBotsMessageRequest sendBotsMessage(String botUserid) throws ApiException { + return new APIsendBotsMessageRequest(botUserid); + } + +private ApiResponse updateBotByIdWithHttpInfo(String apiToken, String botUserid, UpdateBotByIdData updateBotByIdData) throws ApiException { Object localVarPostBody = updateBotByIdData; // verify the required parameter 'apiToken' is set @@ -676,37 +937,82 @@ public ApiResponse updateBotByIdWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a bot - * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - * @param apiToken (required) - * @param botUserid (required) - * @return ViewBotByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewBotByIdResponse viewBotById(String apiToken, String botUserid) throws ApiException { - return viewBotByIdWithHttpInfo(apiToken, botUserid).getData(); + + public class APIupdateBotByIdRequest { + private String apiToken; + private String botUserid; + private UpdateBotByIdData updateBotByIdData; + + private APIupdateBotByIdRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateBotByIdRequest + */ + public APIupdateBotByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateBotByIdData + * @param updateBotByIdData (optional) + * @return APIupdateBotByIdRequest + */ + public APIupdateBotByIdRequest updateBotByIdData(UpdateBotByIdData updateBotByIdData) { + this.updateBotByIdData = updateBotByIdData; + return this; + } + + /** + * Execute updateBotById request + * @return UpdateBotByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateBotByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateBotById request with HTTP info returned + * @return ApiResponse<UpdateBotByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateBotByIdWithHttpInfo(apiToken, botUserid, updateBotByIdData); + } } /** - * View a bot - * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - * @param apiToken (required) + * Update a bot + * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- * @param botUserid (required) - * @return ApiResponse<ViewBotByIdResponse> + * @return updateBotByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewBotByIdWithHttpInfo(String apiToken, String botUserid) throws ApiException { + public APIupdateBotByIdRequest updateBotById(String botUserid) throws ApiException { + return new APIupdateBotByIdRequest(botUserid); + } + +private ApiResponse viewBotByIdWithHttpInfo(String apiToken, String botUserid) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -753,4 +1059,67 @@ public ApiResponse viewBotByIdWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewBotByIdRequest { + private String apiToken; + private String botUserid; + + private APIviewBotByIdRequest(String botUserid) { + this.botUserid = botUserid; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewBotByIdRequest + */ + public APIviewBotByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewBotById request + * @return ViewBotByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewBotByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewBotById request with HTTP info returned + * @return ApiResponse<ViewBotByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewBotByIdWithHttpInfo(apiToken, botUserid); + } + } + + /** + * View a bot + * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- + * @param botUserid (required) + * @return viewBotByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewBotByIdRequest viewBotById(String botUserid) throws ApiException { + return new APIviewBotByIdRequest(botUserid); + } } diff --git a/src/main/java/org/sendbird/client/api/DataExportApi.java b/src/main/java/org/sendbird/client/api/DataExportApi.java index 4f5afa85..5e8f78d1 100644 --- a/src/main/java/org/sendbird/client/api/DataExportApi.java +++ b/src/main/java/org/sendbird/client/api/DataExportApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class DataExportApi { private ApiClient apiClient; @@ -48,41 +48,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * List data exports by message, channel, or user - * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - * @param apiToken (required) - * @param dataType (required) - * @param token (optional) - * @param limit (optional) - * @return ListDataExportsByMessageChannelOrUserResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListDataExportsByMessageChannelOrUserResponse listDataExportsByMessageChannelOrUser(String apiToken, String dataType, String token, Integer limit) throws ApiException { - return listDataExportsByMessageChannelOrUserWithHttpInfo(apiToken, dataType, token, limit).getData(); - } - /** - * List data exports by message, channel, or user - * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - * @param apiToken (required) - * @param dataType (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListDataExportsByMessageChannelOrUserResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse listDataExportsByMessageChannelOrUserWithHttpInfo(String apiToken, String dataType, String token, Integer limit) throws ApiException { +private ApiResponse listDataExportsByMessageChannelOrUserWithHttpInfo(String apiToken, String dataType, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -131,39 +98,93 @@ public ApiResponse listDataExport localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Register and schedule a data export - * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - * @param apiToken (required) - * @param dataType (required) - * @param registerAndScheduleDataExportData (optional) - * @return RegisterAndScheduleDataExportResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RegisterAndScheduleDataExportResponse registerAndScheduleDataExport(String apiToken, String dataType, RegisterAndScheduleDataExportData registerAndScheduleDataExportData) throws ApiException { - return registerAndScheduleDataExportWithHttpInfo(apiToken, dataType, registerAndScheduleDataExportData).getData(); + + public class APIlistDataExportsByMessageChannelOrUserRequest { + private String apiToken; + private String dataType; + private String token; + private Integer limit; + + private APIlistDataExportsByMessageChannelOrUserRequest(String dataType) { + this.dataType = dataType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistDataExportsByMessageChannelOrUserRequest + */ + public APIlistDataExportsByMessageChannelOrUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistDataExportsByMessageChannelOrUserRequest + */ + public APIlistDataExportsByMessageChannelOrUserRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistDataExportsByMessageChannelOrUserRequest + */ + public APIlistDataExportsByMessageChannelOrUserRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listDataExportsByMessageChannelOrUser request + * @return ListDataExportsByMessageChannelOrUserResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListDataExportsByMessageChannelOrUserResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listDataExportsByMessageChannelOrUser request with HTTP info returned + * @return ApiResponse<ListDataExportsByMessageChannelOrUserResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDataExportsByMessageChannelOrUserWithHttpInfo(apiToken, dataType, token, limit); + } } /** - * Register and schedule a data export - * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - * @param apiToken (required) + * List data exports by message, channel, or user + * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. * @param dataType (required) - * @param registerAndScheduleDataExportData (optional) - * @return ApiResponse<RegisterAndScheduleDataExportResponse> + * @return listDataExportsByMessageChannelOrUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse registerAndScheduleDataExportWithHttpInfo(String apiToken, String dataType, RegisterAndScheduleDataExportData registerAndScheduleDataExportData) throws ApiException { + public APIlistDataExportsByMessageChannelOrUserRequest listDataExportsByMessageChannelOrUser(String dataType) throws ApiException { + return new APIlistDataExportsByMessageChannelOrUserRequest(dataType); + } + +private ApiResponse registerAndScheduleDataExportWithHttpInfo(String apiToken, String dataType, RegisterAndScheduleDataExportData registerAndScheduleDataExportData) throws ApiException { Object localVarPostBody = registerAndScheduleDataExportData; // verify the required parameter 'apiToken' is set @@ -210,39 +231,82 @@ public ApiResponse registerAndScheduleDat localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a data export - * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - * @param apiToken (required) - * @param dataType (required) - * @param requestId (required) - * @return ViewDataExportByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewDataExportByIdResponse viewDataExportById(String apiToken, String dataType, String requestId) throws ApiException { - return viewDataExportByIdWithHttpInfo(apiToken, dataType, requestId).getData(); + + public class APIregisterAndScheduleDataExportRequest { + private String apiToken; + private String dataType; + private RegisterAndScheduleDataExportData registerAndScheduleDataExportData; + + private APIregisterAndScheduleDataExportRequest(String dataType) { + this.dataType = dataType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIregisterAndScheduleDataExportRequest + */ + public APIregisterAndScheduleDataExportRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set registerAndScheduleDataExportData + * @param registerAndScheduleDataExportData (optional) + * @return APIregisterAndScheduleDataExportRequest + */ + public APIregisterAndScheduleDataExportRequest registerAndScheduleDataExportData(RegisterAndScheduleDataExportData registerAndScheduleDataExportData) { + this.registerAndScheduleDataExportData = registerAndScheduleDataExportData; + return this; + } + + /** + * Execute registerAndScheduleDataExport request + * @return RegisterAndScheduleDataExportResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RegisterAndScheduleDataExportResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute registerAndScheduleDataExport request with HTTP info returned + * @return ApiResponse<RegisterAndScheduleDataExportResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return registerAndScheduleDataExportWithHttpInfo(apiToken, dataType, registerAndScheduleDataExportData); + } } /** - * View a data export - * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - * @param apiToken (required) + * Register and schedule a data export + * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- * @param dataType (required) - * @param requestId (required) - * @return ApiResponse<ViewDataExportByIdResponse> + * @return registerAndScheduleDataExportRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewDataExportByIdWithHttpInfo(String apiToken, String dataType, String requestId) throws ApiException { + public APIregisterAndScheduleDataExportRequest registerAndScheduleDataExport(String dataType) throws ApiException { + return new APIregisterAndScheduleDataExportRequest(dataType); + } + +private ApiResponse viewDataExportByIdWithHttpInfo(String apiToken, String dataType, String requestId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -295,4 +359,70 @@ public ApiResponse viewDataExportByIdWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewDataExportByIdRequest { + private String apiToken; + private String dataType; + private String requestId; + + private APIviewDataExportByIdRequest(String dataType, String requestId) { + this.dataType = dataType; + this.requestId = requestId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewDataExportByIdRequest + */ + public APIviewDataExportByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewDataExportById request + * @return ViewDataExportByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewDataExportByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewDataExportById request with HTTP info returned + * @return ApiResponse<ViewDataExportByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewDataExportByIdWithHttpInfo(apiToken, dataType, requestId); + } + } + + /** + * View a data export + * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. + * @param dataType (required) + * @param requestId (required) + * @return viewDataExportByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewDataExportByIdRequest viewDataExportById(String dataType, String requestId) throws ApiException { + return new APIviewDataExportByIdRequest(dataType, requestId); + } } diff --git a/src/main/java/org/sendbird/client/api/GroupChannelApi.java b/src/main/java/org/sendbird/client/api/GroupChannelApi.java index c4eed39e..92471d94 100644 --- a/src/main/java/org/sendbird/client/api/GroupChannelApi.java +++ b/src/main/java/org/sendbird/client/api/GroupChannelApi.java @@ -32,7 +32,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class GroupChannelApi { private ApiClient apiClient; @@ -62,39 +62,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Accept an invitation - * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcAcceptInvitationData (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcAcceptInvitation(String apiToken, String channelUrl, GcAcceptInvitationData gcAcceptInvitationData) throws ApiException { - return gcAcceptInvitationWithHttpInfo(apiToken, channelUrl, gcAcceptInvitationData).getData(); - } - /** - * Accept an invitation - * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcAcceptInvitationData (optional) - * @return ApiResponse<SendBirdGroupChannel> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse gcAcceptInvitationWithHttpInfo(String apiToken, String channelUrl, GcAcceptInvitationData gcAcceptInvitationData) throws ApiException { +private ApiResponse gcAcceptInvitationWithHttpInfo(String apiToken, String channelUrl, GcAcceptInvitationData gcAcceptInvitationData) throws ApiException { Object localVarPostBody = gcAcceptInvitationData; // verify the required parameter 'apiToken' is set @@ -141,41 +110,82 @@ public ApiResponse gcAcceptInvitationWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param apiToken (required) - * @param channelUrl (required) - * @param operatorIds (required) - * @param deleteAll (optional) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcCancelTheRegistrationOfOperators(String apiToken, String channelUrl, List operatorIds, Boolean deleteAll) throws ApiException { - return gcCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, deleteAll).getData(); + + public class APIgcAcceptInvitationRequest { + private String apiToken; + private String channelUrl; + private GcAcceptInvitationData gcAcceptInvitationData; + + private APIgcAcceptInvitationRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcAcceptInvitationRequest + */ + public APIgcAcceptInvitationRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcAcceptInvitationData + * @param gcAcceptInvitationData (optional) + * @return APIgcAcceptInvitationRequest + */ + public APIgcAcceptInvitationRequest gcAcceptInvitationData(GcAcceptInvitationData gcAcceptInvitationData) { + this.gcAcceptInvitationData = gcAcceptInvitationData; + return this; + } + + /** + * Execute gcAcceptInvitation request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcAcceptInvitation request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcAcceptInvitationWithHttpInfo(apiToken, channelUrl, gcAcceptInvitationData); + } } /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param apiToken (required) + * Accept an invitation + * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- * @param channelUrl (required) - * @param operatorIds (required) - * @param deleteAll (optional) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return gcAcceptInvitationRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcCancelTheRegistrationOfOperatorsWithHttpInfo(String apiToken, String channelUrl, List operatorIds, Boolean deleteAll) throws ApiException { + public APIgcAcceptInvitationRequest gcAcceptInvitation(String channelUrl) throws ApiException { + return new APIgcAcceptInvitationRequest(channelUrl); + } + +private ApiResponse gcCancelTheRegistrationOfOperatorsWithHttpInfo(String apiToken, String channelUrl, List operatorIds, Boolean deleteAll) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -229,39 +239,93 @@ public ApiResponse gcCancelTheRegistrationOfOpe localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Check if member - * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param userId (required) - * @return GcCheckIfMemberByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcCheckIfMemberByIdResponse gcCheckIfMemberById(String apiToken, String channelUrl, String userId) throws ApiException { - return gcCheckIfMemberByIdWithHttpInfo(apiToken, channelUrl, userId).getData(); + + public class APIgcCancelTheRegistrationOfOperatorsRequest { + private String apiToken; + private String channelUrl; + private List operatorIds; + private Boolean deleteAll; + + private APIgcCancelTheRegistrationOfOperatorsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcCancelTheRegistrationOfOperatorsRequest + */ + public APIgcCancelTheRegistrationOfOperatorsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set operatorIds + * @param operatorIds (required) + * @return APIgcCancelTheRegistrationOfOperatorsRequest + */ + public APIgcCancelTheRegistrationOfOperatorsRequest operatorIds(List operatorIds) { + this.operatorIds = operatorIds; + return this; + } + + /** + * Set deleteAll + * @param deleteAll (optional) + * @return APIgcCancelTheRegistrationOfOperatorsRequest + */ + public APIgcCancelTheRegistrationOfOperatorsRequest deleteAll(Boolean deleteAll) { + this.deleteAll = deleteAll; + return this; + } + + /** + * Execute gcCancelTheRegistrationOfOperators request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcCancelTheRegistrationOfOperators request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, deleteAll); + } } /** - * Check if member - * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- - * @param apiToken (required) + * Cancel the registration of operators + * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. * @param channelUrl (required) - * @param userId (required) - * @return ApiResponse<GcCheckIfMemberByIdResponse> + * @return gcCancelTheRegistrationOfOperatorsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcCheckIfMemberByIdWithHttpInfo(String apiToken, String channelUrl, String userId) throws ApiException { + public APIgcCancelTheRegistrationOfOperatorsRequest gcCancelTheRegistrationOfOperators(String channelUrl) throws ApiException { + return new APIgcCancelTheRegistrationOfOperatorsRequest(channelUrl); + } + +private ApiResponse gcCheckIfMemberByIdWithHttpInfo(String apiToken, String channelUrl, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -314,37 +378,74 @@ public ApiResponse gcCheckIfMemberByIdWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Create a channel - * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel - * @param apiToken (required) - * @param gcCreateChannelData (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcCreateChannel(String apiToken, GcCreateChannelData gcCreateChannelData) throws ApiException { - return gcCreateChannelWithHttpInfo(apiToken, gcCreateChannelData).getData(); + + public class APIgcCheckIfMemberByIdRequest { + private String apiToken; + private String channelUrl; + private String userId; + + private APIgcCheckIfMemberByIdRequest(String channelUrl, String userId) { + this.channelUrl = channelUrl; + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcCheckIfMemberByIdRequest + */ + public APIgcCheckIfMemberByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute gcCheckIfMemberById request + * @return GcCheckIfMemberByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcCheckIfMemberByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcCheckIfMemberById request with HTTP info returned + * @return ApiResponse<GcCheckIfMemberByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcCheckIfMemberByIdWithHttpInfo(apiToken, channelUrl, userId); + } } /** - * Create a channel - * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel - * @param apiToken (required) - * @param gcCreateChannelData (optional) - * @return ApiResponse<SendBirdGroupChannel> + * Check if member + * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- + * @param channelUrl (required) + * @param userId (required) + * @return gcCheckIfMemberByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcCreateChannelWithHttpInfo(String apiToken, GcCreateChannelData gcCreateChannelData) throws ApiException { + public APIgcCheckIfMemberByIdRequest gcCheckIfMemberById(String channelUrl, String userId) throws ApiException { + return new APIgcCheckIfMemberByIdRequest(channelUrl, userId); + } + +private ApiResponse gcCreateChannelWithHttpInfo(String apiToken, GcCreateChannelData gcCreateChannelData) throws ApiException { Object localVarPostBody = gcCreateChannelData; // verify the required parameter 'apiToken' is set @@ -385,39 +486,79 @@ public ApiResponse gcCreateChannelWithHttpInfo(String apiT localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Decline an invitation - * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcDeclineInvitationData (optional) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcDeclineInvitation(String apiToken, String channelUrl, GcDeclineInvitationData gcDeclineInvitationData) throws ApiException { - return gcDeclineInvitationWithHttpInfo(apiToken, channelUrl, gcDeclineInvitationData).getData(); + + public class APIgcCreateChannelRequest { + private String apiToken; + private GcCreateChannelData gcCreateChannelData; + + private APIgcCreateChannelRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcCreateChannelRequest + */ + public APIgcCreateChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcCreateChannelData + * @param gcCreateChannelData (optional) + * @return APIgcCreateChannelRequest + */ + public APIgcCreateChannelRequest gcCreateChannelData(GcCreateChannelData gcCreateChannelData) { + this.gcCreateChannelData = gcCreateChannelData; + return this; + } + + /** + * Execute gcCreateChannel request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcCreateChannel request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcCreateChannelWithHttpInfo(apiToken, gcCreateChannelData); + } } /** - * Decline an invitation - * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcDeclineInvitationData (optional) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * Create a channel + * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel + * @return gcCreateChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcDeclineInvitationWithHttpInfo(String apiToken, String channelUrl, GcDeclineInvitationData gcDeclineInvitationData) throws ApiException { + public APIgcCreateChannelRequest gcCreateChannel() throws ApiException { + return new APIgcCreateChannelRequest(); + } + +private ApiResponse gcDeclineInvitationWithHttpInfo(String apiToken, String channelUrl, GcDeclineInvitationData gcDeclineInvitationData) throws ApiException { Object localVarPostBody = gcDeclineInvitationData; // verify the required parameter 'apiToken' is set @@ -464,37 +605,82 @@ public ApiResponse gcDeclineInvitationWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete a channel - * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcDeleteChannelByUrl(String apiToken, String channelUrl) throws ApiException { - return gcDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl).getData(); + + public class APIgcDeclineInvitationRequest { + private String apiToken; + private String channelUrl; + private GcDeclineInvitationData gcDeclineInvitationData; + + private APIgcDeclineInvitationRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcDeclineInvitationRequest + */ + public APIgcDeclineInvitationRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcDeclineInvitationData + * @param gcDeclineInvitationData (optional) + * @return APIgcDeclineInvitationRequest + */ + public APIgcDeclineInvitationRequest gcDeclineInvitationData(GcDeclineInvitationData gcDeclineInvitationData) { + this.gcDeclineInvitationData = gcDeclineInvitationData; + return this; + } + + /** + * Execute gcDeclineInvitation request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcDeclineInvitation request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcDeclineInvitationWithHttpInfo(apiToken, channelUrl, gcDeclineInvitationData); + } } /** - * Delete a channel - * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- - * @param apiToken (required) + * Decline an invitation + * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- * @param channelUrl (required) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return gcDeclineInvitationRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcDeleteChannelByUrlWithHttpInfo(String apiToken, String channelUrl) throws ApiException { + public APIgcDeclineInvitationRequest gcDeclineInvitation(String channelUrl) throws ApiException { + return new APIgcDeclineInvitationRequest(channelUrl); + } + +private ApiResponse gcDeleteChannelByUrlWithHttpInfo(String apiToken, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -541,39 +727,71 @@ public ApiResponse gcDeleteChannelByUrlWithHttp localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Hide or archive a channel - * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcHideOrArchiveChannelData (optional) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcHideOrArchiveChannel(String apiToken, String channelUrl, GcHideOrArchiveChannelData gcHideOrArchiveChannelData) throws ApiException { - return gcHideOrArchiveChannelWithHttpInfo(apiToken, channelUrl, gcHideOrArchiveChannelData).getData(); + + public class APIgcDeleteChannelByUrlRequest { + private String apiToken; + private String channelUrl; + + private APIgcDeleteChannelByUrlRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcDeleteChannelByUrlRequest + */ + public APIgcDeleteChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute gcDeleteChannelByUrl request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcDeleteChannelByUrl request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl); + } } /** - * Hide or archive a channel - * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- - * @param apiToken (required) + * Delete a channel + * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- * @param channelUrl (required) - * @param gcHideOrArchiveChannelData (optional) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return gcDeleteChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcHideOrArchiveChannelWithHttpInfo(String apiToken, String channelUrl, GcHideOrArchiveChannelData gcHideOrArchiveChannelData) throws ApiException { + public APIgcDeleteChannelByUrlRequest gcDeleteChannelByUrl(String channelUrl) throws ApiException { + return new APIgcDeleteChannelByUrlRequest(channelUrl); + } + +private ApiResponse gcHideOrArchiveChannelWithHttpInfo(String apiToken, String channelUrl, GcHideOrArchiveChannelData gcHideOrArchiveChannelData) throws ApiException { Object localVarPostBody = gcHideOrArchiveChannelData; // verify the required parameter 'apiToken' is set @@ -620,39 +838,82 @@ public ApiResponse gcHideOrArchiveChannelWithHt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Invite as members - * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcInviteAsMembersData (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcInviteAsMembers(String apiToken, String channelUrl, GcInviteAsMembersData gcInviteAsMembersData) throws ApiException { - return gcInviteAsMembersWithHttpInfo(apiToken, channelUrl, gcInviteAsMembersData).getData(); + + public class APIgcHideOrArchiveChannelRequest { + private String apiToken; + private String channelUrl; + private GcHideOrArchiveChannelData gcHideOrArchiveChannelData; + + private APIgcHideOrArchiveChannelRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcHideOrArchiveChannelRequest + */ + public APIgcHideOrArchiveChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcHideOrArchiveChannelData + * @param gcHideOrArchiveChannelData (optional) + * @return APIgcHideOrArchiveChannelRequest + */ + public APIgcHideOrArchiveChannelRequest gcHideOrArchiveChannelData(GcHideOrArchiveChannelData gcHideOrArchiveChannelData) { + this.gcHideOrArchiveChannelData = gcHideOrArchiveChannelData; + return this; + } + + /** + * Execute gcHideOrArchiveChannel request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcHideOrArchiveChannel request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcHideOrArchiveChannelWithHttpInfo(apiToken, channelUrl, gcHideOrArchiveChannelData); + } } /** - * Invite as members - * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- - * @param apiToken (required) + * Hide or archive a channel + * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- * @param channelUrl (required) - * @param gcInviteAsMembersData (optional) - * @return ApiResponse<SendBirdGroupChannel> + * @return gcHideOrArchiveChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcInviteAsMembersWithHttpInfo(String apiToken, String channelUrl, GcInviteAsMembersData gcInviteAsMembersData) throws ApiException { + public APIgcHideOrArchiveChannelRequest gcHideOrArchiveChannel(String channelUrl) throws ApiException { + return new APIgcHideOrArchiveChannelRequest(channelUrl); + } + +private ApiResponse gcInviteAsMembersWithHttpInfo(String apiToken, String channelUrl, GcInviteAsMembersData gcInviteAsMembersData) throws ApiException { Object localVarPostBody = gcInviteAsMembersData; // verify the required parameter 'apiToken' is set @@ -699,38 +960,82 @@ public ApiResponse gcInviteAsMembersWithHttpInfo(String ap localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Join a channel - * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcJoinChannelData (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void gcJoinChannel(String apiToken, String channelUrl, GcJoinChannelData gcJoinChannelData) throws ApiException { - gcJoinChannelWithHttpInfo(apiToken, channelUrl, gcJoinChannelData); + + public class APIgcInviteAsMembersRequest { + private String apiToken; + private String channelUrl; + private GcInviteAsMembersData gcInviteAsMembersData; + + private APIgcInviteAsMembersRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcInviteAsMembersRequest + */ + public APIgcInviteAsMembersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcInviteAsMembersData + * @param gcInviteAsMembersData (optional) + * @return APIgcInviteAsMembersRequest + */ + public APIgcInviteAsMembersRequest gcInviteAsMembersData(GcInviteAsMembersData gcInviteAsMembersData) { + this.gcInviteAsMembersData = gcInviteAsMembersData; + return this; + } + + /** + * Execute gcInviteAsMembers request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcInviteAsMembers request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcInviteAsMembersWithHttpInfo(apiToken, channelUrl, gcInviteAsMembersData); + } } /** - * Join a channel - * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- - * @param apiToken (required) + * Invite as members + * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- * @param channelUrl (required) - * @param gcJoinChannelData (optional) - * @return ApiResponse<Void> + * @return gcInviteAsMembersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcJoinChannelWithHttpInfo(String apiToken, String channelUrl, GcJoinChannelData gcJoinChannelData) throws ApiException { + public APIgcInviteAsMembersRequest gcInviteAsMembers(String channelUrl) throws ApiException { + return new APIgcInviteAsMembersRequest(channelUrl); + } + +private ApiResponse gcJoinChannelWithHttpInfo(String apiToken, String channelUrl, GcJoinChannelData gcJoinChannelData) throws ApiException { Object localVarPostBody = gcJoinChannelData; // verify the required parameter 'apiToken' is set @@ -775,39 +1080,82 @@ public ApiResponse gcJoinChannelWithHttpInfo(String apiToken, String chann localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Leave a channel - * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcLeaveChannelData (optional) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcLeaveChannel(String apiToken, String channelUrl, GcLeaveChannelData gcLeaveChannelData) throws ApiException { - return gcLeaveChannelWithHttpInfo(apiToken, channelUrl, gcLeaveChannelData).getData(); + + public class APIgcJoinChannelRequest { + private String apiToken; + private String channelUrl; + private GcJoinChannelData gcJoinChannelData; + + private APIgcJoinChannelRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcJoinChannelRequest + */ + public APIgcJoinChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcJoinChannelData + * @param gcJoinChannelData (optional) + * @return APIgcJoinChannelRequest + */ + public APIgcJoinChannelRequest gcJoinChannelData(GcJoinChannelData gcJoinChannelData) { + this.gcJoinChannelData = gcJoinChannelData; + return this; + } + + /** + * Execute gcJoinChannel request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcJoinChannel request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcJoinChannelWithHttpInfo(apiToken, channelUrl, gcJoinChannelData); + } } /** - * Leave a channel - * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- - * @param apiToken (required) + * Join a channel + * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- * @param channelUrl (required) - * @param gcLeaveChannelData (optional) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return gcJoinChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcLeaveChannelWithHttpInfo(String apiToken, String channelUrl, GcLeaveChannelData gcLeaveChannelData) throws ApiException { + public APIgcJoinChannelRequest gcJoinChannel(String channelUrl) throws ApiException { + return new APIgcJoinChannelRequest(channelUrl); + } + +private ApiResponse gcLeaveChannelWithHttpInfo(String apiToken, String channelUrl, GcLeaveChannelData gcLeaveChannelData) throws ApiException { Object localVarPostBody = gcLeaveChannelData; // verify the required parameter 'apiToken' is set @@ -854,119 +1202,82 @@ public ApiResponse gcLeaveChannelWithHttpInfo(S localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List channels - * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param distinctMode (optional) - * @param publicMode (optional) - * @param superMode (optional) - * @param createdAfter (optional) - * @param createdBefore (optional) - * @param showEmpty (optional) - * @param showMember (optional) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param showMetadata (optional) - * @param showFrozen (optional) - * @param order (optional) - * @param metadataOrderKey (optional) - * @param customTypes (optional) - * @param customTypeStartswith (optional) - * @param channelUrls (optional) - * @param name (optional) - * @param nameContains (optional) - * @param nameStartswith (optional) - * @param membersExactlyIn (optional) - * @param membersIncludeIn (optional) - * @param queryType (optional) - * @param membersNickname (optional) - * @param membersNicknameContains (optional) - * @param metadataKey (optional) - * @param metadataValues (optional) - * @param metadataValueStartswith (optional) - * @param metacounterKey (optional) - * @param metacounterValues (optional) - * @param metacounterValueGt (optional) - * @param metacounterValueGte (optional) - * @param metacounterValueLt (optional) - * @param metacounterValueLte (optional) - * @param includeSortedMetaarrayInLastMessage (optional) - * @param customType (optional) - * @param readReceipt (optional) - * @param member (optional) - * @param isDistinct (optional) - * @param membersIn (optional) - * @param userId (optional) - * @return GcListChannelsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcListChannelsResponse gcListChannels(String apiToken, String token, Integer limit, String distinctMode, String publicMode, String superMode, Integer createdAfter, Integer createdBefore, Boolean showEmpty, Boolean showMember, Boolean showDeliveryReceipt, Boolean showReadReceipt, Boolean showMetadata, Boolean showFrozen, String order, String metadataOrderKey, String customTypes, String customTypeStartswith, String channelUrls, String name, String nameContains, String nameStartswith, String membersExactlyIn, String membersIncludeIn, String queryType, String membersNickname, String membersNicknameContains, String metadataKey, String metadataValues, String metadataValueStartswith, String metacounterKey, String metacounterValues, String metacounterValueGt, String metacounterValueGte, String metacounterValueLt, String metacounterValueLte, Boolean includeSortedMetaarrayInLastMessage, String customType, Boolean readReceipt, Boolean member, Boolean isDistinct, String membersIn, String userId) throws ApiException { - return gcListChannelsWithHttpInfo(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId).getData(); + + public class APIgcLeaveChannelRequest { + private String apiToken; + private String channelUrl; + private GcLeaveChannelData gcLeaveChannelData; + + private APIgcLeaveChannelRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcLeaveChannelRequest + */ + public APIgcLeaveChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcLeaveChannelData + * @param gcLeaveChannelData (optional) + * @return APIgcLeaveChannelRequest + */ + public APIgcLeaveChannelRequest gcLeaveChannelData(GcLeaveChannelData gcLeaveChannelData) { + this.gcLeaveChannelData = gcLeaveChannelData; + return this; + } + + /** + * Execute gcLeaveChannel request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcLeaveChannel request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcLeaveChannelWithHttpInfo(apiToken, channelUrl, gcLeaveChannelData); + } } /** - * List channels - * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param distinctMode (optional) - * @param publicMode (optional) - * @param superMode (optional) - * @param createdAfter (optional) - * @param createdBefore (optional) - * @param showEmpty (optional) - * @param showMember (optional) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param showMetadata (optional) - * @param showFrozen (optional) - * @param order (optional) - * @param metadataOrderKey (optional) - * @param customTypes (optional) - * @param customTypeStartswith (optional) - * @param channelUrls (optional) - * @param name (optional) - * @param nameContains (optional) - * @param nameStartswith (optional) - * @param membersExactlyIn (optional) - * @param membersIncludeIn (optional) - * @param queryType (optional) - * @param membersNickname (optional) - * @param membersNicknameContains (optional) - * @param metadataKey (optional) - * @param metadataValues (optional) - * @param metadataValueStartswith (optional) - * @param metacounterKey (optional) - * @param metacounterValues (optional) - * @param metacounterValueGt (optional) - * @param metacounterValueGte (optional) - * @param metacounterValueLt (optional) - * @param metacounterValueLte (optional) - * @param includeSortedMetaarrayInLastMessage (optional) - * @param customType (optional) - * @param readReceipt (optional) - * @param member (optional) - * @param isDistinct (optional) - * @param membersIn (optional) - * @param userId (optional) - * @return ApiResponse<GcListChannelsResponse> + * Leave a channel + * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- + * @param channelUrl (required) + * @return gcLeaveChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcListChannelsWithHttpInfo(String apiToken, String token, Integer limit, String distinctMode, String publicMode, String superMode, Integer createdAfter, Integer createdBefore, Boolean showEmpty, Boolean showMember, Boolean showDeliveryReceipt, Boolean showReadReceipt, Boolean showMetadata, Boolean showFrozen, String order, String metadataOrderKey, String customTypes, String customTypeStartswith, String channelUrls, String name, String nameContains, String nameStartswith, String membersExactlyIn, String membersIncludeIn, String queryType, String membersNickname, String membersNicknameContains, String metadataKey, String metadataValues, String metadataValueStartswith, String metacounterKey, String metacounterValues, String metacounterValueGt, String metacounterValueGte, String metacounterValueLt, String metacounterValueLte, Boolean includeSortedMetaarrayInLastMessage, String customType, Boolean readReceipt, Boolean member, Boolean isDistinct, String membersIn, String userId) throws ApiException { + public APIgcLeaveChannelRequest gcLeaveChannel(String channelUrl) throws ApiException { + return new APIgcLeaveChannelRequest(channelUrl); + } + +private ApiResponse gcListChannelsWithHttpInfo(String apiToken, String token, Integer limit, String distinctMode, String publicMode, String superMode, Integer createdAfter, Integer createdBefore, Boolean showEmpty, Boolean showMember, Boolean showDeliveryReceipt, Boolean showReadReceipt, Boolean showMetadata, Boolean showFrozen, String order, String metadataOrderKey, String customTypes, String customTypeStartswith, String channelUrls, String name, String nameContains, String nameStartswith, String membersExactlyIn, String membersIncludeIn, String queryType, String membersNickname, String membersNicknameContains, String metadataKey, String metadataValues, String metadataValueStartswith, String metacounterKey, String metacounterValues, String metacounterValueGt, String metacounterValueGte, String metacounterValueLt, String metacounterValueLte, Boolean includeSortedMetaarrayInLastMessage, String customType, Boolean readReceipt, Boolean member, Boolean isDistinct, String membersIn, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1049,55 +1360,530 @@ public ApiResponse gcListChannelsWithHttpInfo(String api localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List members - * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param order (optional) - * @param operatorFilter (optional) - * @param memberStateFilter (optional) - * @param mutedMemberFilter (optional) - * @param nicknameStartswith (optional) - * @return GcListMembersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcListMembersResponse gcListMembers(String apiToken, String channelUrl, String token, Integer limit, Boolean showDeliveryReceipt, Boolean showReadReceipt, String order, String operatorFilter, String memberStateFilter, String mutedMemberFilter, String nicknameStartswith) throws ApiException { - return gcListMembersWithHttpInfo(apiToken, channelUrl, token, limit, showDeliveryReceipt, showReadReceipt, order, operatorFilter, memberStateFilter, mutedMemberFilter, nicknameStartswith).getData(); - } - /** - * List members - * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param order (optional) - * @param operatorFilter (optional) - * @param memberStateFilter (optional) - * @param mutedMemberFilter (optional) - * @param nicknameStartswith (optional) - * @return ApiResponse<GcListMembersResponse> + public class APIgcListChannelsRequest { + private String apiToken; + private String token; + private Integer limit; + private String distinctMode; + private String publicMode; + private String superMode; + private Integer createdAfter; + private Integer createdBefore; + private Boolean showEmpty; + private Boolean showMember; + private Boolean showDeliveryReceipt; + private Boolean showReadReceipt; + private Boolean showMetadata; + private Boolean showFrozen; + private String order; + private String metadataOrderKey; + private String customTypes; + private String customTypeStartswith; + private String channelUrls; + private String name; + private String nameContains; + private String nameStartswith; + private String membersExactlyIn; + private String membersIncludeIn; + private String queryType; + private String membersNickname; + private String membersNicknameContains; + private String metadataKey; + private String metadataValues; + private String metadataValueStartswith; + private String metacounterKey; + private String metacounterValues; + private String metacounterValueGt; + private String metacounterValueGte; + private String metacounterValueLt; + private String metacounterValueLte; + private Boolean includeSortedMetaarrayInLastMessage; + private String customType; + private Boolean readReceipt; + private Boolean member; + private Boolean isDistinct; + private String membersIn; + private String userId; + + private APIgcListChannelsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set distinctMode + * @param distinctMode (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest distinctMode(String distinctMode) { + this.distinctMode = distinctMode; + return this; + } + + /** + * Set publicMode + * @param publicMode (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest publicMode(String publicMode) { + this.publicMode = publicMode; + return this; + } + + /** + * Set superMode + * @param superMode (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest superMode(String superMode) { + this.superMode = superMode; + return this; + } + + /** + * Set createdAfter + * @param createdAfter (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest createdAfter(Integer createdAfter) { + this.createdAfter = createdAfter; + return this; + } + + /** + * Set createdBefore + * @param createdBefore (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest createdBefore(Integer createdBefore) { + this.createdBefore = createdBefore; + return this; + } + + /** + * Set showEmpty + * @param showEmpty (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest showEmpty(Boolean showEmpty) { + this.showEmpty = showEmpty; + return this; + } + + /** + * Set showMember + * @param showMember (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest showMember(Boolean showMember) { + this.showMember = showMember; + return this; + } + + /** + * Set showDeliveryReceipt + * @param showDeliveryReceipt (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest showDeliveryReceipt(Boolean showDeliveryReceipt) { + this.showDeliveryReceipt = showDeliveryReceipt; + return this; + } + + /** + * Set showReadReceipt + * @param showReadReceipt (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest showReadReceipt(Boolean showReadReceipt) { + this.showReadReceipt = showReadReceipt; + return this; + } + + /** + * Set showMetadata + * @param showMetadata (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest showMetadata(Boolean showMetadata) { + this.showMetadata = showMetadata; + return this; + } + + /** + * Set showFrozen + * @param showFrozen (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest showFrozen(Boolean showFrozen) { + this.showFrozen = showFrozen; + return this; + } + + /** + * Set order + * @param order (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest order(String order) { + this.order = order; + return this; + } + + /** + * Set metadataOrderKey + * @param metadataOrderKey (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metadataOrderKey(String metadataOrderKey) { + this.metadataOrderKey = metadataOrderKey; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest customTypes(String customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set customTypeStartswith + * @param customTypeStartswith (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest customTypeStartswith(String customTypeStartswith) { + this.customTypeStartswith = customTypeStartswith; + return this; + } + + /** + * Set channelUrls + * @param channelUrls (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest channelUrls(String channelUrls) { + this.channelUrls = channelUrls; + return this; + } + + /** + * Set name + * @param name (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest name(String name) { + this.name = name; + return this; + } + + /** + * Set nameContains + * @param nameContains (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest nameContains(String nameContains) { + this.nameContains = nameContains; + return this; + } + + /** + * Set nameStartswith + * @param nameStartswith (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest nameStartswith(String nameStartswith) { + this.nameStartswith = nameStartswith; + return this; + } + + /** + * Set membersExactlyIn + * @param membersExactlyIn (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest membersExactlyIn(String membersExactlyIn) { + this.membersExactlyIn = membersExactlyIn; + return this; + } + + /** + * Set membersIncludeIn + * @param membersIncludeIn (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest membersIncludeIn(String membersIncludeIn) { + this.membersIncludeIn = membersIncludeIn; + return this; + } + + /** + * Set queryType + * @param queryType (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest queryType(String queryType) { + this.queryType = queryType; + return this; + } + + /** + * Set membersNickname + * @param membersNickname (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest membersNickname(String membersNickname) { + this.membersNickname = membersNickname; + return this; + } + + /** + * Set membersNicknameContains + * @param membersNicknameContains (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest membersNicknameContains(String membersNicknameContains) { + this.membersNicknameContains = membersNicknameContains; + return this; + } + + /** + * Set metadataKey + * @param metadataKey (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metadataKey(String metadataKey) { + this.metadataKey = metadataKey; + return this; + } + + /** + * Set metadataValues + * @param metadataValues (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metadataValues(String metadataValues) { + this.metadataValues = metadataValues; + return this; + } + + /** + * Set metadataValueStartswith + * @param metadataValueStartswith (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metadataValueStartswith(String metadataValueStartswith) { + this.metadataValueStartswith = metadataValueStartswith; + return this; + } + + /** + * Set metacounterKey + * @param metacounterKey (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metacounterKey(String metacounterKey) { + this.metacounterKey = metacounterKey; + return this; + } + + /** + * Set metacounterValues + * @param metacounterValues (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metacounterValues(String metacounterValues) { + this.metacounterValues = metacounterValues; + return this; + } + + /** + * Set metacounterValueGt + * @param metacounterValueGt (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metacounterValueGt(String metacounterValueGt) { + this.metacounterValueGt = metacounterValueGt; + return this; + } + + /** + * Set metacounterValueGte + * @param metacounterValueGte (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metacounterValueGte(String metacounterValueGte) { + this.metacounterValueGte = metacounterValueGte; + return this; + } + + /** + * Set metacounterValueLt + * @param metacounterValueLt (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metacounterValueLt(String metacounterValueLt) { + this.metacounterValueLt = metacounterValueLt; + return this; + } + + /** + * Set metacounterValueLte + * @param metacounterValueLte (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest metacounterValueLte(String metacounterValueLte) { + this.metacounterValueLte = metacounterValueLte; + return this; + } + + /** + * Set includeSortedMetaarrayInLastMessage + * @param includeSortedMetaarrayInLastMessage (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest includeSortedMetaarrayInLastMessage(Boolean includeSortedMetaarrayInLastMessage) { + this.includeSortedMetaarrayInLastMessage = includeSortedMetaarrayInLastMessage; + return this; + } + + /** + * Set customType + * @param customType (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Set readReceipt + * @param readReceipt (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest readReceipt(Boolean readReceipt) { + this.readReceipt = readReceipt; + return this; + } + + /** + * Set member + * @param member (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest member(Boolean member) { + this.member = member; + return this; + } + + /** + * Set isDistinct + * @param isDistinct (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest isDistinct(Boolean isDistinct) { + this.isDistinct = isDistinct; + return this; + } + + /** + * Set membersIn + * @param membersIn (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest membersIn(String membersIn) { + this.membersIn = membersIn; + return this; + } + + /** + * Set userId + * @param userId (optional) + * @return APIgcListChannelsRequest + */ + public APIgcListChannelsRequest userId(String userId) { + this.userId = userId; + return this; + } + + /** + * Execute gcListChannels request + * @return GcListChannelsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcListChannelsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcListChannels request with HTTP info returned + * @return ApiResponse<GcListChannelsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcListChannelsWithHttpInfo(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); + } + } + + /** + * List channels + * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- + * @return gcListChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcListMembersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit, Boolean showDeliveryReceipt, Boolean showReadReceipt, String order, String operatorFilter, String memberStateFilter, String mutedMemberFilter, String nicknameStartswith) throws ApiException { + public APIgcListChannelsRequest gcListChannels() throws ApiException { + return new APIgcListChannelsRequest(); + } + +private ApiResponse gcListMembersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit, Boolean showDeliveryReceipt, Boolean showReadReceipt, String order, String operatorFilter, String memberStateFilter, String mutedMemberFilter, String nicknameStartswith) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1153,41 +1939,170 @@ public ApiResponse gcListMembersWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List operators - * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return GcListOperatorsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcListOperatorsResponse gcListOperators(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return gcListOperatorsWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIgcListMembersRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + private Boolean showDeliveryReceipt; + private Boolean showReadReceipt; + private String order; + private String operatorFilter; + private String memberStateFilter; + private String mutedMemberFilter; + private String nicknameStartswith; + + private APIgcListMembersRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set showDeliveryReceipt + * @param showDeliveryReceipt (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest showDeliveryReceipt(Boolean showDeliveryReceipt) { + this.showDeliveryReceipt = showDeliveryReceipt; + return this; + } + + /** + * Set showReadReceipt + * @param showReadReceipt (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest showReadReceipt(Boolean showReadReceipt) { + this.showReadReceipt = showReadReceipt; + return this; + } + + /** + * Set order + * @param order (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest order(String order) { + this.order = order; + return this; + } + + /** + * Set operatorFilter + * @param operatorFilter (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest operatorFilter(String operatorFilter) { + this.operatorFilter = operatorFilter; + return this; + } + + /** + * Set memberStateFilter + * @param memberStateFilter (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest memberStateFilter(String memberStateFilter) { + this.memberStateFilter = memberStateFilter; + return this; + } + + /** + * Set mutedMemberFilter + * @param mutedMemberFilter (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest mutedMemberFilter(String mutedMemberFilter) { + this.mutedMemberFilter = mutedMemberFilter; + return this; + } + + /** + * Set nicknameStartswith + * @param nicknameStartswith (optional) + * @return APIgcListMembersRequest + */ + public APIgcListMembersRequest nicknameStartswith(String nicknameStartswith) { + this.nicknameStartswith = nicknameStartswith; + return this; + } + + /** + * Execute gcListMembers request + * @return GcListMembersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcListMembersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcListMembers request with HTTP info returned + * @return ApiResponse<GcListMembersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcListMembersWithHttpInfo(apiToken, channelUrl, token, limit, showDeliveryReceipt, showReadReceipt, order, operatorFilter, memberStateFilter, mutedMemberFilter, nicknameStartswith); + } } /** - * List operators - * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param apiToken (required) + * List members + * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<GcListOperatorsResponse> + * @return gcListMembersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcListOperatorsWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIgcListMembersRequest gcListMembers(String channelUrl) throws ApiException { + return new APIgcListMembersRequest(channelUrl); + } + +private ApiResponse gcListOperatorsWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1236,39 +2151,93 @@ public ApiResponse gcListOperatorsWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Register operators - * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcRegisterOperatorsData (optional) - * @return GcRegisterOperatorsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcRegisterOperatorsResponse gcRegisterOperators(String apiToken, String channelUrl, GcRegisterOperatorsData gcRegisterOperatorsData) throws ApiException { - return gcRegisterOperatorsWithHttpInfo(apiToken, channelUrl, gcRegisterOperatorsData).getData(); + + public class APIgcListOperatorsRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIgcListOperatorsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcListOperatorsRequest + */ + public APIgcListOperatorsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIgcListOperatorsRequest + */ + public APIgcListOperatorsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgcListOperatorsRequest + */ + public APIgcListOperatorsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute gcListOperators request + * @return GcListOperatorsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcListOperatorsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcListOperators request with HTTP info returned + * @return ApiResponse<GcListOperatorsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcListOperatorsWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * Register operators - * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- - * @param apiToken (required) + * List operators + * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. * @param channelUrl (required) - * @param gcRegisterOperatorsData (optional) - * @return ApiResponse<GcRegisterOperatorsResponse> + * @return gcListOperatorsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcRegisterOperatorsWithHttpInfo(String apiToken, String channelUrl, GcRegisterOperatorsData gcRegisterOperatorsData) throws ApiException { + public APIgcListOperatorsRequest gcListOperators(String channelUrl) throws ApiException { + return new APIgcListOperatorsRequest(channelUrl); + } + +private ApiResponse gcRegisterOperatorsWithHttpInfo(String apiToken, String channelUrl, GcRegisterOperatorsData gcRegisterOperatorsData) throws ApiException { Object localVarPostBody = gcRegisterOperatorsData; // verify the required parameter 'apiToken' is set @@ -1315,39 +2284,82 @@ public ApiResponse gcRegisterOperatorsWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Reset chat history - * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcResetChatHistoryData (optional) - * @return GcResetChatHistoryResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcResetChatHistoryResponse gcResetChatHistory(String apiToken, String channelUrl, GcResetChatHistoryData gcResetChatHistoryData) throws ApiException { - return gcResetChatHistoryWithHttpInfo(apiToken, channelUrl, gcResetChatHistoryData).getData(); + + public class APIgcRegisterOperatorsRequest { + private String apiToken; + private String channelUrl; + private GcRegisterOperatorsData gcRegisterOperatorsData; + + private APIgcRegisterOperatorsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcRegisterOperatorsRequest + */ + public APIgcRegisterOperatorsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcRegisterOperatorsData + * @param gcRegisterOperatorsData (optional) + * @return APIgcRegisterOperatorsRequest + */ + public APIgcRegisterOperatorsRequest gcRegisterOperatorsData(GcRegisterOperatorsData gcRegisterOperatorsData) { + this.gcRegisterOperatorsData = gcRegisterOperatorsData; + return this; + } + + /** + * Execute gcRegisterOperators request + * @return GcRegisterOperatorsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcRegisterOperatorsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcRegisterOperators request with HTTP info returned + * @return ApiResponse<GcRegisterOperatorsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcRegisterOperatorsWithHttpInfo(apiToken, channelUrl, gcRegisterOperatorsData); + } } /** - * Reset chat history - * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- - * @param apiToken (required) + * Register operators + * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- * @param channelUrl (required) - * @param gcResetChatHistoryData (optional) - * @return ApiResponse<GcResetChatHistoryResponse> + * @return gcRegisterOperatorsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcResetChatHistoryWithHttpInfo(String apiToken, String channelUrl, GcResetChatHistoryData gcResetChatHistoryData) throws ApiException { + public APIgcRegisterOperatorsRequest gcRegisterOperators(String channelUrl) throws ApiException { + return new APIgcRegisterOperatorsRequest(channelUrl); + } + +private ApiResponse gcResetChatHistoryWithHttpInfo(String apiToken, String channelUrl, GcResetChatHistoryData gcResetChatHistoryData) throws ApiException { Object localVarPostBody = gcResetChatHistoryData; // verify the required parameter 'apiToken' is set @@ -1394,41 +2406,82 @@ public ApiResponse gcResetChatHistoryWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unhide or unarchive a channel - * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. - * @param apiToken (required) - * @param channelUrl (required) - * @param userId (required) - * @param shouldUnhideAll (optional) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcUnhideOrUnarchiveChannel(String apiToken, String channelUrl, String userId, Boolean shouldUnhideAll) throws ApiException { - return gcUnhideOrUnarchiveChannelWithHttpInfo(apiToken, channelUrl, userId, shouldUnhideAll).getData(); + + public class APIgcResetChatHistoryRequest { + private String apiToken; + private String channelUrl; + private GcResetChatHistoryData gcResetChatHistoryData; + + private APIgcResetChatHistoryRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcResetChatHistoryRequest + */ + public APIgcResetChatHistoryRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcResetChatHistoryData + * @param gcResetChatHistoryData (optional) + * @return APIgcResetChatHistoryRequest + */ + public APIgcResetChatHistoryRequest gcResetChatHistoryData(GcResetChatHistoryData gcResetChatHistoryData) { + this.gcResetChatHistoryData = gcResetChatHistoryData; + return this; + } + + /** + * Execute gcResetChatHistory request + * @return GcResetChatHistoryResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcResetChatHistoryResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcResetChatHistory request with HTTP info returned + * @return ApiResponse<GcResetChatHistoryResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcResetChatHistoryWithHttpInfo(apiToken, channelUrl, gcResetChatHistoryData); + } } /** - * Unhide or unarchive a channel - * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. - * @param apiToken (required) + * Reset chat history + * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- * @param channelUrl (required) - * @param userId (required) - * @param shouldUnhideAll (optional) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return gcResetChatHistoryRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcUnhideOrUnarchiveChannelWithHttpInfo(String apiToken, String channelUrl, String userId, Boolean shouldUnhideAll) throws ApiException { + public APIgcResetChatHistoryRequest gcResetChatHistory(String channelUrl) throws ApiException { + return new APIgcResetChatHistoryRequest(channelUrl); + } + +private ApiResponse gcUnhideOrUnarchiveChannelWithHttpInfo(String apiToken, String channelUrl, String userId, Boolean shouldUnhideAll) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1482,39 +2535,93 @@ public ApiResponse gcUnhideOrUnarchiveChannelWi localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a channel - * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcUpdateChannelByUrlData (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcUpdateChannelByUrl(String apiToken, String channelUrl, GcUpdateChannelByUrlData gcUpdateChannelByUrlData) throws ApiException { - return gcUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, gcUpdateChannelByUrlData).getData(); + + public class APIgcUnhideOrUnarchiveChannelRequest { + private String apiToken; + private String channelUrl; + private String userId; + private Boolean shouldUnhideAll; + + private APIgcUnhideOrUnarchiveChannelRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcUnhideOrUnarchiveChannelRequest + */ + public APIgcUnhideOrUnarchiveChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set userId + * @param userId (required) + * @return APIgcUnhideOrUnarchiveChannelRequest + */ + public APIgcUnhideOrUnarchiveChannelRequest userId(String userId) { + this.userId = userId; + return this; + } + + /** + * Set shouldUnhideAll + * @param shouldUnhideAll (optional) + * @return APIgcUnhideOrUnarchiveChannelRequest + */ + public APIgcUnhideOrUnarchiveChannelRequest shouldUnhideAll(Boolean shouldUnhideAll) { + this.shouldUnhideAll = shouldUnhideAll; + return this; + } + + /** + * Execute gcUnhideOrUnarchiveChannel request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcUnhideOrUnarchiveChannel request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcUnhideOrUnarchiveChannelWithHttpInfo(apiToken, channelUrl, userId, shouldUnhideAll); + } } /** - * Update a channel - * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- - * @param apiToken (required) + * Unhide or unarchive a channel + * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. * @param channelUrl (required) - * @param gcUpdateChannelByUrlData (optional) - * @return ApiResponse<SendBirdGroupChannel> + * @return gcUnhideOrUnarchiveChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcUpdateChannelByUrlWithHttpInfo(String apiToken, String channelUrl, GcUpdateChannelByUrlData gcUpdateChannelByUrlData) throws ApiException { + public APIgcUnhideOrUnarchiveChannelRequest gcUnhideOrUnarchiveChannel(String channelUrl) throws ApiException { + return new APIgcUnhideOrUnarchiveChannelRequest(channelUrl); + } + +private ApiResponse gcUpdateChannelByUrlWithHttpInfo(String apiToken, String channelUrl, GcUpdateChannelByUrlData gcUpdateChannelByUrlData) throws ApiException { Object localVarPostBody = gcUpdateChannelByUrlData; // verify the required parameter 'apiToken' is set @@ -1561,47 +2668,82 @@ public ApiResponse gcUpdateChannelByUrlWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a channel - * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. - * @param apiToken (required) - * @param channelUrl (required) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param showMember (optional) - * @param readReceipt (optional) - * @param member (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcViewChannelByUrl(String apiToken, String channelUrl, Boolean showDeliveryReceipt, Boolean showReadReceipt, Boolean showMember, Boolean readReceipt, Boolean member) throws ApiException { - return gcViewChannelByUrlWithHttpInfo(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member).getData(); + + public class APIgcUpdateChannelByUrlRequest { + private String apiToken; + private String channelUrl; + private GcUpdateChannelByUrlData gcUpdateChannelByUrlData; + + private APIgcUpdateChannelByUrlRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcUpdateChannelByUrlRequest + */ + public APIgcUpdateChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcUpdateChannelByUrlData + * @param gcUpdateChannelByUrlData (optional) + * @return APIgcUpdateChannelByUrlRequest + */ + public APIgcUpdateChannelByUrlRequest gcUpdateChannelByUrlData(GcUpdateChannelByUrlData gcUpdateChannelByUrlData) { + this.gcUpdateChannelByUrlData = gcUpdateChannelByUrlData; + return this; + } + + /** + * Execute gcUpdateChannelByUrl request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcUpdateChannelByUrl request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, gcUpdateChannelByUrlData); + } } /** - * View a channel - * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. - * @param apiToken (required) + * Update a channel + * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- * @param channelUrl (required) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param showMember (optional) - * @param readReceipt (optional) - * @param member (optional) - * @return ApiResponse<SendBirdGroupChannel> + * @return gcUpdateChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcViewChannelByUrlWithHttpInfo(String apiToken, String channelUrl, Boolean showDeliveryReceipt, Boolean showReadReceipt, Boolean showMember, Boolean readReceipt, Boolean member) throws ApiException { + public APIgcUpdateChannelByUrlRequest gcUpdateChannelByUrl(String channelUrl) throws ApiException { + return new APIgcUpdateChannelByUrlRequest(channelUrl); + } + +private ApiResponse gcViewChannelByUrlWithHttpInfo(String apiToken, String channelUrl, Boolean showDeliveryReceipt, Boolean showReadReceipt, Boolean showMember, Boolean readReceipt, Boolean member) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1653,4 +2795,122 @@ public ApiResponse gcViewChannelByUrlWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIgcViewChannelByUrlRequest { + private String apiToken; + private String channelUrl; + private Boolean showDeliveryReceipt; + private Boolean showReadReceipt; + private Boolean showMember; + private Boolean readReceipt; + private Boolean member; + + private APIgcViewChannelByUrlRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcViewChannelByUrlRequest + */ + public APIgcViewChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set showDeliveryReceipt + * @param showDeliveryReceipt (optional) + * @return APIgcViewChannelByUrlRequest + */ + public APIgcViewChannelByUrlRequest showDeliveryReceipt(Boolean showDeliveryReceipt) { + this.showDeliveryReceipt = showDeliveryReceipt; + return this; + } + + /** + * Set showReadReceipt + * @param showReadReceipt (optional) + * @return APIgcViewChannelByUrlRequest + */ + public APIgcViewChannelByUrlRequest showReadReceipt(Boolean showReadReceipt) { + this.showReadReceipt = showReadReceipt; + return this; + } + + /** + * Set showMember + * @param showMember (optional) + * @return APIgcViewChannelByUrlRequest + */ + public APIgcViewChannelByUrlRequest showMember(Boolean showMember) { + this.showMember = showMember; + return this; + } + + /** + * Set readReceipt + * @param readReceipt (optional) + * @return APIgcViewChannelByUrlRequest + */ + public APIgcViewChannelByUrlRequest readReceipt(Boolean readReceipt) { + this.readReceipt = readReceipt; + return this; + } + + /** + * Set member + * @param member (optional) + * @return APIgcViewChannelByUrlRequest + */ + public APIgcViewChannelByUrlRequest member(Boolean member) { + this.member = member; + return this; + } + + /** + * Execute gcViewChannelByUrl request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcViewChannelByUrl request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcViewChannelByUrlWithHttpInfo(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); + } + } + + /** + * View a channel + * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. + * @param channelUrl (required) + * @return gcViewChannelByUrlRequest + * @throws ApiException if fails to make API call + + + */ + public APIgcViewChannelByUrlRequest gcViewChannelByUrl(String channelUrl) throws ApiException { + return new APIgcViewChannelByUrlRequest(channelUrl); + } } diff --git a/src/main/java/org/sendbird/client/api/MessageApi.java b/src/main/java/org/sendbird/client/api/MessageApi.java index de76e577..c0952a58 100644 --- a/src/main/java/org/sendbird/client/api/MessageApi.java +++ b/src/main/java/org/sendbird/client/api/MessageApi.java @@ -46,7 +46,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class MessageApi { private ApiClient apiClient; @@ -76,37 +76,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Add emoji categories - * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - * @param apiToken (required) - * @param body (optional) - * @return AddEmojiCategoriesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddEmojiCategoriesResponse addEmojiCategories(String apiToken, Object body) throws ApiException { - return addEmojiCategoriesWithHttpInfo(apiToken, body).getData(); - } - /** - * Add emoji categories - * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - * @param apiToken (required) - * @param body (optional) - * @return ApiResponse<AddEmojiCategoriesResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse addEmojiCategoriesWithHttpInfo(String apiToken, Object body) throws ApiException { +private ApiResponse addEmojiCategoriesWithHttpInfo(String apiToken, Object body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'apiToken' is set @@ -147,37 +118,79 @@ public ApiResponse addEmojiCategoriesWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Add emojis - * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - * @param apiToken (required) - * @param addEmojisData (optional) - * @return AddEmojisResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddEmojisResponse addEmojis(String apiToken, AddEmojisData addEmojisData) throws ApiException { - return addEmojisWithHttpInfo(apiToken, addEmojisData).getData(); + + public class APIaddEmojiCategoriesRequest { + private String apiToken; + private Object body; + + private APIaddEmojiCategoriesRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddEmojiCategoriesRequest + */ + public APIaddEmojiCategoriesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIaddEmojiCategoriesRequest + */ + public APIaddEmojiCategoriesRequest body(Object body) { + this.body = body; + return this; + } + + /** + * Execute addEmojiCategories request + * @return AddEmojiCategoriesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddEmojiCategoriesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addEmojiCategories request with HTTP info returned + * @return ApiResponse<AddEmojiCategoriesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addEmojiCategoriesWithHttpInfo(apiToken, body); + } } /** - * Add emojis - * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - * @param apiToken (required) - * @param addEmojisData (optional) - * @return ApiResponse<AddEmojisResponse> + * Add emoji categories + * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories + * @return addEmojiCategoriesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse addEmojisWithHttpInfo(String apiToken, AddEmojisData addEmojisData) throws ApiException { + public APIaddEmojiCategoriesRequest addEmojiCategories() throws ApiException { + return new APIaddEmojiCategoriesRequest(); + } + +private ApiResponse addEmojisWithHttpInfo(String apiToken, AddEmojisData addEmojisData) throws ApiException { Object localVarPostBody = addEmojisData; // verify the required parameter 'apiToken' is set @@ -218,43 +231,79 @@ public ApiResponse addEmojisWithHttpInfo(String apiToken, Add localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Add extra data to a message - * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param addExtraDataToMessageData (optional) - * @return AddExtraDataToMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddExtraDataToMessageResponse addExtraDataToMessage(String apiToken, String channelType, String channelUrl, String messageId, AddExtraDataToMessageData addExtraDataToMessageData) throws ApiException { - return addExtraDataToMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, addExtraDataToMessageData).getData(); + + public class APIaddEmojisRequest { + private String apiToken; + private AddEmojisData addEmojisData; + + private APIaddEmojisRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddEmojisRequest + */ + public APIaddEmojisRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addEmojisData + * @param addEmojisData (optional) + * @return APIaddEmojisRequest + */ + public APIaddEmojisRequest addEmojisData(AddEmojisData addEmojisData) { + this.addEmojisData = addEmojisData; + return this; + } + + /** + * Execute addEmojis request + * @return AddEmojisResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddEmojisResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addEmojis request with HTTP info returned + * @return ApiResponse<AddEmojisResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addEmojisWithHttpInfo(apiToken, addEmojisData); + } } /** - * Add extra data to a message - * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param addExtraDataToMessageData (optional) - * @return ApiResponse<AddExtraDataToMessageResponse> + * Add emojis + * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis + * @return addEmojisRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse addExtraDataToMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, AddExtraDataToMessageData addExtraDataToMessageData) throws ApiException { + public APIaddEmojisRequest addEmojis() throws ApiException { + return new APIaddEmojisRequest(); + } + +private ApiResponse addExtraDataToMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, AddExtraDataToMessageData addExtraDataToMessageData) throws ApiException { Object localVarPostBody = addExtraDataToMessageData; // verify the required parameter 'apiToken' is set @@ -313,43 +362,88 @@ public ApiResponse addExtraDataToMessageWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Add a reaction to a message - * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param addReactionToAMessageData (optional) - * @return AddReactionToAMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddReactionToAMessageResponse addReactionToAMessage(String apiToken, String channelType, String channelUrl, String messageId, AddReactionToAMessageData addReactionToAMessageData) throws ApiException { - return addReactionToAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, addReactionToAMessageData).getData(); + + public class APIaddExtraDataToMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private AddExtraDataToMessageData addExtraDataToMessageData; + + private APIaddExtraDataToMessageRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddExtraDataToMessageRequest + */ + public APIaddExtraDataToMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addExtraDataToMessageData + * @param addExtraDataToMessageData (optional) + * @return APIaddExtraDataToMessageRequest + */ + public APIaddExtraDataToMessageRequest addExtraDataToMessageData(AddExtraDataToMessageData addExtraDataToMessageData) { + this.addExtraDataToMessageData = addExtraDataToMessageData; + return this; + } + + /** + * Execute addExtraDataToMessage request + * @return AddExtraDataToMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddExtraDataToMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addExtraDataToMessage request with HTTP info returned + * @return ApiResponse<AddExtraDataToMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addExtraDataToMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, addExtraDataToMessageData); + } } /** - * Add a reaction to a message - * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - * @param apiToken (required) + * Add extra data to a message + * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- * @param channelType (required) * @param channelUrl (required) * @param messageId (required) - * @param addReactionToAMessageData (optional) - * @return ApiResponse<AddReactionToAMessageResponse> + * @return addExtraDataToMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse addReactionToAMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, AddReactionToAMessageData addReactionToAMessageData) throws ApiException { + public APIaddExtraDataToMessageRequest addExtraDataToMessage(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIaddExtraDataToMessageRequest(channelType, channelUrl, messageId); + } + +private ApiResponse addReactionToAMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, AddReactionToAMessageData addReactionToAMessageData) throws ApiException { Object localVarPostBody = addReactionToAMessageData; // verify the required parameter 'apiToken' is set @@ -408,36 +502,88 @@ public ApiResponse addReactionToAMessageWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete an emoji - * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - * @param apiToken (required) - * @param emojiKey (required) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteEmojiByKey(String apiToken, String emojiKey) throws ApiException { - deleteEmojiByKeyWithHttpInfo(apiToken, emojiKey); + + public class APIaddReactionToAMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private AddReactionToAMessageData addReactionToAMessageData; + + private APIaddReactionToAMessageRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddReactionToAMessageRequest + */ + public APIaddReactionToAMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addReactionToAMessageData + * @param addReactionToAMessageData (optional) + * @return APIaddReactionToAMessageRequest + */ + public APIaddReactionToAMessageRequest addReactionToAMessageData(AddReactionToAMessageData addReactionToAMessageData) { + this.addReactionToAMessageData = addReactionToAMessageData; + return this; + } + + /** + * Execute addReactionToAMessage request + * @return AddReactionToAMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddReactionToAMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addReactionToAMessage request with HTTP info returned + * @return ApiResponse<AddReactionToAMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addReactionToAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, addReactionToAMessageData); + } } /** - * Delete an emoji - * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - * @param apiToken (required) - * @param emojiKey (required) - * @return ApiResponse<Void> + * Add a reaction to a message + * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return addReactionToAMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteEmojiByKeyWithHttpInfo(String apiToken, String emojiKey) throws ApiException { + public APIaddReactionToAMessageRequest addReactionToAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIaddReactionToAMessageRequest(channelType, channelUrl, messageId); + } + +private ApiResponse deleteEmojiByKeyWithHttpInfo(String apiToken, String emojiKey) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -482,37 +628,71 @@ public ApiResponse deleteEmojiByKeyWithHttpInfo(String apiToken, String em localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Delete an emoji category - * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - * @param apiToken (required) - * @param emojiCategoryId (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object deleteEmojiCategoryById(String apiToken, String emojiCategoryId) throws ApiException { - return deleteEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId).getData(); + + public class APIdeleteEmojiByKeyRequest { + private String apiToken; + private String emojiKey; + + private APIdeleteEmojiByKeyRequest(String emojiKey) { + this.emojiKey = emojiKey; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteEmojiByKeyRequest + */ + public APIdeleteEmojiByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteEmojiByKey request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteEmojiByKey request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteEmojiByKeyWithHttpInfo(apiToken, emojiKey); + } } /** - * Delete an emoji category - * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - * @param apiToken (required) - * @param emojiCategoryId (required) - * @return ApiResponse<Object> + * Delete an emoji + * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- + * @param emojiKey (required) + * @return deleteEmojiByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteEmojiCategoryByIdWithHttpInfo(String apiToken, String emojiCategoryId) throws ApiException { + public APIdeleteEmojiByKeyRequest deleteEmojiByKey(String emojiKey) throws ApiException { + return new APIdeleteEmojiByKeyRequest(emojiKey); + } + +private ApiResponse deleteEmojiCategoryByIdWithHttpInfo(String apiToken, String emojiCategoryId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -559,41 +739,71 @@ public ApiResponse deleteEmojiCategoryByIdWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete a message - * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object deleteMessageById(String apiToken, String channelType, String channelUrl, String messageId) throws ApiException { - return deleteMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId).getData(); + + public class APIdeleteEmojiCategoryByIdRequest { + private String apiToken; + private String emojiCategoryId; + + private APIdeleteEmojiCategoryByIdRequest(String emojiCategoryId) { + this.emojiCategoryId = emojiCategoryId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteEmojiCategoryByIdRequest + */ + public APIdeleteEmojiCategoryByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteEmojiCategoryById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteEmojiCategoryById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId); + } } /** - * Delete a message - * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @return ApiResponse<Object> + * Delete an emoji category + * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- + * @param emojiCategoryId (required) + * @return deleteEmojiCategoryByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId) throws ApiException { + public APIdeleteEmojiCategoryByIdRequest deleteEmojiCategoryById(String emojiCategoryId) throws ApiException { + return new APIdeleteEmojiCategoryByIdRequest(emojiCategoryId); + } + +private ApiResponse deleteMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -652,37 +862,77 @@ public ApiResponse deleteMessageByIdWithHttpInfo(String apiToken, String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Enable reactions - * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - * @param apiToken (required) - * @param enableReactionsData (optional) - * @return EnableReactionsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public EnableReactionsResponse enableReactions(String apiToken, EnableReactionsData enableReactionsData) throws ApiException { - return enableReactionsWithHttpInfo(apiToken, enableReactionsData).getData(); + + public class APIdeleteMessageByIdRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + + private APIdeleteMessageByIdRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteMessageByIdRequest + */ + public APIdeleteMessageByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteMessageById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteMessageById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId); + } } /** - * Enable reactions - * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - * @param apiToken (required) - * @param enableReactionsData (optional) - * @return ApiResponse<EnableReactionsResponse> + * Delete a message + * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return deleteMessageByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse enableReactionsWithHttpInfo(String apiToken, EnableReactionsData enableReactionsData) throws ApiException { + public APIdeleteMessageByIdRequest deleteMessageById(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIdeleteMessageByIdRequest(channelType, channelUrl, messageId); + } + +private ApiResponse enableReactionsWithHttpInfo(String apiToken, EnableReactionsData enableReactionsData) throws ApiException { Object localVarPostBody = enableReactionsData; // verify the required parameter 'apiToken' is set @@ -723,39 +973,79 @@ public ApiResponse enableReactionsWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mark all messages as delivered - * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcMarkAllMessagesAsDeliveredData (optional) - * @return GcMarkAllMessagesAsDeliveredResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcMarkAllMessagesAsDeliveredResponse gcMarkAllMessagesAsDelivered(String apiToken, String channelUrl, GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData) throws ApiException { - return gcMarkAllMessagesAsDeliveredWithHttpInfo(apiToken, channelUrl, gcMarkAllMessagesAsDeliveredData).getData(); + + public class APIenableReactionsRequest { + private String apiToken; + private EnableReactionsData enableReactionsData; + + private APIenableReactionsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIenableReactionsRequest + */ + public APIenableReactionsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set enableReactionsData + * @param enableReactionsData (optional) + * @return APIenableReactionsRequest + */ + public APIenableReactionsRequest enableReactionsData(EnableReactionsData enableReactionsData) { + this.enableReactionsData = enableReactionsData; + return this; + } + + /** + * Execute enableReactions request + * @return EnableReactionsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public EnableReactionsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute enableReactions request with HTTP info returned + * @return ApiResponse<EnableReactionsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return enableReactionsWithHttpInfo(apiToken, enableReactionsData); + } } /** - * Mark all messages as delivered - * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcMarkAllMessagesAsDeliveredData (optional) - * @return ApiResponse<GcMarkAllMessagesAsDeliveredResponse> + * Enable reactions + * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions + * @return enableReactionsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcMarkAllMessagesAsDeliveredWithHttpInfo(String apiToken, String channelUrl, GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData) throws ApiException { + public APIenableReactionsRequest enableReactions() throws ApiException { + return new APIenableReactionsRequest(); + } + +private ApiResponse gcMarkAllMessagesAsDeliveredWithHttpInfo(String apiToken, String channelUrl, GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData) throws ApiException { Object localVarPostBody = gcMarkAllMessagesAsDeliveredData; // verify the required parameter 'apiToken' is set @@ -802,39 +1092,82 @@ public ApiResponse gcMarkAllMessagesAsDeli localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mark all messages as read - * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcMarkAllMessagesAsReadData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object gcMarkAllMessagesAsRead(String apiToken, String channelUrl, GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData) throws ApiException { - return gcMarkAllMessagesAsReadWithHttpInfo(apiToken, channelUrl, gcMarkAllMessagesAsReadData).getData(); + + public class APIgcMarkAllMessagesAsDeliveredRequest { + private String apiToken; + private String channelUrl; + private GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData; + + private APIgcMarkAllMessagesAsDeliveredRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcMarkAllMessagesAsDeliveredRequest + */ + public APIgcMarkAllMessagesAsDeliveredRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcMarkAllMessagesAsDeliveredData + * @param gcMarkAllMessagesAsDeliveredData (optional) + * @return APIgcMarkAllMessagesAsDeliveredRequest + */ + public APIgcMarkAllMessagesAsDeliveredRequest gcMarkAllMessagesAsDeliveredData(GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData) { + this.gcMarkAllMessagesAsDeliveredData = gcMarkAllMessagesAsDeliveredData; + return this; + } + + /** + * Execute gcMarkAllMessagesAsDelivered request + * @return GcMarkAllMessagesAsDeliveredResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcMarkAllMessagesAsDeliveredResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcMarkAllMessagesAsDelivered request with HTTP info returned + * @return ApiResponse<GcMarkAllMessagesAsDeliveredResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcMarkAllMessagesAsDeliveredWithHttpInfo(apiToken, channelUrl, gcMarkAllMessagesAsDeliveredData); + } } /** - * Mark all messages as read - * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - * @param apiToken (required) + * Mark all messages as delivered + * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- * @param channelUrl (required) - * @param gcMarkAllMessagesAsReadData (optional) - * @return ApiResponse<Object> + * @return gcMarkAllMessagesAsDeliveredRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcMarkAllMessagesAsReadWithHttpInfo(String apiToken, String channelUrl, GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData) throws ApiException { + public APIgcMarkAllMessagesAsDeliveredRequest gcMarkAllMessagesAsDelivered(String channelUrl) throws ApiException { + return new APIgcMarkAllMessagesAsDeliveredRequest(channelUrl); + } + +private ApiResponse gcMarkAllMessagesAsReadWithHttpInfo(String apiToken, String channelUrl, GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData) throws ApiException { Object localVarPostBody = gcMarkAllMessagesAsReadData; // verify the required parameter 'apiToken' is set @@ -881,39 +1214,82 @@ public ApiResponse gcMarkAllMessagesAsReadWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of each member's unread messages - * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param userIds (optional) - * @return GcViewNumberOfEachMembersUnreadMessagesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcViewNumberOfEachMembersUnreadMessagesResponse gcViewNumberOfEachMembersUnreadMessages(String apiToken, String channelUrl, String userIds) throws ApiException { - return gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(apiToken, channelUrl, userIds).getData(); + + public class APIgcMarkAllMessagesAsReadRequest { + private String apiToken; + private String channelUrl; + private GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData; + + private APIgcMarkAllMessagesAsReadRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcMarkAllMessagesAsReadRequest + */ + public APIgcMarkAllMessagesAsReadRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcMarkAllMessagesAsReadData + * @param gcMarkAllMessagesAsReadData (optional) + * @return APIgcMarkAllMessagesAsReadRequest + */ + public APIgcMarkAllMessagesAsReadRequest gcMarkAllMessagesAsReadData(GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData) { + this.gcMarkAllMessagesAsReadData = gcMarkAllMessagesAsReadData; + return this; + } + + /** + * Execute gcMarkAllMessagesAsRead request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcMarkAllMessagesAsRead request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcMarkAllMessagesAsReadWithHttpInfo(apiToken, channelUrl, gcMarkAllMessagesAsReadData); + } } /** - * View number of each member's unread messages - * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - * @param apiToken (required) + * Mark all messages as read + * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- * @param channelUrl (required) - * @param userIds (optional) - * @return ApiResponse<GcViewNumberOfEachMembersUnreadMessagesResponse> + * @return gcMarkAllMessagesAsReadRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(String apiToken, String channelUrl, String userIds) throws ApiException { + public APIgcMarkAllMessagesAsReadRequest gcMarkAllMessagesAsRead(String channelUrl) throws ApiException { + return new APIgcMarkAllMessagesAsReadRequest(channelUrl); + } + +private ApiResponse gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(String apiToken, String channelUrl, String userIds) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -961,37 +1337,82 @@ public ApiResponse gcViewNumber localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Get an emoji - * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - * @param apiToken (required) - * @param emojiKey (required) - * @return SendBirdEmoji - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdEmoji getEmojiByKey(String apiToken, String emojiKey) throws ApiException { - return getEmojiByKeyWithHttpInfo(apiToken, emojiKey).getData(); + + public class APIgcViewNumberOfEachMembersUnreadMessagesRequest { + private String apiToken; + private String channelUrl; + private String userIds; + + private APIgcViewNumberOfEachMembersUnreadMessagesRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcViewNumberOfEachMembersUnreadMessagesRequest + */ + public APIgcViewNumberOfEachMembersUnreadMessagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set userIds + * @param userIds (optional) + * @return APIgcViewNumberOfEachMembersUnreadMessagesRequest + */ + public APIgcViewNumberOfEachMembersUnreadMessagesRequest userIds(String userIds) { + this.userIds = userIds; + return this; + } + + /** + * Execute gcViewNumberOfEachMembersUnreadMessages request + * @return GcViewNumberOfEachMembersUnreadMessagesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcViewNumberOfEachMembersUnreadMessagesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcViewNumberOfEachMembersUnreadMessages request with HTTP info returned + * @return ApiResponse<GcViewNumberOfEachMembersUnreadMessagesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(apiToken, channelUrl, userIds); + } } /** - * Get an emoji - * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - * @param apiToken (required) - * @param emojiKey (required) - * @return ApiResponse<SendBirdEmoji> + * View number of each member's unread messages + * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- + * @param channelUrl (required) + * @return gcViewNumberOfEachMembersUnreadMessagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse getEmojiByKeyWithHttpInfo(String apiToken, String emojiKey) throws ApiException { + public APIgcViewNumberOfEachMembersUnreadMessagesRequest gcViewNumberOfEachMembersUnreadMessages(String channelUrl) throws ApiException { + return new APIgcViewNumberOfEachMembersUnreadMessagesRequest(channelUrl); + } + +private ApiResponse getEmojiByKeyWithHttpInfo(String apiToken, String emojiKey) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1038,37 +1459,71 @@ public ApiResponse getEmojiByKeyWithHttpInfo(String apiToken, Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Get an emoji category - * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - * @param apiToken (required) - * @param emojiCategoryId (required) - * @return SendBirdEmojiCategory - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdEmojiCategory getEmojiCategoryById(String apiToken, String emojiCategoryId) throws ApiException { - return getEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId).getData(); + + public class APIgetEmojiByKeyRequest { + private String apiToken; + private String emojiKey; + + private APIgetEmojiByKeyRequest(String emojiKey) { + this.emojiKey = emojiKey; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetEmojiByKeyRequest + */ + public APIgetEmojiByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute getEmojiByKey request + * @return SendBirdEmoji + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdEmoji execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getEmojiByKey request with HTTP info returned + * @return ApiResponse<SendBirdEmoji> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getEmojiByKeyWithHttpInfo(apiToken, emojiKey); + } } /** - * Get an emoji category - * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - * @param apiToken (required) - * @param emojiCategoryId (required) - * @return ApiResponse<SendBirdEmojiCategory> + * Get an emoji + * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- + * @param emojiKey (required) + * @return getEmojiByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse getEmojiCategoryByIdWithHttpInfo(String apiToken, String emojiCategoryId) throws ApiException { + public APIgetEmojiByKeyRequest getEmojiByKey(String emojiKey) throws ApiException { + return new APIgetEmojiByKeyRequest(emojiKey); + } + +private ApiResponse getEmojiCategoryByIdWithHttpInfo(String apiToken, String emojiCategoryId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1115,35 +1570,71 @@ public ApiResponse getEmojiCategoryByIdWithHttpInfo(Strin localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List all emojis and emoji categories - * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - * @param apiToken (required) - * @return ListAllEmojisAndEmojiCategoriesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListAllEmojisAndEmojiCategoriesResponse listAllEmojisAndEmojiCategories(String apiToken) throws ApiException { - return listAllEmojisAndEmojiCategoriesWithHttpInfo(apiToken).getData(); + + public class APIgetEmojiCategoryByIdRequest { + private String apiToken; + private String emojiCategoryId; + + private APIgetEmojiCategoryByIdRequest(String emojiCategoryId) { + this.emojiCategoryId = emojiCategoryId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetEmojiCategoryByIdRequest + */ + public APIgetEmojiCategoryByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute getEmojiCategoryById request + * @return SendBirdEmojiCategory + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdEmojiCategory execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getEmojiCategoryById request with HTTP info returned + * @return ApiResponse<SendBirdEmojiCategory> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId); + } } /** - * List all emojis and emoji categories - * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - * @param apiToken (required) - * @return ApiResponse<ListAllEmojisAndEmojiCategoriesResponse> + * Get an emoji category + * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. + * @param emojiCategoryId (required) + * @return getEmojiCategoryByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listAllEmojisAndEmojiCategoriesWithHttpInfo(String apiToken) throws ApiException { + public APIgetEmojiCategoryByIdRequest getEmojiCategoryById(String emojiCategoryId) throws ApiException { + return new APIgetEmojiCategoryByIdRequest(emojiCategoryId); + } + +private ApiResponse listAllEmojisAndEmojiCategoriesWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1184,45 +1675,68 @@ public ApiResponse listAllEmojisAndEmoj localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List announcements - * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param order (optional) - * @param status (optional) - * @param announcementGroup (optional) - * @return ListAnnouncementsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListAnnouncementsResponse listAnnouncements(String apiToken, String token, Integer limit, String order, String status, String announcementGroup) throws ApiException { - return listAnnouncementsWithHttpInfo(apiToken, token, limit, order, status, announcementGroup).getData(); + + public class APIlistAllEmojisAndEmojiCategoriesRequest { + private String apiToken; + + private APIlistAllEmojisAndEmojiCategoriesRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistAllEmojisAndEmojiCategoriesRequest + */ + public APIlistAllEmojisAndEmojiCategoriesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listAllEmojisAndEmojiCategories request + * @return ListAllEmojisAndEmojiCategoriesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListAllEmojisAndEmojiCategoriesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listAllEmojisAndEmojiCategories request with HTTP info returned + * @return ApiResponse<ListAllEmojisAndEmojiCategoriesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listAllEmojisAndEmojiCategoriesWithHttpInfo(apiToken); + } } /** - * List announcements - * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param order (optional) - * @param status (optional) - * @param announcementGroup (optional) - * @return ApiResponse<ListAnnouncementsResponse> + * List all emojis and emoji categories + * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories + * @return listAllEmojisAndEmojiCategoriesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listAnnouncementsWithHttpInfo(String apiToken, String token, Integer limit, String order, String status, String announcementGroup) throws ApiException { + public APIlistAllEmojisAndEmojiCategoriesRequest listAllEmojisAndEmojiCategories() throws ApiException { + return new APIlistAllEmojisAndEmojiCategoriesRequest(); + } + +private ApiResponse listAnnouncementsWithHttpInfo(String apiToken, String token, Integer limit, String order, String status, String announcementGroup) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1268,35 +1782,123 @@ public ApiResponse listAnnouncementsWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List emojis - * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis - * @param apiToken (required) - * @return ListEmojisResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListEmojisResponse listEmojis(String apiToken) throws ApiException { - return listEmojisWithHttpInfo(apiToken).getData(); + + public class APIlistAnnouncementsRequest { + private String apiToken; + private String token; + private Integer limit; + private String order; + private String status; + private String announcementGroup; + + private APIlistAnnouncementsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistAnnouncementsRequest + */ + public APIlistAnnouncementsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistAnnouncementsRequest + */ + public APIlistAnnouncementsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistAnnouncementsRequest + */ + public APIlistAnnouncementsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set order + * @param order (optional) + * @return APIlistAnnouncementsRequest + */ + public APIlistAnnouncementsRequest order(String order) { + this.order = order; + return this; + } + + /** + * Set status + * @param status (optional) + * @return APIlistAnnouncementsRequest + */ + public APIlistAnnouncementsRequest status(String status) { + this.status = status; + return this; + } + + /** + * Set announcementGroup + * @param announcementGroup (optional) + * @return APIlistAnnouncementsRequest + */ + public APIlistAnnouncementsRequest announcementGroup(String announcementGroup) { + this.announcementGroup = announcementGroup; + return this; + } + + /** + * Execute listAnnouncements request + * @return ListAnnouncementsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListAnnouncementsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listAnnouncements request with HTTP info returned + * @return ApiResponse<ListAnnouncementsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listAnnouncementsWithHttpInfo(apiToken, token, limit, order, status, announcementGroup); + } } /** - * List emojis - * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis - * @param apiToken (required) - * @return ApiResponse<ListEmojisResponse> + * List announcements + * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- + * @return listAnnouncementsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listEmojisWithHttpInfo(String apiToken) throws ApiException { + public APIlistAnnouncementsRequest listAnnouncements() throws ApiException { + return new APIlistAnnouncementsRequest(); + } + +private ApiResponse listEmojisWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1337,75 +1939,68 @@ public ApiResponse listEmojisWithHttpInfo(String apiToken) t localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List messages - * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageTs (optional) - * @param messageId (optional) - * @param prevLimit (optional) - * @param nextLimit (optional) - * @param include (optional) - * @param reverse (optional) - * @param senderId (optional) - * @param senderIds (optional) - * @param operatorFilter (optional) - * @param customTypes (optional) - * @param messageType (optional) - * @param includingRemoved (optional) - * @param includeReactions (optional) - * @param withSortedMetaArray (optional) - * @param showSubchannelMessagesOnly (optional) - * @param userId (optional) - * @param customType (optional) - * @param withMetaArray (optional) - * @return ListMessagesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListMessagesResponse listMessages(String apiToken, String channelType, String channelUrl, String messageTs, Integer messageId, Integer prevLimit, Integer nextLimit, Boolean include, Boolean reverse, String senderId, String senderIds, String operatorFilter, String customTypes, String messageType, Boolean includingRemoved, Boolean includeReactions, Boolean withSortedMetaArray, Boolean showSubchannelMessagesOnly, String userId, String customType, Boolean withMetaArray) throws ApiException { - return listMessagesWithHttpInfo(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray).getData(); + + public class APIlistEmojisRequest { + private String apiToken; + + private APIlistEmojisRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistEmojisRequest + */ + public APIlistEmojisRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listEmojis request + * @return ListEmojisResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListEmojisResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listEmojis request with HTTP info returned + * @return ApiResponse<ListEmojisResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listEmojisWithHttpInfo(apiToken); + } } /** - * List messages - * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageTs (optional) - * @param messageId (optional) - * @param prevLimit (optional) - * @param nextLimit (optional) - * @param include (optional) - * @param reverse (optional) - * @param senderId (optional) - * @param senderIds (optional) - * @param operatorFilter (optional) - * @param customTypes (optional) - * @param messageType (optional) - * @param includingRemoved (optional) - * @param includeReactions (optional) - * @param withSortedMetaArray (optional) - * @param showSubchannelMessagesOnly (optional) - * @param userId (optional) - * @param customType (optional) - * @param withMetaArray (optional) - * @return ApiResponse<ListMessagesResponse> + * List emojis + * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis + * @return listEmojisRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listMessagesWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageTs, Integer messageId, Integer prevLimit, Integer nextLimit, Boolean include, Boolean reverse, String senderId, String senderIds, String operatorFilter, String customTypes, String messageType, Boolean includingRemoved, Boolean includeReactions, Boolean withSortedMetaArray, Boolean showSubchannelMessagesOnly, String userId, String customType, Boolean withMetaArray) throws ApiException { + public APIlistEmojisRequest listEmojis() throws ApiException { + return new APIlistEmojisRequest(); + } + +private ApiResponse listMessagesWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageTs, Integer messageId, Integer prevLimit, Integer nextLimit, Boolean include, Boolean reverse, String senderId, String senderIds, String operatorFilter, String customTypes, String messageType, Boolean includingRemoved, Boolean includeReactions, Boolean withSortedMetaArray, Boolean showSubchannelMessagesOnly, String userId, String customType, Boolean withMetaArray) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1476,43 +2071,272 @@ public ApiResponse listMessagesWithHttpInfo(String apiToke localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List reactions of a message - * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param listUsers (optional) - * @return ListReactionsOfMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListReactionsOfMessageResponse listReactionsOfMessage(String apiToken, String channelType, String channelUrl, String messageId, Boolean listUsers) throws ApiException { - return listReactionsOfMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, listUsers).getData(); + + public class APIlistMessagesRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageTs; + private Integer messageId; + private Integer prevLimit; + private Integer nextLimit; + private Boolean include; + private Boolean reverse; + private String senderId; + private String senderIds; + private String operatorFilter; + private String customTypes; + private String messageType; + private Boolean includingRemoved; + private Boolean includeReactions; + private Boolean withSortedMetaArray; + private Boolean showSubchannelMessagesOnly; + private String userId; + private String customType; + private Boolean withMetaArray; + + private APIlistMessagesRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set messageTs + * @param messageTs (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest messageTs(String messageTs) { + this.messageTs = messageTs; + return this; + } + + /** + * Set messageId + * @param messageId (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest messageId(Integer messageId) { + this.messageId = messageId; + return this; + } + + /** + * Set prevLimit + * @param prevLimit (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest prevLimit(Integer prevLimit) { + this.prevLimit = prevLimit; + return this; + } + + /** + * Set nextLimit + * @param nextLimit (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest nextLimit(Integer nextLimit) { + this.nextLimit = nextLimit; + return this; + } + + /** + * Set include + * @param include (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest include(Boolean include) { + this.include = include; + return this; + } + + /** + * Set reverse + * @param reverse (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest reverse(Boolean reverse) { + this.reverse = reverse; + return this; + } + + /** + * Set senderId + * @param senderId (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest senderId(String senderId) { + this.senderId = senderId; + return this; + } + + /** + * Set senderIds + * @param senderIds (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest senderIds(String senderIds) { + this.senderIds = senderIds; + return this; + } + + /** + * Set operatorFilter + * @param operatorFilter (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest operatorFilter(String operatorFilter) { + this.operatorFilter = operatorFilter; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest customTypes(String customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set messageType + * @param messageType (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest messageType(String messageType) { + this.messageType = messageType; + return this; + } + + /** + * Set includingRemoved + * @param includingRemoved (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest includingRemoved(Boolean includingRemoved) { + this.includingRemoved = includingRemoved; + return this; + } + + /** + * Set includeReactions + * @param includeReactions (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest includeReactions(Boolean includeReactions) { + this.includeReactions = includeReactions; + return this; + } + + /** + * Set withSortedMetaArray + * @param withSortedMetaArray (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest withSortedMetaArray(Boolean withSortedMetaArray) { + this.withSortedMetaArray = withSortedMetaArray; + return this; + } + + /** + * Set showSubchannelMessagesOnly + * @param showSubchannelMessagesOnly (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest showSubchannelMessagesOnly(Boolean showSubchannelMessagesOnly) { + this.showSubchannelMessagesOnly = showSubchannelMessagesOnly; + return this; + } + + /** + * Set userId + * @param userId (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest userId(String userId) { + this.userId = userId; + return this; + } + + /** + * Set customType + * @param customType (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Set withMetaArray + * @param withMetaArray (optional) + * @return APIlistMessagesRequest + */ + public APIlistMessagesRequest withMetaArray(Boolean withMetaArray) { + this.withMetaArray = withMetaArray; + return this; + } + + /** + * Execute listMessages request + * @return ListMessagesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListMessagesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listMessages request with HTTP info returned + * @return ApiResponse<ListMessagesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMessagesWithHttpInfo(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray); + } } /** - * List reactions of a message - * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - * @param apiToken (required) + * List messages + * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. * @param channelType (required) * @param channelUrl (required) - * @param messageId (required) - * @param listUsers (optional) - * @return ApiResponse<ListReactionsOfMessageResponse> + * @return listMessagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listReactionsOfMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, Boolean listUsers) throws ApiException { + public APIlistMessagesRequest listMessages(String channelType, String channelUrl) throws ApiException { + return new APIlistMessagesRequest(channelType, channelUrl); + } + +private ApiResponse listReactionsOfMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, Boolean listUsers) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1572,38 +2396,88 @@ public ApiResponse listReactionsOfMessageWithHtt localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Migrate messages - * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - * @param apiToken (required) - * @param targetChannelUrl (required) - * @param body (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void migrateMessagesByUrl(String apiToken, String targetChannelUrl, Object body) throws ApiException { - migrateMessagesByUrlWithHttpInfo(apiToken, targetChannelUrl, body); + + public class APIlistReactionsOfMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private Boolean listUsers; + + private APIlistReactionsOfMessageRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistReactionsOfMessageRequest + */ + public APIlistReactionsOfMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set listUsers + * @param listUsers (optional) + * @return APIlistReactionsOfMessageRequest + */ + public APIlistReactionsOfMessageRequest listUsers(Boolean listUsers) { + this.listUsers = listUsers; + return this; + } + + /** + * Execute listReactionsOfMessage request + * @return ListReactionsOfMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListReactionsOfMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listReactionsOfMessage request with HTTP info returned + * @return ApiResponse<ListReactionsOfMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listReactionsOfMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, listUsers); + } } /** - * Migrate messages - * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - * @param apiToken (required) - * @param targetChannelUrl (required) - * @param body (optional) - * @return ApiResponse<Void> + * List reactions of a message + * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return listReactionsOfMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse migrateMessagesByUrlWithHttpInfo(String apiToken, String targetChannelUrl, Object body) throws ApiException { + public APIlistReactionsOfMessageRequest listReactionsOfMessage(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIlistReactionsOfMessageRequest(channelType, channelUrl, messageId); + } + +private ApiResponse migrateMessagesByUrlWithHttpInfo(String apiToken, String targetChannelUrl, Object body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'apiToken' is set @@ -1648,43 +2522,82 @@ public ApiResponse migrateMessagesByUrlWithHttpInfo(String apiToken, Strin localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Remove extra data from a message - * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param keys (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object removeExtraDataFromMessage(String apiToken, String channelType, String channelUrl, String messageId, List keys) throws ApiException { - return removeExtraDataFromMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, keys).getData(); + + public class APImigrateMessagesByUrlRequest { + private String apiToken; + private String targetChannelUrl; + private Object body; + + private APImigrateMessagesByUrlRequest(String targetChannelUrl) { + this.targetChannelUrl = targetChannelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APImigrateMessagesByUrlRequest + */ + public APImigrateMessagesByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APImigrateMessagesByUrlRequest + */ + public APImigrateMessagesByUrlRequest body(Object body) { + this.body = body; + return this; + } + + /** + * Execute migrateMessagesByUrl request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute migrateMessagesByUrl request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return migrateMessagesByUrlWithHttpInfo(apiToken, targetChannelUrl, body); + } } /** - * Remove extra data from a message - * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param keys (optional) - * @return ApiResponse<Object> + * Migrate messages + * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- + * @param targetChannelUrl (required) + * @return migrateMessagesByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse removeExtraDataFromMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, List keys) throws ApiException { + public APImigrateMessagesByUrlRequest migrateMessagesByUrl(String targetChannelUrl) throws ApiException { + return new APImigrateMessagesByUrlRequest(targetChannelUrl); + } + +private ApiResponse removeExtraDataFromMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, List keys) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1744,45 +2657,88 @@ public ApiResponse removeExtraDataFromMessageWithHttpInfo(String apiToke localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Remove a reaction from a message - * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param userId (optional) - * @param reaction (optional) - * @return RemoveReactionFromAMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RemoveReactionFromAMessageResponse removeReactionFromAMessage(String apiToken, String channelType, String channelUrl, String messageId, String userId, String reaction) throws ApiException { - return removeReactionFromAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, userId, reaction).getData(); + + public class APIremoveExtraDataFromMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private List keys; + + private APIremoveExtraDataFromMessageRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIremoveExtraDataFromMessageRequest + */ + public APIremoveExtraDataFromMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set keys + * @param keys (optional) + * @return APIremoveExtraDataFromMessageRequest + */ + public APIremoveExtraDataFromMessageRequest keys(List keys) { + this.keys = keys; + return this; + } + + /** + * Execute removeExtraDataFromMessage request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute removeExtraDataFromMessage request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return removeExtraDataFromMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, keys); + } } /** - * Remove a reaction from a message - * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- - * @param apiToken (required) + * Remove extra data from a message + * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- * @param channelType (required) * @param channelUrl (required) * @param messageId (required) - * @param userId (optional) - * @param reaction (optional) - * @return ApiResponse<RemoveReactionFromAMessageResponse> + * @return removeExtraDataFromMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse removeReactionFromAMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, String userId, String reaction) throws ApiException { + public APIremoveExtraDataFromMessageRequest removeExtraDataFromMessage(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIremoveExtraDataFromMessageRequest(channelType, channelUrl, messageId); + } + +private ApiResponse removeReactionFromAMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, String userId, String reaction) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1843,41 +2799,99 @@ public ApiResponse removeReactionFromAMessag localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Send a message - * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param sendMessageData (optional) - * @return SendBirdMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdMessageResponse sendMessage(String apiToken, String channelType, String channelUrl, SendMessageData sendMessageData) throws ApiException { - return sendMessageWithHttpInfo(apiToken, channelType, channelUrl, sendMessageData).getData(); + + public class APIremoveReactionFromAMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private String userId; + private String reaction; + + private APIremoveReactionFromAMessageRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIremoveReactionFromAMessageRequest + */ + public APIremoveReactionFromAMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set userId + * @param userId (optional) + * @return APIremoveReactionFromAMessageRequest + */ + public APIremoveReactionFromAMessageRequest userId(String userId) { + this.userId = userId; + return this; + } + + /** + * Set reaction + * @param reaction (optional) + * @return APIremoveReactionFromAMessageRequest + */ + public APIremoveReactionFromAMessageRequest reaction(String reaction) { + this.reaction = reaction; + return this; + } + + /** + * Execute removeReactionFromAMessage request + * @return RemoveReactionFromAMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RemoveReactionFromAMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute removeReactionFromAMessage request with HTTP info returned + * @return ApiResponse<RemoveReactionFromAMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return removeReactionFromAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, userId, reaction); + } } /** - * Send a message - * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - * @param apiToken (required) + * Remove a reaction from a message + * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- * @param channelType (required) * @param channelUrl (required) - * @param sendMessageData (optional) - * @return ApiResponse<SendBirdMessageResponse> + * @param messageId (required) + * @return removeReactionFromAMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse sendMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, SendMessageData sendMessageData) throws ApiException { + public APIremoveReactionFromAMessageRequest removeReactionFromAMessage(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIremoveReactionFromAMessageRequest(channelType, channelUrl, messageId); + } + +private ApiResponse sendMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, SendMessageData sendMessageData) throws ApiException { Object localVarPostBody = sendMessageData; // verify the required parameter 'apiToken' is set @@ -1930,43 +2944,85 @@ public ApiResponse sendMessageWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Translate a message into other languages - * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param translateMessageIntoOtherLanguagesData (optional) - * @return SendBirdMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdMessageResponse translateMessageIntoOtherLanguages(String apiToken, String channelType, String channelUrl, String messageId, TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData) throws ApiException { - return translateMessageIntoOtherLanguagesWithHttpInfo(apiToken, channelType, channelUrl, messageId, translateMessageIntoOtherLanguagesData).getData(); + + public class APIsendMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private SendMessageData sendMessageData; + + private APIsendMessageRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIsendMessageRequest + */ + public APIsendMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set sendMessageData + * @param sendMessageData (optional) + * @return APIsendMessageRequest + */ + public APIsendMessageRequest sendMessageData(SendMessageData sendMessageData) { + this.sendMessageData = sendMessageData; + return this; + } + + /** + * Execute sendMessage request + * @return SendBirdMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute sendMessage request with HTTP info returned + * @return ApiResponse<SendBirdMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return sendMessageWithHttpInfo(apiToken, channelType, channelUrl, sendMessageData); + } } /** - * Translate a message into other languages - * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- - * @param apiToken (required) + * Send a message + * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- * @param channelType (required) * @param channelUrl (required) - * @param messageId (required) - * @param translateMessageIntoOtherLanguagesData (optional) - * @return ApiResponse<SendBirdMessageResponse> + * @return sendMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse translateMessageIntoOtherLanguagesWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData) throws ApiException { + public APIsendMessageRequest sendMessage(String channelType, String channelUrl) throws ApiException { + return new APIsendMessageRequest(channelType, channelUrl); + } + +private ApiResponse translateMessageIntoOtherLanguagesWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData) throws ApiException { Object localVarPostBody = translateMessageIntoOtherLanguagesData; // verify the required parameter 'apiToken' is set @@ -2025,39 +3081,88 @@ public ApiResponse translateMessageIntoOtherLanguagesWi localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update an emoji category URL - * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- - * @param apiToken (required) - * @param emojiCategoryId (required) - * @param updateEmojiCategoryUrlByIdData (optional) - * @return SendBirdEmojiCategory - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdEmojiCategory updateEmojiCategoryUrlById(String apiToken, String emojiCategoryId, UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData) throws ApiException { - return updateEmojiCategoryUrlByIdWithHttpInfo(apiToken, emojiCategoryId, updateEmojiCategoryUrlByIdData).getData(); + + public class APItranslateMessageIntoOtherLanguagesRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData; + + private APItranslateMessageIntoOtherLanguagesRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APItranslateMessageIntoOtherLanguagesRequest + */ + public APItranslateMessageIntoOtherLanguagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set translateMessageIntoOtherLanguagesData + * @param translateMessageIntoOtherLanguagesData (optional) + * @return APItranslateMessageIntoOtherLanguagesRequest + */ + public APItranslateMessageIntoOtherLanguagesRequest translateMessageIntoOtherLanguagesData(TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData) { + this.translateMessageIntoOtherLanguagesData = translateMessageIntoOtherLanguagesData; + return this; + } + + /** + * Execute translateMessageIntoOtherLanguages request + * @return SendBirdMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute translateMessageIntoOtherLanguages request with HTTP info returned + * @return ApiResponse<SendBirdMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return translateMessageIntoOtherLanguagesWithHttpInfo(apiToken, channelType, channelUrl, messageId, translateMessageIntoOtherLanguagesData); + } } /** - * Update an emoji category URL - * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- - * @param apiToken (required) - * @param emojiCategoryId (required) - * @param updateEmojiCategoryUrlByIdData (optional) - * @return ApiResponse<SendBirdEmojiCategory> + * Translate a message into other languages + * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return translateMessageIntoOtherLanguagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateEmojiCategoryUrlByIdWithHttpInfo(String apiToken, String emojiCategoryId, UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData) throws ApiException { + public APItranslateMessageIntoOtherLanguagesRequest translateMessageIntoOtherLanguages(String channelType, String channelUrl, String messageId) throws ApiException { + return new APItranslateMessageIntoOtherLanguagesRequest(channelType, channelUrl, messageId); + } + +private ApiResponse updateEmojiCategoryUrlByIdWithHttpInfo(String apiToken, String emojiCategoryId, UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData) throws ApiException { Object localVarPostBody = updateEmojiCategoryUrlByIdData; // verify the required parameter 'apiToken' is set @@ -2104,39 +3209,82 @@ public ApiResponse updateEmojiCategoryUrlByIdWithHttpInfo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update an emoji URL - * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- - * @param apiToken (required) - * @param emojiKey (required) - * @param updateEmojiUrlByKeyData (optional) - * @return SendBirdEmoji - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdEmoji updateEmojiUrlByKey(String apiToken, String emojiKey, UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData) throws ApiException { - return updateEmojiUrlByKeyWithHttpInfo(apiToken, emojiKey, updateEmojiUrlByKeyData).getData(); + + public class APIupdateEmojiCategoryUrlByIdRequest { + private String apiToken; + private String emojiCategoryId; + private UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData; + + private APIupdateEmojiCategoryUrlByIdRequest(String emojiCategoryId) { + this.emojiCategoryId = emojiCategoryId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateEmojiCategoryUrlByIdRequest + */ + public APIupdateEmojiCategoryUrlByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateEmojiCategoryUrlByIdData + * @param updateEmojiCategoryUrlByIdData (optional) + * @return APIupdateEmojiCategoryUrlByIdRequest + */ + public APIupdateEmojiCategoryUrlByIdRequest updateEmojiCategoryUrlByIdData(UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData) { + this.updateEmojiCategoryUrlByIdData = updateEmojiCategoryUrlByIdData; + return this; + } + + /** + * Execute updateEmojiCategoryUrlById request + * @return SendBirdEmojiCategory + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdEmojiCategory execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateEmojiCategoryUrlById request with HTTP info returned + * @return ApiResponse<SendBirdEmojiCategory> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateEmojiCategoryUrlByIdWithHttpInfo(apiToken, emojiCategoryId, updateEmojiCategoryUrlByIdData); + } } /** - * Update an emoji URL - * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- - * @param apiToken (required) - * @param emojiKey (required) - * @param updateEmojiUrlByKeyData (optional) - * @return ApiResponse<SendBirdEmoji> + * Update an emoji category URL + * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- + * @param emojiCategoryId (required) + * @return updateEmojiCategoryUrlByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateEmojiUrlByKeyWithHttpInfo(String apiToken, String emojiKey, UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData) throws ApiException { + public APIupdateEmojiCategoryUrlByIdRequest updateEmojiCategoryUrlById(String emojiCategoryId) throws ApiException { + return new APIupdateEmojiCategoryUrlByIdRequest(emojiCategoryId); + } + +private ApiResponse updateEmojiUrlByKeyWithHttpInfo(String apiToken, String emojiKey, UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData) throws ApiException { Object localVarPostBody = updateEmojiUrlByKeyData; // verify the required parameter 'apiToken' is set @@ -2183,43 +3331,82 @@ public ApiResponse updateEmojiUrlByKeyWithHttpInfo(String apiToke localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update extra data in a message - * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param updateExtraDataInMessageData (optional) - * @return UpdateExtraDataInMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateExtraDataInMessageResponse updateExtraDataInMessage(String apiToken, String channelType, String channelUrl, String messageId, UpdateExtraDataInMessageData updateExtraDataInMessageData) throws ApiException { - return updateExtraDataInMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, updateExtraDataInMessageData).getData(); + + public class APIupdateEmojiUrlByKeyRequest { + private String apiToken; + private String emojiKey; + private UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData; + + private APIupdateEmojiUrlByKeyRequest(String emojiKey) { + this.emojiKey = emojiKey; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateEmojiUrlByKeyRequest + */ + public APIupdateEmojiUrlByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateEmojiUrlByKeyData + * @param updateEmojiUrlByKeyData (optional) + * @return APIupdateEmojiUrlByKeyRequest + */ + public APIupdateEmojiUrlByKeyRequest updateEmojiUrlByKeyData(UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData) { + this.updateEmojiUrlByKeyData = updateEmojiUrlByKeyData; + return this; + } + + /** + * Execute updateEmojiUrlByKey request + * @return SendBirdEmoji + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdEmoji execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateEmojiUrlByKey request with HTTP info returned + * @return ApiResponse<SendBirdEmoji> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateEmojiUrlByKeyWithHttpInfo(apiToken, emojiKey, updateEmojiUrlByKeyData); + } } /** - * Update extra data in a message - * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param updateExtraDataInMessageData (optional) - * @return ApiResponse<UpdateExtraDataInMessageResponse> + * Update an emoji URL + * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- + * @param emojiKey (required) + * @return updateEmojiUrlByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateExtraDataInMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, UpdateExtraDataInMessageData updateExtraDataInMessageData) throws ApiException { + public APIupdateEmojiUrlByKeyRequest updateEmojiUrlByKey(String emojiKey) throws ApiException { + return new APIupdateEmojiUrlByKeyRequest(emojiKey); + } + +private ApiResponse updateExtraDataInMessageWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, UpdateExtraDataInMessageData updateExtraDataInMessageData) throws ApiException { Object localVarPostBody = updateExtraDataInMessageData; // verify the required parameter 'apiToken' is set @@ -2278,43 +3465,88 @@ public ApiResponse updateExtraDataInMessageWit localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a message - * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param updateMessageByIdData (optional) - * @return SendBirdMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdMessageResponse updateMessageById(String apiToken, String channelType, String channelUrl, String messageId, UpdateMessageByIdData updateMessageByIdData) throws ApiException { - return updateMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, updateMessageByIdData).getData(); + + public class APIupdateExtraDataInMessageRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private UpdateExtraDataInMessageData updateExtraDataInMessageData; + + private APIupdateExtraDataInMessageRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateExtraDataInMessageRequest + */ + public APIupdateExtraDataInMessageRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateExtraDataInMessageData + * @param updateExtraDataInMessageData (optional) + * @return APIupdateExtraDataInMessageRequest + */ + public APIupdateExtraDataInMessageRequest updateExtraDataInMessageData(UpdateExtraDataInMessageData updateExtraDataInMessageData) { + this.updateExtraDataInMessageData = updateExtraDataInMessageData; + return this; + } + + /** + * Execute updateExtraDataInMessage request + * @return UpdateExtraDataInMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateExtraDataInMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateExtraDataInMessage request with HTTP info returned + * @return ApiResponse<UpdateExtraDataInMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateExtraDataInMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, updateExtraDataInMessageData); + } } /** - * Update a message - * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- - * @param apiToken (required) + * Update extra data in a message + * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- * @param channelType (required) * @param channelUrl (required) * @param messageId (required) - * @param updateMessageByIdData (optional) - * @return ApiResponse<SendBirdMessageResponse> + * @return updateExtraDataInMessageRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, UpdateMessageByIdData updateMessageByIdData) throws ApiException { + public APIupdateExtraDataInMessageRequest updateExtraDataInMessage(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIupdateExtraDataInMessageRequest(channelType, channelUrl, messageId); + } + +private ApiResponse updateMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, UpdateMessageByIdData updateMessageByIdData) throws ApiException { Object localVarPostBody = updateMessageByIdData; // verify the required parameter 'apiToken' is set @@ -2373,37 +3605,88 @@ public ApiResponse updateMessageByIdWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Use default emojis - * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis - * @param apiToken (required) - * @param useDefaultEmojisData (optional) - * @return UseDefaultEmojisResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UseDefaultEmojisResponse useDefaultEmojis(String apiToken, UseDefaultEmojisData useDefaultEmojisData) throws ApiException { - return useDefaultEmojisWithHttpInfo(apiToken, useDefaultEmojisData).getData(); + + public class APIupdateMessageByIdRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private UpdateMessageByIdData updateMessageByIdData; + + private APIupdateMessageByIdRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateMessageByIdRequest + */ + public APIupdateMessageByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateMessageByIdData + * @param updateMessageByIdData (optional) + * @return APIupdateMessageByIdRequest + */ + public APIupdateMessageByIdRequest updateMessageByIdData(UpdateMessageByIdData updateMessageByIdData) { + this.updateMessageByIdData = updateMessageByIdData; + return this; + } + + /** + * Execute updateMessageById request + * @return SendBirdMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateMessageById request with HTTP info returned + * @return ApiResponse<SendBirdMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, updateMessageByIdData); + } } /** - * Use default emojis - * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis - * @param apiToken (required) - * @param useDefaultEmojisData (optional) - * @return ApiResponse<UseDefaultEmojisResponse> + * Update a message + * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return updateMessageByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse useDefaultEmojisWithHttpInfo(String apiToken, UseDefaultEmojisData useDefaultEmojisData) throws ApiException { + public APIupdateMessageByIdRequest updateMessageById(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIupdateMessageByIdRequest(channelType, channelUrl, messageId); + } + +private ApiResponse useDefaultEmojisWithHttpInfo(String apiToken, UseDefaultEmojisData useDefaultEmojisData) throws ApiException { Object localVarPostBody = useDefaultEmojisData; // verify the required parameter 'apiToken' is set @@ -2444,45 +3727,79 @@ public ApiResponse useDefaultEmojisWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a message - * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param withSortedMetaArray (optional) - * @param withMetaArray (optional) - * @return SendBirdMessageResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdMessageResponse viewMessageById(String apiToken, String channelType, String channelUrl, String messageId, Boolean withSortedMetaArray, Boolean withMetaArray) throws ApiException { - return viewMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, withSortedMetaArray, withMetaArray).getData(); + + public class APIuseDefaultEmojisRequest { + private String apiToken; + private UseDefaultEmojisData useDefaultEmojisData; + + private APIuseDefaultEmojisRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIuseDefaultEmojisRequest + */ + public APIuseDefaultEmojisRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set useDefaultEmojisData + * @param useDefaultEmojisData (optional) + * @return APIuseDefaultEmojisRequest + */ + public APIuseDefaultEmojisRequest useDefaultEmojisData(UseDefaultEmojisData useDefaultEmojisData) { + this.useDefaultEmojisData = useDefaultEmojisData; + return this; + } + + /** + * Execute useDefaultEmojis request + * @return UseDefaultEmojisResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UseDefaultEmojisResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute useDefaultEmojis request with HTTP info returned + * @return ApiResponse<UseDefaultEmojisResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return useDefaultEmojisWithHttpInfo(apiToken, useDefaultEmojisData); + } } /** - * View a message - * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param withSortedMetaArray (optional) - * @param withMetaArray (optional) - * @return ApiResponse<SendBirdMessageResponse> + * Use default emojis + * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis + * @return useDefaultEmojisRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, Boolean withSortedMetaArray, Boolean withMetaArray) throws ApiException { + public APIuseDefaultEmojisRequest useDefaultEmojis() throws ApiException { + return new APIuseDefaultEmojisRequest(); + } + +private ApiResponse viewMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, Boolean withSortedMetaArray, Boolean withMetaArray) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2543,39 +3860,99 @@ public ApiResponse viewMessageByIdWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View total number of messages in a channel - * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @return ViewTotalNumberOfMessagesInChannelResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewTotalNumberOfMessagesInChannelResponse viewTotalNumberOfMessagesInChannel(String apiToken, String channelType, String channelUrl) throws ApiException { - return viewTotalNumberOfMessagesInChannelWithHttpInfo(apiToken, channelType, channelUrl).getData(); + + public class APIviewMessageByIdRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private Boolean withSortedMetaArray; + private Boolean withMetaArray; + + private APIviewMessageByIdRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewMessageByIdRequest + */ + public APIviewMessageByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set withSortedMetaArray + * @param withSortedMetaArray (optional) + * @return APIviewMessageByIdRequest + */ + public APIviewMessageByIdRequest withSortedMetaArray(Boolean withSortedMetaArray) { + this.withSortedMetaArray = withSortedMetaArray; + return this; + } + + /** + * Set withMetaArray + * @param withMetaArray (optional) + * @return APIviewMessageByIdRequest + */ + public APIviewMessageByIdRequest withMetaArray(Boolean withMetaArray) { + this.withMetaArray = withMetaArray; + return this; + } + + /** + * Execute viewMessageById request + * @return SendBirdMessageResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdMessageResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewMessageById request with HTTP info returned + * @return ApiResponse<SendBirdMessageResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, withSortedMetaArray, withMetaArray); + } } /** - * View total number of messages in a channel - * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - * @param apiToken (required) + * View a message + * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. * @param channelType (required) * @param channelUrl (required) - * @return ApiResponse<ViewTotalNumberOfMessagesInChannelResponse> + * @param messageId (required) + * @return viewMessageByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewTotalNumberOfMessagesInChannelWithHttpInfo(String apiToken, String channelType, String channelUrl) throws ApiException { + public APIviewMessageByIdRequest viewMessageById(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIviewMessageByIdRequest(channelType, channelUrl, messageId); + } + +private ApiResponse viewTotalNumberOfMessagesInChannelWithHttpInfo(String apiToken, String channelType, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2628,4 +4005,70 @@ public ApiResponse viewTotalNumberOf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewTotalNumberOfMessagesInChannelRequest { + private String apiToken; + private String channelType; + private String channelUrl; + + private APIviewTotalNumberOfMessagesInChannelRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewTotalNumberOfMessagesInChannelRequest + */ + public APIviewTotalNumberOfMessagesInChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewTotalNumberOfMessagesInChannel request + * @return ViewTotalNumberOfMessagesInChannelResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewTotalNumberOfMessagesInChannelResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewTotalNumberOfMessagesInChannel request with HTTP info returned + * @return ApiResponse<ViewTotalNumberOfMessagesInChannelResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewTotalNumberOfMessagesInChannelWithHttpInfo(apiToken, channelType, channelUrl); + } + } + + /** + * View total number of messages in a channel + * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @return viewTotalNumberOfMessagesInChannelRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewTotalNumberOfMessagesInChannelRequest viewTotalNumberOfMessagesInChannel(String channelType, String channelUrl) throws ApiException { + return new APIviewTotalNumberOfMessagesInChannelRequest(channelType, channelUrl); + } } diff --git a/src/main/java/org/sendbird/client/api/MetadataApi.java b/src/main/java/org/sendbird/client/api/MetadataApi.java index e8ea392d..3679a2be 100644 --- a/src/main/java/org/sendbird/client/api/MetadataApi.java +++ b/src/main/java/org/sendbird/client/api/MetadataApi.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class MetadataApi { private ApiClient apiClient; @@ -54,41 +54,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Create a channel metacounter - * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param createChannelMetacounterData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object createChannelMetacounter(String apiToken, String channelType, String channelUrl, CreateChannelMetacounterData createChannelMetacounterData) throws ApiException { - return createChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, createChannelMetacounterData).getData(); - } - /** - * Create a channel metacounter - * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param createChannelMetacounterData (optional) - * @return ApiResponse<Object> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse createChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl, CreateChannelMetacounterData createChannelMetacounterData) throws ApiException { +private ApiResponse createChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl, CreateChannelMetacounterData createChannelMetacounterData) throws ApiException { Object localVarPostBody = createChannelMetacounterData; // verify the required parameter 'apiToken' is set @@ -141,41 +108,85 @@ public ApiResponse createChannelMetacounterWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Create a channel metadata - * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param createChannelMetadataData (optional) - * @return CreateChannelMetadataResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public CreateChannelMetadataResponse createChannelMetadata(String apiToken, String channelType, String channelUrl, CreateChannelMetadataData createChannelMetadataData) throws ApiException { - return createChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, createChannelMetadataData).getData(); + + public class APIcreateChannelMetacounterRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private CreateChannelMetacounterData createChannelMetacounterData; + + private APIcreateChannelMetacounterRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcreateChannelMetacounterRequest + */ + public APIcreateChannelMetacounterRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set createChannelMetacounterData + * @param createChannelMetacounterData (optional) + * @return APIcreateChannelMetacounterRequest + */ + public APIcreateChannelMetacounterRequest createChannelMetacounterData(CreateChannelMetacounterData createChannelMetacounterData) { + this.createChannelMetacounterData = createChannelMetacounterData; + return this; + } + + /** + * Execute createChannelMetacounter request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute createChannelMetacounter request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, createChannelMetacounterData); + } } /** - * Create a channel metadata - * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - * @param apiToken (required) + * Create a channel metacounter + * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- * @param channelType (required) * @param channelUrl (required) - * @param createChannelMetadataData (optional) - * @return ApiResponse<CreateChannelMetadataResponse> + * @return createChannelMetacounterRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse createChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, CreateChannelMetadataData createChannelMetadataData) throws ApiException { + public APIcreateChannelMetacounterRequest createChannelMetacounter(String channelType, String channelUrl) throws ApiException { + return new APIcreateChannelMetacounterRequest(channelType, channelUrl); + } + +private ApiResponse createChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, CreateChannelMetadataData createChannelMetadataData) throws ApiException { Object localVarPostBody = createChannelMetadataData; // verify the required parameter 'apiToken' is set @@ -228,39 +239,85 @@ public ApiResponse createChannelMetadataWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Create a user metadata - * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param createUserMetadataData (optional) - * @return CreateUserMetadataResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public CreateUserMetadataResponse createUserMetadata(String apiToken, String userId, CreateUserMetadataData createUserMetadataData) throws ApiException { - return createUserMetadataWithHttpInfo(apiToken, userId, createUserMetadataData).getData(); + + public class APIcreateChannelMetadataRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private CreateChannelMetadataData createChannelMetadataData; + + private APIcreateChannelMetadataRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcreateChannelMetadataRequest + */ + public APIcreateChannelMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set createChannelMetadataData + * @param createChannelMetadataData (optional) + * @return APIcreateChannelMetadataRequest + */ + public APIcreateChannelMetadataRequest createChannelMetadataData(CreateChannelMetadataData createChannelMetadataData) { + this.createChannelMetadataData = createChannelMetadataData; + return this; + } + + /** + * Execute createChannelMetadata request + * @return CreateChannelMetadataResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public CreateChannelMetadataResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute createChannelMetadata request with HTTP info returned + * @return ApiResponse<CreateChannelMetadataResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, createChannelMetadataData); + } } /** - * Create a user metadata - * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param createUserMetadataData (optional) - * @return ApiResponse<CreateUserMetadataResponse> + * Create a channel metadata + * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @return createChannelMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse createUserMetadataWithHttpInfo(String apiToken, String userId, CreateUserMetadataData createUserMetadataData) throws ApiException { + public APIcreateChannelMetadataRequest createChannelMetadata(String channelType, String channelUrl) throws ApiException { + return new APIcreateChannelMetadataRequest(channelType, channelUrl); + } + +private ApiResponse createUserMetadataWithHttpInfo(String apiToken, String userId, CreateUserMetadataData createUserMetadataData) throws ApiException { Object localVarPostBody = createUserMetadataData; // verify the required parameter 'apiToken' is set @@ -307,38 +364,82 @@ public ApiResponse createUserMetadataWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete a channel metacounter - When deleting all items of a channel metacounter - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteChannelMetacounter(String apiToken, String channelType, String channelUrl) throws ApiException { - deleteChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl); + + public class APIcreateUserMetadataRequest { + private String apiToken; + private String userId; + private CreateUserMetadataData createUserMetadataData; + + private APIcreateUserMetadataRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcreateUserMetadataRequest + */ + public APIcreateUserMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set createUserMetadataData + * @param createUserMetadataData (optional) + * @return APIcreateUserMetadataRequest + */ + public APIcreateUserMetadataRequest createUserMetadataData(CreateUserMetadataData createUserMetadataData) { + this.createUserMetadataData = createUserMetadataData; + return this; + } + + /** + * Execute createUserMetadata request + * @return CreateUserMetadataResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public CreateUserMetadataResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute createUserMetadata request with HTTP info returned + * @return ApiResponse<CreateUserMetadataResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createUserMetadataWithHttpInfo(apiToken, userId, createUserMetadataData); + } } /** - * Delete a channel metacounter - When deleting all items of a channel metacounter - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @return ApiResponse<Void> + * Create a user metadata + * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- + * @param userId (required) + * @return createUserMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl) throws ApiException { + public APIcreateUserMetadataRequest createUserMetadata(String userId) throws ApiException { + return new APIcreateUserMetadataRequest(userId); + } + +private ApiResponse deleteChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -389,40 +490,74 @@ public ApiResponse deleteChannelMetacounterWithHttpInfo(String apiToken, S localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (required) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteChannelMetacounterByKey(String apiToken, String channelType, String channelUrl, String key) throws ApiException { - deleteChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key); + + public class APIdeleteChannelMetacounterRequest { + private String apiToken; + private String channelType; + private String channelUrl; + + private APIdeleteChannelMetacounterRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteChannelMetacounterRequest + */ + public APIdeleteChannelMetacounterRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteChannelMetacounter request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteChannelMetacounter request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl); + } } /** - * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key + * Delete a channel metacounter - When deleting all items of a channel metacounter * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param apiToken (required) * @param channelType (required) * @param channelUrl (required) - * @param key (required) - * @return ApiResponse<Void> + * @return deleteChannelMetacounterRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteChannelMetacounterByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { + public APIdeleteChannelMetacounterRequest deleteChannelMetacounter(String channelType, String channelUrl) throws ApiException { + return new APIdeleteChannelMetacounterRequest(channelType, channelUrl); + } + +private ApiResponse deleteChannelMetacounterByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -479,40 +614,77 @@ public ApiResponse deleteChannelMetacounterByKeyWithHttpInfo(String apiTok localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Delete a channel metadata - When deleting all items of a channel metadata - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteChannelMetadata(String apiToken, String channelType, String channelUrl, String key) throws ApiException { - deleteChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, key); + + public class APIdeleteChannelMetacounterByKeyRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + + private APIdeleteChannelMetacounterByKeyRequest(String channelType, String channelUrl, String key) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteChannelMetacounterByKeyRequest + */ + public APIdeleteChannelMetacounterByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteChannelMetacounterByKey request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteChannelMetacounterByKey request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key); + } } /** - * Delete a channel metadata - When deleting all items of a channel metadata - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param apiToken (required) + * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key + * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. * @param channelType (required) * @param channelUrl (required) - * @param key (optional) - * @return ApiResponse<Void> + * @param key (required) + * @return deleteChannelMetacounterByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { + public APIdeleteChannelMetacounterByKeyRequest deleteChannelMetacounterByKey(String channelType, String channelUrl, String key) throws ApiException { + return new APIdeleteChannelMetacounterByKeyRequest(channelType, channelUrl, key); + } + +private ApiResponse deleteChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -564,40 +736,85 @@ public ApiResponse deleteChannelMetadataWithHttpInfo(String apiToken, Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Delete a channel metadata - When deleting a specific item of a channel metadata by its key - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (required) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteChannelMetadataByKey(String apiToken, String channelType, String channelUrl, String key) throws ApiException { - deleteChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key); + + public class APIdeleteChannelMetadataRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + + private APIdeleteChannelMetadataRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteChannelMetadataRequest + */ + public APIdeleteChannelMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set key + * @param key (optional) + * @return APIdeleteChannelMetadataRequest + */ + public APIdeleteChannelMetadataRequest key(String key) { + this.key = key; + return this; + } + + /** + * Execute deleteChannelMetadata request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteChannelMetadata request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, key); + } } /** - * Delete a channel metadata - When deleting a specific item of a channel metadata by its key + * Delete a channel metadata - When deleting all items of a channel metadata * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param apiToken (required) * @param channelType (required) * @param channelUrl (required) - * @param key (required) - * @return ApiResponse<Void> + * @return deleteChannelMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteChannelMetadataByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { + public APIdeleteChannelMetadataRequest deleteChannelMetadata(String channelType, String channelUrl) throws ApiException { + return new APIdeleteChannelMetadataRequest(channelType, channelUrl); + } + +private ApiResponse deleteChannelMetadataByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -654,38 +871,77 @@ public ApiResponse deleteChannelMetadataByKeyWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Delete a user metadata - When deleting all items of a user metadata - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param apiToken (required) - * @param userId (required) - * @param key (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteUserMetadata(String apiToken, String userId, String key) throws ApiException { - deleteUserMetadataWithHttpInfo(apiToken, userId, key); + + public class APIdeleteChannelMetadataByKeyRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + + private APIdeleteChannelMetadataByKeyRequest(String channelType, String channelUrl, String key) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteChannelMetadataByKeyRequest + */ + public APIdeleteChannelMetadataByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteChannelMetadataByKey request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteChannelMetadataByKey request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key); + } } /** - * Delete a user metadata - When deleting all items of a user metadata - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param apiToken (required) - * @param userId (required) - * @param key (optional) - * @return ApiResponse<Void> + * Delete a channel metadata - When deleting a specific item of a channel metadata by its key + * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. + * @param channelType (required) + * @param channelUrl (required) + * @param key (required) + * @return deleteChannelMetadataByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteUserMetadataWithHttpInfo(String apiToken, String userId, String key) throws ApiException { + public APIdeleteChannelMetadataByKeyRequest deleteChannelMetadataByKey(String channelType, String channelUrl, String key) throws ApiException { + return new APIdeleteChannelMetadataByKeyRequest(channelType, channelUrl, key); + } + +private ApiResponse deleteUserMetadataWithHttpInfo(String apiToken, String userId, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -731,38 +987,82 @@ public ApiResponse deleteUserMetadataWithHttpInfo(String apiToken, String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Delete a user metadata - When deleting a specific item of a user metadata by its key - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param apiToken (required) - * @param userId (required) - * @param key (required) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void deleteUserMetadataByKey(String apiToken, String userId, String key) throws ApiException { - deleteUserMetadataByKeyWithHttpInfo(apiToken, userId, key); + + public class APIdeleteUserMetadataRequest { + private String apiToken; + private String userId; + private String key; + + private APIdeleteUserMetadataRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteUserMetadataRequest + */ + public APIdeleteUserMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set key + * @param key (optional) + * @return APIdeleteUserMetadataRequest + */ + public APIdeleteUserMetadataRequest key(String key) { + this.key = key; + return this; + } + + /** + * Execute deleteUserMetadata request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteUserMetadata request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteUserMetadataWithHttpInfo(apiToken, userId, key); + } } /** - * Delete a user metadata - When deleting a specific item of a user metadata by its key + * Delete a user metadata - When deleting all items of a user metadata * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param apiToken (required) * @param userId (required) - * @param key (required) - * @return ApiResponse<Void> + * @return deleteUserMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteUserMetadataByKeyWithHttpInfo(String apiToken, String userId, String key) throws ApiException { + public APIdeleteUserMetadataRequest deleteUserMetadata(String userId) throws ApiException { + return new APIdeleteUserMetadataRequest(userId); + } + +private ApiResponse deleteUserMetadataByKeyWithHttpInfo(String apiToken, String userId, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -813,41 +1113,74 @@ public ApiResponse deleteUserMetadataByKeyWithHttpInfo(String apiToken, St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param updateChannelMetacounterData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object updateChannelMetacounter(String apiToken, String channelType, String channelUrl, UpdateChannelMetacounterData updateChannelMetacounterData) throws ApiException { - return updateChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, updateChannelMetacounterData).getData(); + + public class APIdeleteUserMetadataByKeyRequest { + private String apiToken; + private String userId; + private String key; + + private APIdeleteUserMetadataByKeyRequest(String userId, String key) { + this.userId = userId; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteUserMetadataByKeyRequest + */ + public APIdeleteUserMetadataByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteUserMetadataByKey request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteUserMetadataByKey request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteUserMetadataByKeyWithHttpInfo(apiToken, userId, key); + } } /** - * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param updateChannelMetacounterData (optional) - * @return ApiResponse<Object> + * Delete a user metadata - When deleting a specific item of a user metadata by its key + * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. + * @param userId (required) + * @param key (required) + * @return deleteUserMetadataByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl, UpdateChannelMetacounterData updateChannelMetacounterData) throws ApiException { + public APIdeleteUserMetadataByKeyRequest deleteUserMetadataByKey(String userId, String key) throws ApiException { + return new APIdeleteUserMetadataByKeyRequest(userId, key); + } + +private ApiResponse updateChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl, UpdateChannelMetacounterData updateChannelMetacounterData) throws ApiException { Object localVarPostBody = updateChannelMetacounterData; // verify the required parameter 'apiToken' is set @@ -900,43 +1233,85 @@ public ApiResponse updateChannelMetacounterWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a channel metacounter - When updating a specific item of a channel metacounter by its key - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (required) - * @param body (optional) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map updateChannelMetacounterByKey(String apiToken, String channelType, String channelUrl, String key, Object body) throws ApiException { - return updateChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, body).getData(); + + public class APIupdateChannelMetacounterRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private UpdateChannelMetacounterData updateChannelMetacounterData; + + private APIupdateChannelMetacounterRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateChannelMetacounterRequest + */ + public APIupdateChannelMetacounterRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateChannelMetacounterData + * @param updateChannelMetacounterData (optional) + * @return APIupdateChannelMetacounterRequest + */ + public APIupdateChannelMetacounterRequest updateChannelMetacounterData(UpdateChannelMetacounterData updateChannelMetacounterData) { + this.updateChannelMetacounterData = updateChannelMetacounterData; + return this; + } + + /** + * Execute updateChannelMetacounter request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateChannelMetacounter request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, updateChannelMetacounterData); + } } /** - * Update a channel metacounter - When updating a specific item of a channel metacounter by its key + * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) * @param channelType (required) * @param channelUrl (required) - * @param key (required) - * @param body (optional) - * @return ApiResponse<Map<String, String>> + * @return updateChannelMetacounterRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> updateChannelMetacounterByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, Object body) throws ApiException { + public APIupdateChannelMetacounterRequest updateChannelMetacounter(String channelType, String channelUrl) throws ApiException { + return new APIupdateChannelMetacounterRequest(channelType, channelUrl); + } + +private ApiResponse> updateChannelMetacounterByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, Object body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'apiToken' is set @@ -995,41 +1370,88 @@ public ApiResponse> updateChannelMetacounterByKeyWithHttpInf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param updateChannelMetadataData (optional) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map updateChannelMetadata(String apiToken, String channelType, String channelUrl, UpdateChannelMetadataData updateChannelMetadataData) throws ApiException { - return updateChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, updateChannelMetadataData).getData(); + + public class APIupdateChannelMetacounterByKeyRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + private Object body; + + private APIupdateChannelMetacounterByKeyRequest(String channelType, String channelUrl, String key) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateChannelMetacounterByKeyRequest + */ + public APIupdateChannelMetacounterByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIupdateChannelMetacounterByKeyRequest + */ + public APIupdateChannelMetacounterByKeyRequest body(Object body) { + this.body = body; + return this; + } + + /** + * Execute updateChannelMetacounterByKey request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateChannelMetacounterByKey request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return updateChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, body); + } } /** - * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) + * Update a channel metacounter - When updating a specific item of a channel metacounter by its key + * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. * @param channelType (required) * @param channelUrl (required) - * @param updateChannelMetadataData (optional) - * @return ApiResponse<Map<String, String>> + * @param key (required) + * @return updateChannelMetacounterByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> updateChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, UpdateChannelMetadataData updateChannelMetadataData) throws ApiException { + public APIupdateChannelMetacounterByKeyRequest updateChannelMetacounterByKey(String channelType, String channelUrl, String key) throws ApiException { + return new APIupdateChannelMetacounterByKeyRequest(channelType, channelUrl, key); + } + +private ApiResponse> updateChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, UpdateChannelMetadataData updateChannelMetadataData) throws ApiException { Object localVarPostBody = updateChannelMetadataData; // verify the required parameter 'apiToken' is set @@ -1082,43 +1504,85 @@ public ApiResponse> updateChannelMetadataWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a channel metadata - When updating a specific item of a channel metadata by its key - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (required) - * @param body (optional) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map updateChannelMetadataByKey(String apiToken, String channelType, String channelUrl, String key, Object body) throws ApiException { - return updateChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, body).getData(); + + public class APIupdateChannelMetadataRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private UpdateChannelMetadataData updateChannelMetadataData; + + private APIupdateChannelMetadataRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateChannelMetadataRequest + */ + public APIupdateChannelMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateChannelMetadataData + * @param updateChannelMetadataData (optional) + * @return APIupdateChannelMetadataRequest + */ + public APIupdateChannelMetadataRequest updateChannelMetadataData(UpdateChannelMetadataData updateChannelMetadataData) { + this.updateChannelMetadataData = updateChannelMetadataData; + return this; + } + + /** + * Execute updateChannelMetadata request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateChannelMetadata request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return updateChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, updateChannelMetadataData); + } } /** - * Update a channel metadata - When updating a specific item of a channel metadata by its key + * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) * @param channelType (required) * @param channelUrl (required) - * @param key (required) - * @param body (optional) - * @return ApiResponse<Map<String, String>> + * @return updateChannelMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> updateChannelMetadataByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, Object body) throws ApiException { + public APIupdateChannelMetadataRequest updateChannelMetadata(String channelType, String channelUrl) throws ApiException { + return new APIupdateChannelMetadataRequest(channelType, channelUrl); + } + +private ApiResponse> updateChannelMetadataByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, Object body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'apiToken' is set @@ -1177,39 +1641,88 @@ public ApiResponse> updateChannelMetadataByKeyWithHttpInfo(S localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param apiToken (required) - * @param userId (required) - * @param updateUserMetadataData (optional) - * @return UpdateUserMetadataResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateUserMetadataResponse updateUserMetadata(String apiToken, String userId, UpdateUserMetadataData updateUserMetadataData) throws ApiException { - return updateUserMetadataWithHttpInfo(apiToken, userId, updateUserMetadataData).getData(); + + public class APIupdateChannelMetadataByKeyRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + private Object body; + + private APIupdateChannelMetadataByKeyRequest(String channelType, String channelUrl, String key) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateChannelMetadataByKeyRequest + */ + public APIupdateChannelMetadataByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIupdateChannelMetadataByKeyRequest + */ + public APIupdateChannelMetadataByKeyRequest body(Object body) { + this.body = body; + return this; + } + + /** + * Execute updateChannelMetadataByKey request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateChannelMetadataByKey request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return updateChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, body); + } } /** - * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param apiToken (required) - * @param userId (required) - * @param updateUserMetadataData (optional) - * @return ApiResponse<UpdateUserMetadataResponse> + * Update a channel metadata - When updating a specific item of a channel metadata by its key + * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param channelType (required) + * @param channelUrl (required) + * @param key (required) + * @return updateChannelMetadataByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateUserMetadataWithHttpInfo(String apiToken, String userId, UpdateUserMetadataData updateUserMetadataData) throws ApiException { + public APIupdateChannelMetadataByKeyRequest updateChannelMetadataByKey(String channelType, String channelUrl, String key) throws ApiException { + return new APIupdateChannelMetadataByKeyRequest(channelType, channelUrl, key); + } + +private ApiResponse updateUserMetadataWithHttpInfo(String apiToken, String userId, UpdateUserMetadataData updateUserMetadataData) throws ApiException { Object localVarPostBody = updateUserMetadataData; // verify the required parameter 'apiToken' is set @@ -1256,41 +1769,82 @@ public ApiResponse updateUserMetadataWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a user metadata - When updating a specific item of a user metadata by its key - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param apiToken (required) - * @param userId (required) - * @param key (required) - * @param body (optional) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map updateUserMetadataByKey(String apiToken, String userId, String key, Object body) throws ApiException { - return updateUserMetadataByKeyWithHttpInfo(apiToken, userId, key, body).getData(); + + public class APIupdateUserMetadataRequest { + private String apiToken; + private String userId; + private UpdateUserMetadataData updateUserMetadataData; + + private APIupdateUserMetadataRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateUserMetadataRequest + */ + public APIupdateUserMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateUserMetadataData + * @param updateUserMetadataData (optional) + * @return APIupdateUserMetadataRequest + */ + public APIupdateUserMetadataRequest updateUserMetadataData(UpdateUserMetadataData updateUserMetadataData) { + this.updateUserMetadataData = updateUserMetadataData; + return this; + } + + /** + * Execute updateUserMetadata request + * @return UpdateUserMetadataResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateUserMetadataResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateUserMetadata request with HTTP info returned + * @return ApiResponse<UpdateUserMetadataResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateUserMetadataWithHttpInfo(apiToken, userId, updateUserMetadataData); + } } /** - * Update a user metadata - When updating a specific item of a user metadata by its key + * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param apiToken (required) * @param userId (required) - * @param key (required) - * @param body (optional) - * @return ApiResponse<Map<String, String>> + * @return updateUserMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> updateUserMetadataByKeyWithHttpInfo(String apiToken, String userId, String key, Object body) throws ApiException { + public APIupdateUserMetadataRequest updateUserMetadata(String userId) throws ApiException { + return new APIupdateUserMetadataRequest(userId); + } + +private ApiResponse> updateUserMetadataByKeyWithHttpInfo(String apiToken, String userId, String key, Object body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'apiToken' is set @@ -1343,43 +1897,85 @@ public ApiResponse> updateUserMetadataByKeyWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a channel metacounter - When retrieving all items of a channel metacounter - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (optional) - * @param keys (optional) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map viewChannelMetacounter(String apiToken, String channelType, String channelUrl, String key, List keys) throws ApiException { - return viewChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, key, keys).getData(); + + public class APIupdateUserMetadataByKeyRequest { + private String apiToken; + private String userId; + private String key; + private Object body; + + private APIupdateUserMetadataByKeyRequest(String userId, String key) { + this.userId = userId; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateUserMetadataByKeyRequest + */ + public APIupdateUserMetadataByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIupdateUserMetadataByKeyRequest + */ + public APIupdateUserMetadataByKeyRequest body(Object body) { + this.body = body; + return this; + } + + /** + * Execute updateUserMetadataByKey request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateUserMetadataByKey request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return updateUserMetadataByKeyWithHttpInfo(apiToken, userId, key, body); + } } /** - * View a channel metacounter - When retrieving all items of a channel metacounter - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (optional) - * @param keys (optional) - * @return ApiResponse<Map<String, String>> + * Update a user metadata - When updating a specific item of a user metadata by its key + * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. + * @param userId (required) + * @param key (required) + * @return updateUserMetadataByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> viewChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, List keys) throws ApiException { + public APIupdateUserMetadataByKeyRequest updateUserMetadataByKey(String userId, String key) throws ApiException { + return new APIupdateUserMetadataByKeyRequest(userId, key); + } + +private ApiResponse> viewChannelMetacounterWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, List keys) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1434,41 +2030,96 @@ public ApiResponse> viewChannelMetacounterWithHttpInfo(Strin localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object viewChannelMetacounterByKey(String apiToken, String channelType, String channelUrl, String key) throws ApiException { - return viewChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key).getData(); + + public class APIviewChannelMetacounterRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + private List keys; + + private APIviewChannelMetacounterRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewChannelMetacounterRequest + */ + public APIviewChannelMetacounterRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set key + * @param key (optional) + * @return APIviewChannelMetacounterRequest + */ + public APIviewChannelMetacounterRequest key(String key) { + this.key = key; + return this; + } + + /** + * Set keys + * @param keys (optional) + * @return APIviewChannelMetacounterRequest + */ + public APIviewChannelMetacounterRequest keys(List keys) { + this.keys = keys; + return this; + } + + /** + * Execute viewChannelMetacounter request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewChannelMetacounter request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return viewChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, key, keys); + } } /** - * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key + * View a channel metacounter - When retrieving all items of a channel metacounter * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) * @param channelType (required) * @param channelUrl (required) - * @param key (required) - * @return ApiResponse<Object> + * @return viewChannelMetacounterRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewChannelMetacounterByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { + public APIviewChannelMetacounterRequest viewChannelMetacounter(String channelType, String channelUrl) throws ApiException { + return new APIviewChannelMetacounterRequest(channelType, channelUrl); + } + +private ApiResponse viewChannelMetacounterByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1527,43 +2178,77 @@ public ApiResponse viewChannelMetacounterByKeyWithHttpInfo(String apiTok localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a channel metadata - When retrieving all items of a channel metadata - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (optional) - * @param keys (optional) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map viewChannelMetadata(String apiToken, String channelType, String channelUrl, String key, List keys) throws ApiException { - return viewChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, key, keys).getData(); + + public class APIviewChannelMetacounterByKeyRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + + private APIviewChannelMetacounterByKeyRequest(String channelType, String channelUrl, String key) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewChannelMetacounterByKeyRequest + */ + public APIviewChannelMetacounterByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewChannelMetacounterByKey request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewChannelMetacounterByKey request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key); + } } /** - * View a channel metadata - When retrieving all items of a channel metadata - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) + * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key + * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. * @param channelType (required) * @param channelUrl (required) - * @param key (optional) - * @param keys (optional) - * @return ApiResponse<Map<String, String>> + * @param key (required) + * @return viewChannelMetacounterByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> viewChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, List keys) throws ApiException { + public APIviewChannelMetacounterByKeyRequest viewChannelMetacounterByKey(String channelType, String channelUrl, String key) throws ApiException { + return new APIviewChannelMetacounterByKeyRequest(channelType, channelUrl, key); + } + +private ApiResponse> viewChannelMetadataWithHttpInfo(String apiToken, String channelType, String channelUrl, String key, List keys) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1618,41 +2303,96 @@ public ApiResponse> viewChannelMetadataWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a channel metadata - When retrieving a specific item of a channel metadata by its key - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param key (required) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map viewChannelMetadataByKey(String apiToken, String channelType, String channelUrl, String key) throws ApiException { - return viewChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key).getData(); + + public class APIviewChannelMetadataRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + private List keys; + + private APIviewChannelMetadataRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewChannelMetadataRequest + */ + public APIviewChannelMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set key + * @param key (optional) + * @return APIviewChannelMetadataRequest + */ + public APIviewChannelMetadataRequest key(String key) { + this.key = key; + return this; + } + + /** + * Set keys + * @param keys (optional) + * @return APIviewChannelMetadataRequest + */ + public APIviewChannelMetadataRequest keys(List keys) { + this.keys = keys; + return this; + } + + /** + * Execute viewChannelMetadata request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewChannelMetadata request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return viewChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, key, keys); + } } /** - * View a channel metadata - When retrieving a specific item of a channel metadata by its key + * View a channel metadata - When retrieving all items of a channel metadata * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param apiToken (required) * @param channelType (required) * @param channelUrl (required) - * @param key (required) - * @return ApiResponse<Map<String, String>> + * @return viewChannelMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> viewChannelMetadataByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { + public APIviewChannelMetadataRequest viewChannelMetadata(String channelType, String channelUrl) throws ApiException { + return new APIviewChannelMetadataRequest(channelType, channelUrl); + } + +private ApiResponse> viewChannelMetadataByKeyWithHttpInfo(String apiToken, String channelType, String channelUrl, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1711,41 +2451,77 @@ public ApiResponse> viewChannelMetadataByKeyWithHttpInfo(Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a user metadata - When retrieving all items of a user metadata - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param apiToken (required) - * @param userId (required) - * @param key (optional) - * @param keys (optional) - * @return ViewUserMetadataResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewUserMetadataResponse viewUserMetadata(String apiToken, String userId, String key, List keys) throws ApiException { - return viewUserMetadataWithHttpInfo(apiToken, userId, key, keys).getData(); + + public class APIviewChannelMetadataByKeyRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String key; + + private APIviewChannelMetadataByKeyRequest(String channelType, String channelUrl, String key) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewChannelMetadataByKeyRequest + */ + public APIviewChannelMetadataByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewChannelMetadataByKey request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewChannelMetadataByKey request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return viewChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key); + } } /** - * View a user metadata - When retrieving all items of a user metadata - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param apiToken (required) - * @param userId (required) - * @param key (optional) - * @param keys (optional) - * @return ApiResponse<ViewUserMetadataResponse> + * View a channel metadata - When retrieving a specific item of a channel metadata by its key + * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param channelType (required) + * @param channelUrl (required) + * @param key (required) + * @return viewChannelMetadataByKeyRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewUserMetadataWithHttpInfo(String apiToken, String userId, String key, List keys) throws ApiException { + public APIviewChannelMetadataByKeyRequest viewChannelMetadataByKey(String channelType, String channelUrl, String key) throws ApiException { + return new APIviewChannelMetadataByKeyRequest(channelType, channelUrl, key); + } + +private ApiResponse viewUserMetadataWithHttpInfo(String apiToken, String userId, String key, List keys) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1794,39 +2570,93 @@ public ApiResponse viewUserMetadataWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a user metadata - When retrieving a specific item of a user metadata by its key - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param apiToken (required) - * @param userId (required) - * @param key (required) - * @return Map<String, String> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Map viewUserMetadataByKey(String apiToken, String userId, String key) throws ApiException { - return viewUserMetadataByKeyWithHttpInfo(apiToken, userId, key).getData(); + + public class APIviewUserMetadataRequest { + private String apiToken; + private String userId; + private String key; + private List keys; + + private APIviewUserMetadataRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewUserMetadataRequest + */ + public APIviewUserMetadataRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set key + * @param key (optional) + * @return APIviewUserMetadataRequest + */ + public APIviewUserMetadataRequest key(String key) { + this.key = key; + return this; + } + + /** + * Set keys + * @param keys (optional) + * @return APIviewUserMetadataRequest + */ + public APIviewUserMetadataRequest keys(List keys) { + this.keys = keys; + return this; + } + + /** + * Execute viewUserMetadata request + * @return ViewUserMetadataResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewUserMetadataResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewUserMetadata request with HTTP info returned + * @return ApiResponse<ViewUserMetadataResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewUserMetadataWithHttpInfo(apiToken, userId, key, keys); + } } /** - * View a user metadata - When retrieving a specific item of a user metadata by its key + * View a user metadata - When retrieving all items of a user metadata * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param apiToken (required) * @param userId (required) - * @param key (required) - * @return ApiResponse<Map<String, String>> + * @return viewUserMetadataRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> viewUserMetadataByKeyWithHttpInfo(String apiToken, String userId, String key) throws ApiException { + public APIviewUserMetadataRequest viewUserMetadata(String userId) throws ApiException { + return new APIviewUserMetadataRequest(userId); + } + +private ApiResponse> viewUserMetadataByKeyWithHttpInfo(String apiToken, String userId, String key) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1879,4 +2709,70 @@ public ApiResponse> viewUserMetadataByKeyWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewUserMetadataByKeyRequest { + private String apiToken; + private String userId; + private String key; + + private APIviewUserMetadataByKeyRequest(String userId, String key) { + this.userId = userId; + this.key = key; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewUserMetadataByKeyRequest + */ + public APIviewUserMetadataByKeyRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewUserMetadataByKey request + * @return Map<String, String> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Map execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewUserMetadataByKey request with HTTP info returned + * @return ApiResponse<Map<String, String>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return viewUserMetadataByKeyWithHttpInfo(apiToken, userId, key); + } + } + + /** + * View a user metadata - When retrieving a specific item of a user metadata by its key + * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. + * @param userId (required) + * @param key (required) + * @return viewUserMetadataByKeyRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewUserMetadataByKeyRequest viewUserMetadataByKey(String userId, String key) throws ApiException { + return new APIviewUserMetadataByKeyRequest(userId, key); + } } diff --git a/src/main/java/org/sendbird/client/api/ModerationApi.java b/src/main/java/org/sendbird/client/api/ModerationApi.java index 761ca307..c7d36e4c 100644 --- a/src/main/java/org/sendbird/client/api/ModerationApi.java +++ b/src/main/java/org/sendbird/client/api/ModerationApi.java @@ -44,7 +44,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ModerationApi { private ApiClient apiClient; @@ -74,39 +74,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Ban from channels with custom channel types - * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param banFromChannelsWithCustomChannelTypesData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object banFromChannelsWithCustomChannelTypes(String apiToken, String userId, BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData) throws ApiException { - return banFromChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, banFromChannelsWithCustomChannelTypesData).getData(); - } - /** - * Ban from channels with custom channel types - * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param banFromChannelsWithCustomChannelTypesData (optional) - * @return ApiResponse<Object> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse banFromChannelsWithCustomChannelTypesWithHttpInfo(String apiToken, String userId, BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData) throws ApiException { +private ApiResponse banFromChannelsWithCustomChannelTypesWithHttpInfo(String apiToken, String userId, BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData) throws ApiException { Object localVarPostBody = banFromChannelsWithCustomChannelTypesData; // verify the required parameter 'apiToken' is set @@ -153,39 +122,82 @@ public ApiResponse banFromChannelsWithCustomChannelTypesWithHttpInfo(Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Block a user - * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param blockUserData (optional) - * @return BlockUserResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public BlockUserResponse blockUser(String apiToken, String userId, BlockUserData blockUserData) throws ApiException { - return blockUserWithHttpInfo(apiToken, userId, blockUserData).getData(); + + public class APIbanFromChannelsWithCustomChannelTypesRequest { + private String apiToken; + private String userId; + private BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData; + + private APIbanFromChannelsWithCustomChannelTypesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIbanFromChannelsWithCustomChannelTypesRequest + */ + public APIbanFromChannelsWithCustomChannelTypesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set banFromChannelsWithCustomChannelTypesData + * @param banFromChannelsWithCustomChannelTypesData (optional) + * @return APIbanFromChannelsWithCustomChannelTypesRequest + */ + public APIbanFromChannelsWithCustomChannelTypesRequest banFromChannelsWithCustomChannelTypesData(BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData) { + this.banFromChannelsWithCustomChannelTypesData = banFromChannelsWithCustomChannelTypesData; + return this; + } + + /** + * Execute banFromChannelsWithCustomChannelTypes request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute banFromChannelsWithCustomChannelTypes request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return banFromChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, banFromChannelsWithCustomChannelTypesData); + } } /** - * Block a user - * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- - * @param apiToken (required) + * Ban from channels with custom channel types + * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- * @param userId (required) - * @param blockUserData (optional) - * @return ApiResponse<BlockUserResponse> + * @return banFromChannelsWithCustomChannelTypesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse blockUserWithHttpInfo(String apiToken, String userId, BlockUserData blockUserData) throws ApiException { + public APIbanFromChannelsWithCustomChannelTypesRequest banFromChannelsWithCustomChannelTypes(String userId) throws ApiException { + return new APIbanFromChannelsWithCustomChannelTypesRequest(userId); + } + +private ApiResponse blockUserWithHttpInfo(String apiToken, String userId, BlockUserData blockUserData) throws ApiException { Object localVarPostBody = blockUserData; // verify the required parameter 'apiToken' is set @@ -232,39 +244,82 @@ public ApiResponse blockUserWithHttpInfo(String apiToken, Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Ban a user - * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcBanUserData (optional) - * @return GcBanUserResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcBanUserResponse gcBanUser(String apiToken, String channelUrl, GcBanUserData gcBanUserData) throws ApiException { - return gcBanUserWithHttpInfo(apiToken, channelUrl, gcBanUserData).getData(); + + public class APIblockUserRequest { + private String apiToken; + private String userId; + private BlockUserData blockUserData; + + private APIblockUserRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIblockUserRequest + */ + public APIblockUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set blockUserData + * @param blockUserData (optional) + * @return APIblockUserRequest + */ + public APIblockUserRequest blockUserData(BlockUserData blockUserData) { + this.blockUserData = blockUserData; + return this; + } + + /** + * Execute blockUser request + * @return BlockUserResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public BlockUserResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute blockUser request with HTTP info returned + * @return ApiResponse<BlockUserResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return blockUserWithHttpInfo(apiToken, userId, blockUserData); + } } /** - * Ban a user - * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcBanUserData (optional) - * @return ApiResponse<GcBanUserResponse> + * Block a user + * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- + * @param userId (required) + * @return blockUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcBanUserWithHttpInfo(String apiToken, String channelUrl, GcBanUserData gcBanUserData) throws ApiException { + public APIblockUserRequest blockUser(String userId) throws ApiException { + return new APIblockUserRequest(userId); + } + +private ApiResponse gcBanUserWithHttpInfo(String apiToken, String channelUrl, GcBanUserData gcBanUserData) throws ApiException { Object localVarPostBody = gcBanUserData; // verify the required parameter 'apiToken' is set @@ -311,39 +366,82 @@ public ApiResponse gcBanUserWithHttpInfo(String apiToken, Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcFreezeChannelData (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcFreezeChannel(String apiToken, String channelUrl, GcFreezeChannelData gcFreezeChannelData) throws ApiException { - return gcFreezeChannelWithHttpInfo(apiToken, channelUrl, gcFreezeChannelData).getData(); + + public class APIgcBanUserRequest { + private String apiToken; + private String channelUrl; + private GcBanUserData gcBanUserData; + + private APIgcBanUserRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcBanUserRequest + */ + public APIgcBanUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcBanUserData + * @param gcBanUserData (optional) + * @return APIgcBanUserRequest + */ + public APIgcBanUserRequest gcBanUserData(GcBanUserData gcBanUserData) { + this.gcBanUserData = gcBanUserData; + return this; + } + + /** + * Execute gcBanUser request + * @return GcBanUserResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcBanUserResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcBanUser request with HTTP info returned + * @return ApiResponse<GcBanUserResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcBanUserWithHttpInfo(apiToken, channelUrl, gcBanUserData); + } } /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- - * @param apiToken (required) + * Ban a user + * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- * @param channelUrl (required) - * @param gcFreezeChannelData (optional) - * @return ApiResponse<SendBirdGroupChannel> + * @return gcBanUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcFreezeChannelWithHttpInfo(String apiToken, String channelUrl, GcFreezeChannelData gcFreezeChannelData) throws ApiException { + public APIgcBanUserRequest gcBanUser(String channelUrl) throws ApiException { + return new APIgcBanUserRequest(channelUrl); + } + +private ApiResponse gcFreezeChannelWithHttpInfo(String apiToken, String channelUrl, GcFreezeChannelData gcFreezeChannelData) throws ApiException { Object localVarPostBody = gcFreezeChannelData; // verify the required parameter 'apiToken' is set @@ -390,41 +488,82 @@ public ApiResponse gcFreezeChannelWithHttpInfo(String apiT localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List banned users - * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return GcListBannedUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcListBannedUsersResponse gcListBannedUsers(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return gcListBannedUsersWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIgcFreezeChannelRequest { + private String apiToken; + private String channelUrl; + private GcFreezeChannelData gcFreezeChannelData; + + private APIgcFreezeChannelRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcFreezeChannelRequest + */ + public APIgcFreezeChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcFreezeChannelData + * @param gcFreezeChannelData (optional) + * @return APIgcFreezeChannelRequest + */ + public APIgcFreezeChannelRequest gcFreezeChannelData(GcFreezeChannelData gcFreezeChannelData) { + this.gcFreezeChannelData = gcFreezeChannelData; + return this; + } + + /** + * Execute gcFreezeChannel request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcFreezeChannel request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcFreezeChannelWithHttpInfo(apiToken, channelUrl, gcFreezeChannelData); + } } /** - * List banned users - * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param apiToken (required) + * Freeze a channel + * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<GcListBannedUsersResponse> + * @return gcFreezeChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcListBannedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIgcFreezeChannelRequest gcFreezeChannel(String channelUrl) throws ApiException { + return new APIgcFreezeChannelRequest(channelUrl); + } + +private ApiResponse gcListBannedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -473,41 +612,93 @@ public ApiResponse gcListBannedUsersWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List muted users - * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return GcListMutedUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcListMutedUsersResponse gcListMutedUsers(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return gcListMutedUsersWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIgcListBannedUsersRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIgcListBannedUsersRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcListBannedUsersRequest + */ + public APIgcListBannedUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIgcListBannedUsersRequest + */ + public APIgcListBannedUsersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgcListBannedUsersRequest + */ + public APIgcListBannedUsersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute gcListBannedUsers request + * @return GcListBannedUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcListBannedUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcListBannedUsers request with HTTP info returned + * @return ApiResponse<GcListBannedUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcListBannedUsersWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * List muted users - * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param apiToken (required) + * List banned users + * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<GcListMutedUsersResponse> + * @return gcListBannedUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcListMutedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIgcListBannedUsersRequest gcListBannedUsers(String channelUrl) throws ApiException { + return new APIgcListBannedUsersRequest(channelUrl); + } + +private ApiResponse gcListMutedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -556,39 +747,93 @@ public ApiResponse gcListMutedUsersWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mute a user - * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param gcMuteUserData (optional) - * @return SendBirdGroupChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdGroupChannel gcMuteUser(String apiToken, String channelUrl, GcMuteUserData gcMuteUserData) throws ApiException { - return gcMuteUserWithHttpInfo(apiToken, channelUrl, gcMuteUserData).getData(); + + public class APIgcListMutedUsersRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIgcListMutedUsersRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcListMutedUsersRequest + */ + public APIgcListMutedUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIgcListMutedUsersRequest + */ + public APIgcListMutedUsersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgcListMutedUsersRequest + */ + public APIgcListMutedUsersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute gcListMutedUsers request + * @return GcListMutedUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcListMutedUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcListMutedUsers request with HTTP info returned + * @return ApiResponse<GcListMutedUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcListMutedUsersWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * Mute a user - * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - * @param apiToken (required) + * List muted users + * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. * @param channelUrl (required) - * @param gcMuteUserData (optional) - * @return ApiResponse<SendBirdGroupChannel> + * @return gcListMutedUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcMuteUserWithHttpInfo(String apiToken, String channelUrl, GcMuteUserData gcMuteUserData) throws ApiException { + public APIgcListMutedUsersRequest gcListMutedUsers(String channelUrl) throws ApiException { + return new APIgcListMutedUsersRequest(channelUrl); + } + +private ApiResponse gcMuteUserWithHttpInfo(String apiToken, String channelUrl, GcMuteUserData gcMuteUserData) throws ApiException { Object localVarPostBody = gcMuteUserData; // verify the required parameter 'apiToken' is set @@ -635,39 +880,82 @@ public ApiResponse gcMuteUserWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unban a user - * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param bannedUserId (required) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcUnbanUserById(String apiToken, String channelUrl, String bannedUserId) throws ApiException { - return gcUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).getData(); + + public class APIgcMuteUserRequest { + private String apiToken; + private String channelUrl; + private GcMuteUserData gcMuteUserData; + + private APIgcMuteUserRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcMuteUserRequest + */ + public APIgcMuteUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcMuteUserData + * @param gcMuteUserData (optional) + * @return APIgcMuteUserRequest + */ + public APIgcMuteUserRequest gcMuteUserData(GcMuteUserData gcMuteUserData) { + this.gcMuteUserData = gcMuteUserData; + return this; + } + + /** + * Execute gcMuteUser request + * @return SendBirdGroupChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdGroupChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcMuteUser request with HTTP info returned + * @return ApiResponse<SendBirdGroupChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcMuteUserWithHttpInfo(apiToken, channelUrl, gcMuteUserData); + } } /** - * Unban a user - * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - * @param apiToken (required) + * Mute a user + * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- * @param channelUrl (required) - * @param bannedUserId (required) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return gcMuteUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcUnbanUserByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { + public APIgcMuteUserRequest gcMuteUser(String channelUrl) throws ApiException { + return new APIgcMuteUserRequest(channelUrl); + } + +private ApiResponse gcUnbanUserByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -720,39 +1008,74 @@ public ApiResponse gcUnbanUserByIdWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unmute a user - * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param mutedUserId (required) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response gcUnmuteUserById(String apiToken, String channelUrl, String mutedUserId) throws ApiException { - return gcUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).getData(); + + public class APIgcUnbanUserByIdRequest { + private String apiToken; + private String channelUrl; + private String bannedUserId; + + private APIgcUnbanUserByIdRequest(String channelUrl, String bannedUserId) { + this.channelUrl = channelUrl; + this.bannedUserId = bannedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcUnbanUserByIdRequest + */ + public APIgcUnbanUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute gcUnbanUserById request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcUnbanUserById request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId); + } } /** - * Unmute a user - * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - * @param apiToken (required) + * Unban a user + * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- * @param channelUrl (required) - * @param mutedUserId (required) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @param bannedUserId (required) + * @return gcUnbanUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcUnmuteUserByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { + public APIgcUnbanUserByIdRequest gcUnbanUserById(String channelUrl, String bannedUserId) throws ApiException { + return new APIgcUnbanUserByIdRequest(channelUrl, bannedUserId); + } + +private ApiResponse gcUnmuteUserByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -805,41 +1128,74 @@ public ApiResponse gcUnmuteUserByIdWithHttpInfo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param bannedUserId (required) - * @param gcUpdateBanByIdData (optional) - * @return GcUpdateBanByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcUpdateBanByIdResponse gcUpdateBanById(String apiToken, String channelUrl, String bannedUserId, GcUpdateBanByIdData gcUpdateBanByIdData) throws ApiException { - return gcUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, gcUpdateBanByIdData).getData(); + + public class APIgcUnmuteUserByIdRequest { + private String apiToken; + private String channelUrl; + private String mutedUserId; + + private APIgcUnmuteUserByIdRequest(String channelUrl, String mutedUserId) { + this.channelUrl = channelUrl; + this.mutedUserId = mutedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcUnmuteUserByIdRequest + */ + public APIgcUnmuteUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute gcUnmuteUserById request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcUnmuteUserById request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId); + } } /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- - * @param apiToken (required) + * Unmute a user + * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- * @param channelUrl (required) - * @param bannedUserId (required) - * @param gcUpdateBanByIdData (optional) - * @return ApiResponse<GcUpdateBanByIdResponse> + * @param mutedUserId (required) + * @return gcUnmuteUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcUpdateBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId, GcUpdateBanByIdData gcUpdateBanByIdData) throws ApiException { + public APIgcUnmuteUserByIdRequest gcUnmuteUserById(String channelUrl, String mutedUserId) throws ApiException { + return new APIgcUnmuteUserByIdRequest(channelUrl, mutedUserId); + } + +private ApiResponse gcUpdateBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId, GcUpdateBanByIdData gcUpdateBanByIdData) throws ApiException { Object localVarPostBody = gcUpdateBanByIdData; // verify the required parameter 'apiToken' is set @@ -892,39 +1248,85 @@ public ApiResponse gcUpdateBanByIdWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param bannedUserId (required) - * @return GcViewBanByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcViewBanByIdResponse gcViewBanById(String apiToken, String channelUrl, String bannedUserId) throws ApiException { - return gcViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).getData(); + + public class APIgcUpdateBanByIdRequest { + private String apiToken; + private String channelUrl; + private String bannedUserId; + private GcUpdateBanByIdData gcUpdateBanByIdData; + + private APIgcUpdateBanByIdRequest(String channelUrl, String bannedUserId) { + this.channelUrl = channelUrl; + this.bannedUserId = bannedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcUpdateBanByIdRequest + */ + public APIgcUpdateBanByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set gcUpdateBanByIdData + * @param gcUpdateBanByIdData (optional) + * @return APIgcUpdateBanByIdRequest + */ + public APIgcUpdateBanByIdRequest gcUpdateBanByIdData(GcUpdateBanByIdData gcUpdateBanByIdData) { + this.gcUpdateBanByIdData = gcUpdateBanByIdData; + return this; + } + + /** + * Execute gcUpdateBanById request + * @return GcUpdateBanByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcUpdateBanByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcUpdateBanById request with HTTP info returned + * @return ApiResponse<GcUpdateBanByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, gcUpdateBanByIdData); + } } /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - * @param apiToken (required) + * Update a ban + * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- * @param channelUrl (required) * @param bannedUserId (required) - * @return ApiResponse<GcViewBanByIdResponse> + * @return gcUpdateBanByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcViewBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { + public APIgcUpdateBanByIdRequest gcUpdateBanById(String channelUrl, String bannedUserId) throws ApiException { + return new APIgcUpdateBanByIdRequest(channelUrl, bannedUserId); + } + +private ApiResponse gcViewBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -977,39 +1379,74 @@ public ApiResponse gcViewBanByIdWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a mute - * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param mutedUserId (required) - * @return GcViewMuteByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GcViewMuteByIdResponse gcViewMuteById(String apiToken, String channelUrl, String mutedUserId) throws ApiException { - return gcViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).getData(); + + public class APIgcViewBanByIdRequest { + private String apiToken; + private String channelUrl; + private String bannedUserId; + + private APIgcViewBanByIdRequest(String channelUrl, String bannedUserId) { + this.channelUrl = channelUrl; + this.bannedUserId = bannedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcViewBanByIdRequest + */ + public APIgcViewBanByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute gcViewBanById request + * @return GcViewBanByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcViewBanByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcViewBanById request with HTTP info returned + * @return ApiResponse<GcViewBanByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId); + } } /** - * View a mute - * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - * @param apiToken (required) + * View a ban + * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- * @param channelUrl (required) - * @param mutedUserId (required) - * @return ApiResponse<GcViewMuteByIdResponse> + * @param bannedUserId (required) + * @return gcViewBanByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse gcViewMuteByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { + public APIgcViewBanByIdRequest gcViewBanById(String channelUrl, String bannedUserId) throws ApiException { + return new APIgcViewBanByIdRequest(channelUrl, bannedUserId); + } + +private ApiResponse gcViewMuteByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1062,41 +1499,74 @@ public ApiResponse gcViewMuteByIdWithHttpInfo(String api localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List banned channels - * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) - * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @return ListBannedChannelsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListBannedChannelsResponse listBannedChannels(String apiToken, String userId, String token, Integer limit) throws ApiException { - return listBannedChannelsWithHttpInfo(apiToken, userId, token, limit).getData(); + + public class APIgcViewMuteByIdRequest { + private String apiToken; + private String channelUrl; + private String mutedUserId; + + private APIgcViewMuteByIdRequest(String channelUrl, String mutedUserId) { + this.channelUrl = channelUrl; + this.mutedUserId = mutedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgcViewMuteByIdRequest + */ + public APIgcViewMuteByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute gcViewMuteById request + * @return GcViewMuteByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GcViewMuteByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute gcViewMuteById request with HTTP info returned + * @return ApiResponse<GcViewMuteByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return gcViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId); + } } /** - * List banned channels - * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) - * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListBannedChannelsResponse> + * View a mute + * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- + * @param channelUrl (required) + * @param mutedUserId (required) + * @return gcViewMuteByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listBannedChannelsWithHttpInfo(String apiToken, String userId, String token, Integer limit) throws ApiException { + public APIgcViewMuteByIdRequest gcViewMuteById(String channelUrl, String mutedUserId) throws ApiException { + return new APIgcViewMuteByIdRequest(channelUrl, mutedUserId); + } + +private ApiResponse listBannedChannelsWithHttpInfo(String apiToken, String userId, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1145,47 +1615,93 @@ public ApiResponse listBannedChannelsWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List blocked users - * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) - * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @param userIds (optional) - * @param metadatakey (optional) - * @param metadatavaluesIn (optional) - * @return ListBlockedUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListBlockedUsersResponse listBlockedUsers(String apiToken, String userId, String token, Integer limit, String userIds, String metadatakey, String metadatavaluesIn) throws ApiException { - return listBlockedUsersWithHttpInfo(apiToken, userId, token, limit, userIds, metadatakey, metadatavaluesIn).getData(); + + public class APIlistBannedChannelsRequest { + private String apiToken; + private String userId; + private String token; + private Integer limit; + + private APIlistBannedChannelsRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistBannedChannelsRequest + */ + public APIlistBannedChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistBannedChannelsRequest + */ + public APIlistBannedChannelsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistBannedChannelsRequest + */ + public APIlistBannedChannelsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listBannedChannels request + * @return ListBannedChannelsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListBannedChannelsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listBannedChannels request with HTTP info returned + * @return ApiResponse<ListBannedChannelsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listBannedChannelsWithHttpInfo(apiToken, userId, token, limit); + } } /** - * List blocked users - * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) + * List banned channels + * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @param userIds (optional) - * @param metadatakey (optional) - * @param metadatavaluesIn (optional) - * @return ApiResponse<ListBlockedUsersResponse> + * @return listBannedChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listBlockedUsersWithHttpInfo(String apiToken, String userId, String token, Integer limit, String userIds, String metadatakey, String metadatavaluesIn) throws ApiException { + public APIlistBannedChannelsRequest listBannedChannels(String userId) throws ApiException { + return new APIlistBannedChannelsRequest(userId); + } + +private ApiResponse listBlockedUsersWithHttpInfo(String apiToken, String userId, String token, Integer limit, String userIds, String metadatakey, String metadatavaluesIn) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1237,41 +1753,126 @@ public ApiResponse listBlockedUsersWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List muted channels - * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) - * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @return ListMutedChannelsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListMutedChannelsResponse listMutedChannels(String apiToken, String userId, String token, Integer limit) throws ApiException { - return listMutedChannelsWithHttpInfo(apiToken, userId, token, limit).getData(); + + public class APIlistBlockedUsersRequest { + private String apiToken; + private String userId; + private String token; + private Integer limit; + private String userIds; + private String metadatakey; + private String metadatavaluesIn; + + private APIlistBlockedUsersRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistBlockedUsersRequest + */ + public APIlistBlockedUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistBlockedUsersRequest + */ + public APIlistBlockedUsersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistBlockedUsersRequest + */ + public APIlistBlockedUsersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set userIds + * @param userIds (optional) + * @return APIlistBlockedUsersRequest + */ + public APIlistBlockedUsersRequest userIds(String userIds) { + this.userIds = userIds; + return this; + } + + /** + * Set metadatakey + * @param metadatakey (optional) + * @return APIlistBlockedUsersRequest + */ + public APIlistBlockedUsersRequest metadatakey(String metadatakey) { + this.metadatakey = metadatakey; + return this; + } + + /** + * Set metadatavaluesIn + * @param metadatavaluesIn (optional) + * @return APIlistBlockedUsersRequest + */ + public APIlistBlockedUsersRequest metadatavaluesIn(String metadatavaluesIn) { + this.metadatavaluesIn = metadatavaluesIn; + return this; + } + + /** + * Execute listBlockedUsers request + * @return ListBlockedUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListBlockedUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listBlockedUsers request with HTTP info returned + * @return ApiResponse<ListBlockedUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listBlockedUsersWithHttpInfo(apiToken, userId, token, limit, userIds, metadatakey, metadatavaluesIn); + } } /** - * List muted channels - * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) + * List blocked users + * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListMutedChannelsResponse> + * @return listBlockedUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listMutedChannelsWithHttpInfo(String apiToken, String userId, String token, Integer limit) throws ApiException { + public APIlistBlockedUsersRequest listBlockedUsers(String userId) throws ApiException { + return new APIlistBlockedUsersRequest(userId); + } + +private ApiResponse listMutedChannelsWithHttpInfo(String apiToken, String userId, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1320,39 +1921,93 @@ public ApiResponse listMutedChannelsWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mute in channels with custom channel types - * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param muteInChannelsWithCustomChannelTypesData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object muteInChannelsWithCustomChannelTypes(String apiToken, String userId, MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData) throws ApiException { - return muteInChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, muteInChannelsWithCustomChannelTypesData).getData(); + + public class APIlistMutedChannelsRequest { + private String apiToken; + private String userId; + private String token; + private Integer limit; + + private APIlistMutedChannelsRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistMutedChannelsRequest + */ + public APIlistMutedChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistMutedChannelsRequest + */ + public APIlistMutedChannelsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistMutedChannelsRequest + */ + public APIlistMutedChannelsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listMutedChannels request + * @return ListMutedChannelsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListMutedChannelsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listMutedChannels request with HTTP info returned + * @return ApiResponse<ListMutedChannelsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutedChannelsWithHttpInfo(apiToken, userId, token, limit); + } } /** - * Mute in channels with custom channel types - * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - * @param apiToken (required) + * List muted channels + * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. * @param userId (required) - * @param muteInChannelsWithCustomChannelTypesData (optional) - * @return ApiResponse<Object> + * @return listMutedChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse muteInChannelsWithCustomChannelTypesWithHttpInfo(String apiToken, String userId, MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData) throws ApiException { + public APIlistMutedChannelsRequest listMutedChannels(String userId) throws ApiException { + return new APIlistMutedChannelsRequest(userId); + } + +private ApiResponse muteInChannelsWithCustomChannelTypesWithHttpInfo(String apiToken, String userId, MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData) throws ApiException { Object localVarPostBody = muteInChannelsWithCustomChannelTypesData; // verify the required parameter 'apiToken' is set @@ -1399,39 +2054,82 @@ public ApiResponse muteInChannelsWithCustomChannelTypesWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Ban a user - * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param ocBanUserData (optional) - * @return OcBanUserResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcBanUserResponse ocBanUser(String apiToken, String channelUrl, OcBanUserData ocBanUserData) throws ApiException { - return ocBanUserWithHttpInfo(apiToken, channelUrl, ocBanUserData).getData(); + + public class APImuteInChannelsWithCustomChannelTypesRequest { + private String apiToken; + private String userId; + private MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData; + + private APImuteInChannelsWithCustomChannelTypesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APImuteInChannelsWithCustomChannelTypesRequest + */ + public APImuteInChannelsWithCustomChannelTypesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set muteInChannelsWithCustomChannelTypesData + * @param muteInChannelsWithCustomChannelTypesData (optional) + * @return APImuteInChannelsWithCustomChannelTypesRequest + */ + public APImuteInChannelsWithCustomChannelTypesRequest muteInChannelsWithCustomChannelTypesData(MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData) { + this.muteInChannelsWithCustomChannelTypesData = muteInChannelsWithCustomChannelTypesData; + return this; + } + + /** + * Execute muteInChannelsWithCustomChannelTypes request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute muteInChannelsWithCustomChannelTypes request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return muteInChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, muteInChannelsWithCustomChannelTypesData); + } } /** - * Ban a user - * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param ocBanUserData (optional) - * @return ApiResponse<OcBanUserResponse> + * Mute in channels with custom channel types + * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- + * @param userId (required) + * @return muteInChannelsWithCustomChannelTypesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocBanUserWithHttpInfo(String apiToken, String channelUrl, OcBanUserData ocBanUserData) throws ApiException { + public APImuteInChannelsWithCustomChannelTypesRequest muteInChannelsWithCustomChannelTypes(String userId) throws ApiException { + return new APImuteInChannelsWithCustomChannelTypesRequest(userId); + } + +private ApiResponse ocBanUserWithHttpInfo(String apiToken, String channelUrl, OcBanUserData ocBanUserData) throws ApiException { Object localVarPostBody = ocBanUserData; // verify the required parameter 'apiToken' is set @@ -1478,39 +2176,82 @@ public ApiResponse ocBanUserWithHttpInfo(String apiToken, Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param ocFreezeChannelData (optional) - * @return SendBirdOpenChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdOpenChannel ocFreezeChannel(String apiToken, String channelUrl, OcFreezeChannelData ocFreezeChannelData) throws ApiException { - return ocFreezeChannelWithHttpInfo(apiToken, channelUrl, ocFreezeChannelData).getData(); + + public class APIocBanUserRequest { + private String apiToken; + private String channelUrl; + private OcBanUserData ocBanUserData; + + private APIocBanUserRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocBanUserRequest + */ + public APIocBanUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocBanUserData + * @param ocBanUserData (optional) + * @return APIocBanUserRequest + */ + public APIocBanUserRequest ocBanUserData(OcBanUserData ocBanUserData) { + this.ocBanUserData = ocBanUserData; + return this; + } + + /** + * Execute ocBanUser request + * @return OcBanUserResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcBanUserResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocBanUser request with HTTP info returned + * @return ApiResponse<OcBanUserResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocBanUserWithHttpInfo(apiToken, channelUrl, ocBanUserData); + } } /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - * @param apiToken (required) + * Ban a user + * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- * @param channelUrl (required) - * @param ocFreezeChannelData (optional) - * @return ApiResponse<SendBirdOpenChannel> + * @return ocBanUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocFreezeChannelWithHttpInfo(String apiToken, String channelUrl, OcFreezeChannelData ocFreezeChannelData) throws ApiException { + public APIocBanUserRequest ocBanUser(String channelUrl) throws ApiException { + return new APIocBanUserRequest(channelUrl); + } + +private ApiResponse ocFreezeChannelWithHttpInfo(String apiToken, String channelUrl, OcFreezeChannelData ocFreezeChannelData) throws ApiException { Object localVarPostBody = ocFreezeChannelData; // verify the required parameter 'apiToken' is set @@ -1557,41 +2298,82 @@ public ApiResponse ocFreezeChannelWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List banned users - * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return OcListBannedUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcListBannedUsersResponse ocListBannedUsers(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return ocListBannedUsersWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIocFreezeChannelRequest { + private String apiToken; + private String channelUrl; + private OcFreezeChannelData ocFreezeChannelData; + + private APIocFreezeChannelRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocFreezeChannelRequest + */ + public APIocFreezeChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocFreezeChannelData + * @param ocFreezeChannelData (optional) + * @return APIocFreezeChannelRequest + */ + public APIocFreezeChannelRequest ocFreezeChannelData(OcFreezeChannelData ocFreezeChannelData) { + this.ocFreezeChannelData = ocFreezeChannelData; + return this; + } + + /** + * Execute ocFreezeChannel request + * @return SendBirdOpenChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdOpenChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocFreezeChannel request with HTTP info returned + * @return ApiResponse<SendBirdOpenChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocFreezeChannelWithHttpInfo(apiToken, channelUrl, ocFreezeChannelData); + } } /** - * List banned users - * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param apiToken (required) + * Freeze a channel + * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<OcListBannedUsersResponse> + * @return ocFreezeChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocListBannedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIocFreezeChannelRequest ocFreezeChannel(String channelUrl) throws ApiException { + return new APIocFreezeChannelRequest(channelUrl); + } + +private ApiResponse ocListBannedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1640,41 +2422,93 @@ public ApiResponse ocListBannedUsersWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List muted users - * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return OcListMutedUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcListMutedUsersResponse ocListMutedUsers(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return ocListMutedUsersWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIocListBannedUsersRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIocListBannedUsersRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocListBannedUsersRequest + */ + public APIocListBannedUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIocListBannedUsersRequest + */ + public APIocListBannedUsersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIocListBannedUsersRequest + */ + public APIocListBannedUsersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute ocListBannedUsers request + * @return OcListBannedUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcListBannedUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocListBannedUsers request with HTTP info returned + * @return ApiResponse<OcListBannedUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocListBannedUsersWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * List muted users - * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param apiToken (required) + * List banned users + * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<OcListMutedUsersResponse> + * @return ocListBannedUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocListMutedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIocListBannedUsersRequest ocListBannedUsers(String channelUrl) throws ApiException { + return new APIocListBannedUsersRequest(channelUrl); + } + +private ApiResponse ocListMutedUsersWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1723,39 +2557,93 @@ public ApiResponse ocListMutedUsersWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mute a user - * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - * @param apiToken (required) - * @param channelUrl (required) - * @param ocMuteUserData (optional) - * @return SendBirdOpenChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdOpenChannel ocMuteUser(String apiToken, String channelUrl, OcMuteUserData ocMuteUserData) throws ApiException { - return ocMuteUserWithHttpInfo(apiToken, channelUrl, ocMuteUserData).getData(); + + public class APIocListMutedUsersRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIocListMutedUsersRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocListMutedUsersRequest + */ + public APIocListMutedUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIocListMutedUsersRequest + */ + public APIocListMutedUsersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIocListMutedUsersRequest + */ + public APIocListMutedUsersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute ocListMutedUsers request + * @return OcListMutedUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcListMutedUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocListMutedUsers request with HTTP info returned + * @return ApiResponse<OcListMutedUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocListMutedUsersWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * Mute a user - * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - * @param apiToken (required) + * List muted users + * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. * @param channelUrl (required) - * @param ocMuteUserData (optional) - * @return ApiResponse<SendBirdOpenChannel> + * @return ocListMutedUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocMuteUserWithHttpInfo(String apiToken, String channelUrl, OcMuteUserData ocMuteUserData) throws ApiException { + public APIocListMutedUsersRequest ocListMutedUsers(String channelUrl) throws ApiException { + return new APIocListMutedUsersRequest(channelUrl); + } + +private ApiResponse ocMuteUserWithHttpInfo(String apiToken, String channelUrl, OcMuteUserData ocMuteUserData) throws ApiException { Object localVarPostBody = ocMuteUserData; // verify the required parameter 'apiToken' is set @@ -1802,39 +2690,82 @@ public ApiResponse ocMuteUserWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unban a user - * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param bannedUserId (required) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response ocUnbanUserById(String apiToken, String channelUrl, String bannedUserId) throws ApiException { - return ocUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).getData(); + + public class APIocMuteUserRequest { + private String apiToken; + private String channelUrl; + private OcMuteUserData ocMuteUserData; + + private APIocMuteUserRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocMuteUserRequest + */ + public APIocMuteUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocMuteUserData + * @param ocMuteUserData (optional) + * @return APIocMuteUserRequest + */ + public APIocMuteUserRequest ocMuteUserData(OcMuteUserData ocMuteUserData) { + this.ocMuteUserData = ocMuteUserData; + return this; + } + + /** + * Execute ocMuteUser request + * @return SendBirdOpenChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdOpenChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocMuteUser request with HTTP info returned + * @return ApiResponse<SendBirdOpenChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocMuteUserWithHttpInfo(apiToken, channelUrl, ocMuteUserData); + } } /** - * Unban a user - * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - * @param apiToken (required) + * Mute a user + * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user * @param channelUrl (required) - * @param bannedUserId (required) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return ocMuteUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocUnbanUserByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { + public APIocMuteUserRequest ocMuteUser(String channelUrl) throws ApiException { + return new APIocMuteUserRequest(channelUrl); + } + +private ApiResponse ocUnbanUserByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1887,39 +2818,74 @@ public ApiResponse ocUnbanUserByIdWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unmute a user - * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param mutedUserId (required) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response ocUnmuteUserById(String apiToken, String channelUrl, String mutedUserId) throws ApiException { - return ocUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).getData(); + + public class APIocUnbanUserByIdRequest { + private String apiToken; + private String channelUrl; + private String bannedUserId; + + private APIocUnbanUserByIdRequest(String channelUrl, String bannedUserId) { + this.channelUrl = channelUrl; + this.bannedUserId = bannedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocUnbanUserByIdRequest + */ + public APIocUnbanUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute ocUnbanUserById request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocUnbanUserById request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId); + } } /** - * Unmute a user - * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - * @param apiToken (required) + * Unban a user + * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- * @param channelUrl (required) - * @param mutedUserId (required) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @param bannedUserId (required) + * @return ocUnbanUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocUnmuteUserByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { + public APIocUnbanUserByIdRequest ocUnbanUserById(String channelUrl, String bannedUserId) throws ApiException { + return new APIocUnbanUserByIdRequest(channelUrl, bannedUserId); + } + +private ApiResponse ocUnmuteUserByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1972,41 +2938,74 @@ public ApiResponse ocUnmuteUserByIdWithHttpInfo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param bannedUserId (required) - * @param ocUpdateBanByIdData (optional) - * @return OcUpdateBanByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcUpdateBanByIdResponse ocUpdateBanById(String apiToken, String channelUrl, String bannedUserId, OcUpdateBanByIdData ocUpdateBanByIdData) throws ApiException { - return ocUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, ocUpdateBanByIdData).getData(); + + public class APIocUnmuteUserByIdRequest { + private String apiToken; + private String channelUrl; + private String mutedUserId; + + private APIocUnmuteUserByIdRequest(String channelUrl, String mutedUserId) { + this.channelUrl = channelUrl; + this.mutedUserId = mutedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocUnmuteUserByIdRequest + */ + public APIocUnmuteUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute ocUnmuteUserById request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocUnmuteUserById request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId); + } } /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - * @param apiToken (required) + * Unmute a user + * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- * @param channelUrl (required) - * @param bannedUserId (required) - * @param ocUpdateBanByIdData (optional) - * @return ApiResponse<OcUpdateBanByIdResponse> + * @param mutedUserId (required) + * @return ocUnmuteUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocUpdateBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId, OcUpdateBanByIdData ocUpdateBanByIdData) throws ApiException { + public APIocUnmuteUserByIdRequest ocUnmuteUserById(String channelUrl, String mutedUserId) throws ApiException { + return new APIocUnmuteUserByIdRequest(channelUrl, mutedUserId); + } + +private ApiResponse ocUpdateBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId, OcUpdateBanByIdData ocUpdateBanByIdData) throws ApiException { Object localVarPostBody = ocUpdateBanByIdData; // verify the required parameter 'apiToken' is set @@ -2059,39 +3058,85 @@ public ApiResponse ocUpdateBanByIdWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param bannedUserId (required) - * @return OcViewBanByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcViewBanByIdResponse ocViewBanById(String apiToken, String channelUrl, String bannedUserId) throws ApiException { - return ocViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).getData(); + + public class APIocUpdateBanByIdRequest { + private String apiToken; + private String channelUrl; + private String bannedUserId; + private OcUpdateBanByIdData ocUpdateBanByIdData; + + private APIocUpdateBanByIdRequest(String channelUrl, String bannedUserId) { + this.channelUrl = channelUrl; + this.bannedUserId = bannedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocUpdateBanByIdRequest + */ + public APIocUpdateBanByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocUpdateBanByIdData + * @param ocUpdateBanByIdData (optional) + * @return APIocUpdateBanByIdRequest + */ + public APIocUpdateBanByIdRequest ocUpdateBanByIdData(OcUpdateBanByIdData ocUpdateBanByIdData) { + this.ocUpdateBanByIdData = ocUpdateBanByIdData; + return this; + } + + /** + * Execute ocUpdateBanById request + * @return OcUpdateBanByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcUpdateBanByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocUpdateBanById request with HTTP info returned + * @return ApiResponse<OcUpdateBanByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, ocUpdateBanByIdData); + } } /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - * @param apiToken (required) + * Update a ban + * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- * @param channelUrl (required) * @param bannedUserId (required) - * @return ApiResponse<OcViewBanByIdResponse> + * @return ocUpdateBanByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocViewBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { + public APIocUpdateBanByIdRequest ocUpdateBanById(String channelUrl, String bannedUserId) throws ApiException { + return new APIocUpdateBanByIdRequest(channelUrl, bannedUserId); + } + +private ApiResponse ocViewBanByIdWithHttpInfo(String apiToken, String channelUrl, String bannedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2144,39 +3189,74 @@ public ApiResponse ocViewBanByIdWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a mute - * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param mutedUserId (required) - * @return OcViewMuteByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcViewMuteByIdResponse ocViewMuteById(String apiToken, String channelUrl, String mutedUserId) throws ApiException { - return ocViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).getData(); + + public class APIocViewBanByIdRequest { + private String apiToken; + private String channelUrl; + private String bannedUserId; + + private APIocViewBanByIdRequest(String channelUrl, String bannedUserId) { + this.channelUrl = channelUrl; + this.bannedUserId = bannedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocViewBanByIdRequest + */ + public APIocViewBanByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute ocViewBanById request + * @return OcViewBanByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcViewBanByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocViewBanById request with HTTP info returned + * @return ApiResponse<OcViewBanByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId); + } } /** - * View a mute - * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - * @param apiToken (required) + * View a ban + * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- * @param channelUrl (required) - * @param mutedUserId (required) - * @return ApiResponse<OcViewMuteByIdResponse> + * @param bannedUserId (required) + * @return ocViewBanByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocViewMuteByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { + public APIocViewBanByIdRequest ocViewBanById(String channelUrl, String bannedUserId) throws ApiException { + return new APIocViewBanByIdRequest(channelUrl, bannedUserId); + } + +private ApiResponse ocViewMuteByIdWithHttpInfo(String apiToken, String channelUrl, String mutedUserId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2229,39 +3309,74 @@ public ApiResponse ocViewMuteByIdWithHttpInfo(String api localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Unblock a user - * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param targetId (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object unblockUserById(String apiToken, String userId, String targetId) throws ApiException { - return unblockUserByIdWithHttpInfo(apiToken, userId, targetId).getData(); + + public class APIocViewMuteByIdRequest { + private String apiToken; + private String channelUrl; + private String mutedUserId; + + private APIocViewMuteByIdRequest(String channelUrl, String mutedUserId) { + this.channelUrl = channelUrl; + this.mutedUserId = mutedUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocViewMuteByIdRequest + */ + public APIocViewMuteByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute ocViewMuteById request + * @return OcViewMuteByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcViewMuteByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocViewMuteById request with HTTP info returned + * @return ApiResponse<OcViewMuteByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId); + } } /** - * Unblock a user - * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param targetId (required) - * @return ApiResponse<Object> + * View a mute + * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- + * @param channelUrl (required) + * @param mutedUserId (required) + * @return ocViewMuteByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse unblockUserByIdWithHttpInfo(String apiToken, String userId, String targetId) throws ApiException { + public APIocViewMuteByIdRequest ocViewMuteById(String channelUrl, String mutedUserId) throws ApiException { + return new APIocViewMuteByIdRequest(channelUrl, mutedUserId); + } + +private ApiResponse unblockUserByIdWithHttpInfo(String apiToken, String userId, String targetId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2314,4 +3429,70 @@ public ApiResponse unblockUserByIdWithHttpInfo(String apiToken, String u localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIunblockUserByIdRequest { + private String apiToken; + private String userId; + private String targetId; + + private APIunblockUserByIdRequest(String userId, String targetId) { + this.userId = userId; + this.targetId = targetId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIunblockUserByIdRequest + */ + public APIunblockUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute unblockUserById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute unblockUserById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return unblockUserByIdWithHttpInfo(apiToken, userId, targetId); + } + } + + /** + * Unblock a user + * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- + * @param userId (required) + * @param targetId (required) + * @return unblockUserByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIunblockUserByIdRequest unblockUserById(String userId, String targetId) throws ApiException { + return new APIunblockUserByIdRequest(userId, targetId); + } } diff --git a/src/main/java/org/sendbird/client/api/OpenChannelApi.java b/src/main/java/org/sendbird/client/api/OpenChannelApi.java index 06f54169..8f960b52 100644 --- a/src/main/java/org/sendbird/client/api/OpenChannelApi.java +++ b/src/main/java/org/sendbird/client/api/OpenChannelApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class OpenChannelApi { private ApiClient apiClient; @@ -52,40 +52,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param apiToken (required) - * @param channelUrl (required) - * @param operatorIds (required) - * @param deleteAll (optional) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void ocCancelTheRegistrationOfOperators(String apiToken, String channelUrl, List operatorIds, Boolean deleteAll) throws ApiException { - ocCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, deleteAll); - } - /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param apiToken (required) - * @param channelUrl (required) - * @param operatorIds (required) - * @param deleteAll (optional) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse ocCancelTheRegistrationOfOperatorsWithHttpInfo(String apiToken, String channelUrl, List operatorIds, Boolean deleteAll) throws ApiException { +private ApiResponse ocCancelTheRegistrationOfOperatorsWithHttpInfo(String apiToken, String channelUrl, List operatorIds, Boolean deleteAll) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -137,37 +105,93 @@ public ApiResponse ocCancelTheRegistrationOfOperatorsWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * Create a channel - * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - * @param apiToken (required) - * @param ocCreateChannelData (optional) - * @return SendBirdOpenChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdOpenChannel ocCreateChannel(String apiToken, OcCreateChannelData ocCreateChannelData) throws ApiException { - return ocCreateChannelWithHttpInfo(apiToken, ocCreateChannelData).getData(); + + public class APIocCancelTheRegistrationOfOperatorsRequest { + private String apiToken; + private String channelUrl; + private List operatorIds; + private Boolean deleteAll; + + private APIocCancelTheRegistrationOfOperatorsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocCancelTheRegistrationOfOperatorsRequest + */ + public APIocCancelTheRegistrationOfOperatorsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set operatorIds + * @param operatorIds (required) + * @return APIocCancelTheRegistrationOfOperatorsRequest + */ + public APIocCancelTheRegistrationOfOperatorsRequest operatorIds(List operatorIds) { + this.operatorIds = operatorIds; + return this; + } + + /** + * Set deleteAll + * @param deleteAll (optional) + * @return APIocCancelTheRegistrationOfOperatorsRequest + */ + public APIocCancelTheRegistrationOfOperatorsRequest deleteAll(Boolean deleteAll) { + this.deleteAll = deleteAll; + return this; + } + + /** + * Execute ocCancelTheRegistrationOfOperators request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocCancelTheRegistrationOfOperators request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, deleteAll); + } } /** - * Create a channel - * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - * @param apiToken (required) - * @param ocCreateChannelData (optional) - * @return ApiResponse<SendBirdOpenChannel> + * Cancel the registration of operators + * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param channelUrl (required) + * @return ocCancelTheRegistrationOfOperatorsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocCreateChannelWithHttpInfo(String apiToken, OcCreateChannelData ocCreateChannelData) throws ApiException { + public APIocCancelTheRegistrationOfOperatorsRequest ocCancelTheRegistrationOfOperators(String channelUrl) throws ApiException { + return new APIocCancelTheRegistrationOfOperatorsRequest(channelUrl); + } + +private ApiResponse ocCreateChannelWithHttpInfo(String apiToken, OcCreateChannelData ocCreateChannelData) throws ApiException { Object localVarPostBody = ocCreateChannelData; // verify the required parameter 'apiToken' is set @@ -208,37 +232,79 @@ public ApiResponse ocCreateChannelWithHttpInfo(String apiTo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete a channel - * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response ocDeleteChannelByUrl(String apiToken, String channelUrl) throws ApiException { - return ocDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl).getData(); + + public class APIocCreateChannelRequest { + private String apiToken; + private OcCreateChannelData ocCreateChannelData; + + private APIocCreateChannelRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocCreateChannelRequest + */ + public APIocCreateChannelRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocCreateChannelData + * @param ocCreateChannelData (optional) + * @return APIocCreateChannelRequest + */ + public APIocCreateChannelRequest ocCreateChannelData(OcCreateChannelData ocCreateChannelData) { + this.ocCreateChannelData = ocCreateChannelData; + return this; + } + + /** + * Execute ocCreateChannel request + * @return SendBirdOpenChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdOpenChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocCreateChannel request with HTTP info returned + * @return ApiResponse<SendBirdOpenChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocCreateChannelWithHttpInfo(apiToken, ocCreateChannelData); + } } /** - * Delete a channel - * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * Create a channel + * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel + * @return ocCreateChannelRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocDeleteChannelByUrlWithHttpInfo(String apiToken, String channelUrl) throws ApiException { + public APIocCreateChannelRequest ocCreateChannel() throws ApiException { + return new APIocCreateChannelRequest(); + } + +private ApiResponse ocDeleteChannelByUrlWithHttpInfo(String apiToken, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -285,51 +351,71 @@ public ApiResponse ocDeleteChannelByUrlWithHttp localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List channels - * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param customTypes (optional) - * @param nameContains (optional) - * @param urlContains (optional) - * @param showFrozen (optional) - * @param showMetadata (optional) - * @param customType (optional) - * @return OcListChannelsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcListChannelsResponse ocListChannels(String apiToken, String token, Integer limit, String customTypes, String nameContains, String urlContains, Boolean showFrozen, Boolean showMetadata, String customType) throws ApiException { - return ocListChannelsWithHttpInfo(apiToken, token, limit, customTypes, nameContains, urlContains, showFrozen, showMetadata, customType).getData(); + + public class APIocDeleteChannelByUrlRequest { + private String apiToken; + private String channelUrl; + + private APIocDeleteChannelByUrlRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocDeleteChannelByUrlRequest + */ + public APIocDeleteChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute ocDeleteChannelByUrl request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocDeleteChannelByUrl request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl); + } } /** - * List channels - * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param customTypes (optional) - * @param nameContains (optional) - * @param urlContains (optional) - * @param showFrozen (optional) - * @param showMetadata (optional) - * @param customType (optional) - * @return ApiResponse<OcListChannelsResponse> + * Delete a channel + * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- + * @param channelUrl (required) + * @return ocDeleteChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocListChannelsWithHttpInfo(String apiToken, String token, Integer limit, String customTypes, String nameContains, String urlContains, Boolean showFrozen, Boolean showMetadata, String customType) throws ApiException { + public APIocDeleteChannelByUrlRequest ocDeleteChannelByUrl(String channelUrl) throws ApiException { + return new APIocDeleteChannelByUrlRequest(channelUrl); + } + +private ApiResponse ocListChannelsWithHttpInfo(String apiToken, String token, Integer limit, String customTypes, String nameContains, String urlContains, Boolean showFrozen, Boolean showMetadata, String customType) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -378,41 +464,156 @@ public ApiResponse ocListChannelsWithHttpInfo(String api localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List operators - * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return OcListOperatorsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcListOperatorsResponse ocListOperators(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return ocListOperatorsWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIocListChannelsRequest { + private String apiToken; + private String token; + private Integer limit; + private String customTypes; + private String nameContains; + private String urlContains; + private Boolean showFrozen; + private Boolean showMetadata; + private String customType; + + private APIocListChannelsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest customTypes(String customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set nameContains + * @param nameContains (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest nameContains(String nameContains) { + this.nameContains = nameContains; + return this; + } + + /** + * Set urlContains + * @param urlContains (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest urlContains(String urlContains) { + this.urlContains = urlContains; + return this; + } + + /** + * Set showFrozen + * @param showFrozen (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest showFrozen(Boolean showFrozen) { + this.showFrozen = showFrozen; + return this; + } + + /** + * Set showMetadata + * @param showMetadata (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest showMetadata(Boolean showMetadata) { + this.showMetadata = showMetadata; + return this; + } + + /** + * Set customType + * @param customType (optional) + * @return APIocListChannelsRequest + */ + public APIocListChannelsRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Execute ocListChannels request + * @return OcListChannelsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcListChannelsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocListChannels request with HTTP info returned + * @return ApiResponse<OcListChannelsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocListChannelsWithHttpInfo(apiToken, token, limit, customTypes, nameContains, urlContains, showFrozen, showMetadata, customType); + } } /** - * List operators - * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<OcListOperatorsResponse> + * List channels + * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- + * @return ocListChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocListOperatorsWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIocListChannelsRequest ocListChannels() throws ApiException { + return new APIocListChannelsRequest(); + } + +private ApiResponse ocListOperatorsWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -461,41 +662,93 @@ public ApiResponse ocListOperatorsWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List participants - * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. - * @param apiToken (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return OcListParticipantsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcListParticipantsResponse ocListParticipants(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { - return ocListParticipantsWithHttpInfo(apiToken, channelUrl, token, limit).getData(); + + public class APIocListOperatorsRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIocListOperatorsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocListOperatorsRequest + */ + public APIocListOperatorsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIocListOperatorsRequest + */ + public APIocListOperatorsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIocListOperatorsRequest + */ + public APIocListOperatorsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute ocListOperators request + * @return OcListOperatorsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcListOperatorsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocListOperators request with HTTP info returned + * @return ApiResponse<OcListOperatorsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocListOperatorsWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * List participants - * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. - * @param apiToken (required) + * List operators + * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<OcListParticipantsResponse> + * @return ocListOperatorsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocListParticipantsWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { + public APIocListOperatorsRequest ocListOperators(String channelUrl) throws ApiException { + return new APIocListOperatorsRequest(channelUrl); + } + +private ApiResponse ocListParticipantsWithHttpInfo(String apiToken, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -544,39 +797,93 @@ public ApiResponse ocListParticipantsWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Register operators - * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param ocRegisterOperatorsData (optional) - * @return OcDeleteChannelByUrl200Response - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public OcDeleteChannelByUrl200Response ocRegisterOperators(String apiToken, String channelUrl, OcRegisterOperatorsData ocRegisterOperatorsData) throws ApiException { - return ocRegisterOperatorsWithHttpInfo(apiToken, channelUrl, ocRegisterOperatorsData).getData(); + + public class APIocListParticipantsRequest { + private String apiToken; + private String channelUrl; + private String token; + private Integer limit; + + private APIocListParticipantsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocListParticipantsRequest + */ + public APIocListParticipantsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIocListParticipantsRequest + */ + public APIocListParticipantsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIocListParticipantsRequest + */ + public APIocListParticipantsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute ocListParticipants request + * @return OcListParticipantsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcListParticipantsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocListParticipants request with HTTP info returned + * @return ApiResponse<OcListParticipantsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocListParticipantsWithHttpInfo(apiToken, channelUrl, token, limit); + } } /** - * Register operators - * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- - * @param apiToken (required) + * List participants + * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. * @param channelUrl (required) - * @param ocRegisterOperatorsData (optional) - * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @return ocListParticipantsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocRegisterOperatorsWithHttpInfo(String apiToken, String channelUrl, OcRegisterOperatorsData ocRegisterOperatorsData) throws ApiException { + public APIocListParticipantsRequest ocListParticipants(String channelUrl) throws ApiException { + return new APIocListParticipantsRequest(channelUrl); + } + +private ApiResponse ocRegisterOperatorsWithHttpInfo(String apiToken, String channelUrl, OcRegisterOperatorsData ocRegisterOperatorsData) throws ApiException { Object localVarPostBody = ocRegisterOperatorsData; // verify the required parameter 'apiToken' is set @@ -623,39 +930,82 @@ public ApiResponse ocRegisterOperatorsWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a channel - * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @param ocUpdateChannelByUrlData (optional) - * @return SendBirdOpenChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdOpenChannel ocUpdateChannelByUrl(String apiToken, String channelUrl, OcUpdateChannelByUrlData ocUpdateChannelByUrlData) throws ApiException { - return ocUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, ocUpdateChannelByUrlData).getData(); + + public class APIocRegisterOperatorsRequest { + private String apiToken; + private String channelUrl; + private OcRegisterOperatorsData ocRegisterOperatorsData; + + private APIocRegisterOperatorsRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocRegisterOperatorsRequest + */ + public APIocRegisterOperatorsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocRegisterOperatorsData + * @param ocRegisterOperatorsData (optional) + * @return APIocRegisterOperatorsRequest + */ + public APIocRegisterOperatorsRequest ocRegisterOperatorsData(OcRegisterOperatorsData ocRegisterOperatorsData) { + this.ocRegisterOperatorsData = ocRegisterOperatorsData; + return this; + } + + /** + * Execute ocRegisterOperators request + * @return OcDeleteChannelByUrl200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public OcDeleteChannelByUrl200Response execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocRegisterOperators request with HTTP info returned + * @return ApiResponse<OcDeleteChannelByUrl200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocRegisterOperatorsWithHttpInfo(apiToken, channelUrl, ocRegisterOperatorsData); + } } /** - * Update a channel - * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- - * @param apiToken (required) + * Register operators + * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- * @param channelUrl (required) - * @param ocUpdateChannelByUrlData (optional) - * @return ApiResponse<SendBirdOpenChannel> + * @return ocRegisterOperatorsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocUpdateChannelByUrlWithHttpInfo(String apiToken, String channelUrl, OcUpdateChannelByUrlData ocUpdateChannelByUrlData) throws ApiException { + public APIocRegisterOperatorsRequest ocRegisterOperators(String channelUrl) throws ApiException { + return new APIocRegisterOperatorsRequest(channelUrl); + } + +private ApiResponse ocUpdateChannelByUrlWithHttpInfo(String apiToken, String channelUrl, OcUpdateChannelByUrlData ocUpdateChannelByUrlData) throws ApiException { Object localVarPostBody = ocUpdateChannelByUrlData; // verify the required parameter 'apiToken' is set @@ -702,37 +1052,82 @@ public ApiResponse ocUpdateChannelByUrlWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a channel - * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- - * @param apiToken (required) - * @param channelUrl (required) - * @return SendBirdOpenChannel - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdOpenChannel ocViewChannelByUrl(String apiToken, String channelUrl) throws ApiException { - return ocViewChannelByUrlWithHttpInfo(apiToken, channelUrl).getData(); + + public class APIocUpdateChannelByUrlRequest { + private String apiToken; + private String channelUrl; + private OcUpdateChannelByUrlData ocUpdateChannelByUrlData; + + private APIocUpdateChannelByUrlRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocUpdateChannelByUrlRequest + */ + public APIocUpdateChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set ocUpdateChannelByUrlData + * @param ocUpdateChannelByUrlData (optional) + * @return APIocUpdateChannelByUrlRequest + */ + public APIocUpdateChannelByUrlRequest ocUpdateChannelByUrlData(OcUpdateChannelByUrlData ocUpdateChannelByUrlData) { + this.ocUpdateChannelByUrlData = ocUpdateChannelByUrlData; + return this; + } + + /** + * Execute ocUpdateChannelByUrl request + * @return SendBirdOpenChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdOpenChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocUpdateChannelByUrl request with HTTP info returned + * @return ApiResponse<SendBirdOpenChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, ocUpdateChannelByUrlData); + } } /** - * View a channel - * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- - * @param apiToken (required) + * Update a channel + * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- * @param channelUrl (required) - * @return ApiResponse<SendBirdOpenChannel> + * @return ocUpdateChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse ocViewChannelByUrlWithHttpInfo(String apiToken, String channelUrl) throws ApiException { + public APIocUpdateChannelByUrlRequest ocUpdateChannelByUrl(String channelUrl) throws ApiException { + return new APIocUpdateChannelByUrlRequest(channelUrl); + } + +private ApiResponse ocViewChannelByUrlWithHttpInfo(String apiToken, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -779,4 +1174,67 @@ public ApiResponse ocViewChannelByUrlWithHttpInfo(String ap localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIocViewChannelByUrlRequest { + private String apiToken; + private String channelUrl; + + private APIocViewChannelByUrlRequest(String channelUrl) { + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIocViewChannelByUrlRequest + */ + public APIocViewChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute ocViewChannelByUrl request + * @return SendBirdOpenChannel + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdOpenChannel execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute ocViewChannelByUrl request with HTTP info returned + * @return ApiResponse<SendBirdOpenChannel> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return ocViewChannelByUrlWithHttpInfo(apiToken, channelUrl); + } + } + + /** + * View a channel + * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- + * @param channelUrl (required) + * @return ocViewChannelByUrlRequest + * @throws ApiException if fails to make API call + + + */ + public APIocViewChannelByUrlRequest ocViewChannelByUrl(String channelUrl) throws ApiException { + return new APIocViewChannelByUrlRequest(channelUrl); + } } diff --git a/src/main/java/org/sendbird/client/api/PrivacyApi.java b/src/main/java/org/sendbird/client/api/PrivacyApi.java index eae739a2..1776580a 100644 --- a/src/main/java/org/sendbird/client/api/PrivacyApi.java +++ b/src/main/java/org/sendbird/client/api/PrivacyApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class PrivacyApi { private ApiClient apiClient; @@ -48,36 +48,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Cancel the registration of a GDPR request - * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - * @param apiToken (required) - * @param requestId (required) - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public void cancelTheRegistrationOfGdprRequestById(String apiToken, String requestId) throws ApiException { - cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(apiToken, requestId); - } - /** - * Cancel the registration of a GDPR request - * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - * @param apiToken (required) - * @param requestId (required) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(String apiToken, String requestId) throws ApiException { +private ApiResponse cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(String apiToken, String requestId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -122,39 +94,71 @@ public ApiResponse cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null, false); } - /** - * List GDPR requests - * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @return ListGdprRequestsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListGdprRequestsResponse listGdprRequests(String apiToken, String token, Integer limit) throws ApiException { - return listGdprRequestsWithHttpInfo(apiToken, token, limit).getData(); + + public class APIcancelTheRegistrationOfGdprRequestByIdRequest { + private String apiToken; + private String requestId; + + private APIcancelTheRegistrationOfGdprRequestByIdRequest(String requestId) { + this.requestId = requestId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcancelTheRegistrationOfGdprRequestByIdRequest + */ + public APIcancelTheRegistrationOfGdprRequestByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute cancelTheRegistrationOfGdprRequestById request + + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public void execute() throws ApiException { + this.executeWithHttpInfo().getData(); + } + + /** + * Execute cancelTheRegistrationOfGdprRequestById request with HTTP info returned + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(apiToken, requestId); + } } /** - * List GDPR requests - * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListGdprRequestsResponse> + * Cancel the registration of a GDPR request + * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- + * @param requestId (required) + * @return cancelTheRegistrationOfGdprRequestByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listGdprRequestsWithHttpInfo(String apiToken, String token, Integer limit) throws ApiException { + public APIcancelTheRegistrationOfGdprRequestByIdRequest cancelTheRegistrationOfGdprRequestById(String requestId) throws ApiException { + return new APIcancelTheRegistrationOfGdprRequestByIdRequest(requestId); + } + +private ApiResponse listGdprRequestsWithHttpInfo(String apiToken, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -197,37 +201,90 @@ public ApiResponse listGdprRequestsWithHttpInfo(String localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Register a GDPR request - * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - * @param apiToken (required) - * @param registerGdprRequestData (optional) - * @return RegisterGdprRequestResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RegisterGdprRequestResponse registerGdprRequest(String apiToken, RegisterGdprRequestData registerGdprRequestData) throws ApiException { - return registerGdprRequestWithHttpInfo(apiToken, registerGdprRequestData).getData(); + + public class APIlistGdprRequestsRequest { + private String apiToken; + private String token; + private Integer limit; + + private APIlistGdprRequestsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistGdprRequestsRequest + */ + public APIlistGdprRequestsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistGdprRequestsRequest + */ + public APIlistGdprRequestsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistGdprRequestsRequest + */ + public APIlistGdprRequestsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listGdprRequests request + * @return ListGdprRequestsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListGdprRequestsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listGdprRequests request with HTTP info returned + * @return ApiResponse<ListGdprRequestsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listGdprRequestsWithHttpInfo(apiToken, token, limit); + } } /** - * Register a GDPR request - * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - * @param apiToken (required) - * @param registerGdprRequestData (optional) - * @return ApiResponse<RegisterGdprRequestResponse> + * List GDPR requests + * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- + * @return listGdprRequestsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse registerGdprRequestWithHttpInfo(String apiToken, RegisterGdprRequestData registerGdprRequestData) throws ApiException { + public APIlistGdprRequestsRequest listGdprRequests() throws ApiException { + return new APIlistGdprRequestsRequest(); + } + +private ApiResponse registerGdprRequestWithHttpInfo(String apiToken, RegisterGdprRequestData registerGdprRequestData) throws ApiException { Object localVarPostBody = registerGdprRequestData; // verify the required parameter 'apiToken' is set @@ -268,37 +325,79 @@ public ApiResponse registerGdprRequestWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a GDPR request - * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - * @param apiToken (required) - * @param requestId (required) - * @return ViewGdprRequestByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewGdprRequestByIdResponse viewGdprRequestById(String apiToken, String requestId) throws ApiException { - return viewGdprRequestByIdWithHttpInfo(apiToken, requestId).getData(); + + public class APIregisterGdprRequestRequest { + private String apiToken; + private RegisterGdprRequestData registerGdprRequestData; + + private APIregisterGdprRequestRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIregisterGdprRequestRequest + */ + public APIregisterGdprRequestRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set registerGdprRequestData + * @param registerGdprRequestData (optional) + * @return APIregisterGdprRequestRequest + */ + public APIregisterGdprRequestRequest registerGdprRequestData(RegisterGdprRequestData registerGdprRequestData) { + this.registerGdprRequestData = registerGdprRequestData; + return this; + } + + /** + * Execute registerGdprRequest request + * @return RegisterGdprRequestResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RegisterGdprRequestResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute registerGdprRequest request with HTTP info returned + * @return ApiResponse<RegisterGdprRequestResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return registerGdprRequestWithHttpInfo(apiToken, registerGdprRequestData); + } } /** - * View a GDPR request - * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - * @param apiToken (required) - * @param requestId (required) - * @return ApiResponse<ViewGdprRequestByIdResponse> + * Register a GDPR request + * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request + * @return registerGdprRequestRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewGdprRequestByIdWithHttpInfo(String apiToken, String requestId) throws ApiException { + public APIregisterGdprRequestRequest registerGdprRequest() throws ApiException { + return new APIregisterGdprRequestRequest(); + } + +private ApiResponse viewGdprRequestByIdWithHttpInfo(String apiToken, String requestId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -345,4 +444,67 @@ public ApiResponse viewGdprRequestByIdWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewGdprRequestByIdRequest { + private String apiToken; + private String requestId; + + private APIviewGdprRequestByIdRequest(String requestId) { + this.requestId = requestId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewGdprRequestByIdRequest + */ + public APIviewGdprRequestByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewGdprRequestById request + * @return ViewGdprRequestByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewGdprRequestByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewGdprRequestById request with HTTP info returned + * @return ApiResponse<ViewGdprRequestByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewGdprRequestByIdWithHttpInfo(apiToken, requestId); + } + } + + /** + * View a GDPR request + * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- + * @param requestId (required) + * @return viewGdprRequestByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewGdprRequestByIdRequest viewGdprRequestById(String requestId) throws ApiException { + return new APIviewGdprRequestByIdRequest(requestId); + } } diff --git a/src/main/java/org/sendbird/client/api/ReportApi.java b/src/main/java/org/sendbird/client/api/ReportApi.java index 625f82e2..4a2f7c7a 100644 --- a/src/main/java/org/sendbird/client/api/ReportApi.java +++ b/src/main/java/org/sendbird/client/api/ReportApi.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ReportApi { private ApiClient apiClient; @@ -54,43 +54,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * List reports - * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param startTs (optional) - * @param endTs (optional) - * @return ListReportsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListReportsResponse listReports(String apiToken, String token, Integer limit, Integer startTs, Integer endTs) throws ApiException { - return listReportsWithHttpInfo(apiToken, token, limit, startTs, endTs).getData(); - } - /** - * List reports - * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param startTs (optional) - * @param endTs (optional) - * @return ApiResponse<ListReportsResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse listReportsWithHttpInfo(String apiToken, String token, Integer limit, Integer startTs, Integer endTs) throws ApiException { +private ApiResponse listReportsWithHttpInfo(String apiToken, String token, Integer limit, Integer startTs, Integer endTs) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -135,43 +100,112 @@ public ApiResponse listReportsWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List reports on a channel - * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ListReportsOnChannelByUrlResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListReportsOnChannelByUrlResponse listReportsOnChannelByUrl(String apiToken, String channelType, String channelUrl, String token, Integer limit) throws ApiException { - return listReportsOnChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, token, limit).getData(); + + public class APIlistReportsRequest { + private String apiToken; + private String token; + private Integer limit; + private Integer startTs; + private Integer endTs; + + private APIlistReportsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistReportsRequest + */ + public APIlistReportsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistReportsRequest + */ + public APIlistReportsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistReportsRequest + */ + public APIlistReportsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set startTs + * @param startTs (optional) + * @return APIlistReportsRequest + */ + public APIlistReportsRequest startTs(Integer startTs) { + this.startTs = startTs; + return this; + } + + /** + * Set endTs + * @param endTs (optional) + * @return APIlistReportsRequest + */ + public APIlistReportsRequest endTs(Integer endTs) { + this.endTs = endTs; + return this; + } + + /** + * Execute listReports request + * @return ListReportsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListReportsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listReports request with HTTP info returned + * @return ApiResponse<ListReportsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listReportsWithHttpInfo(apiToken, token, limit, startTs, endTs); + } } /** - * List reports on a channel - * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListReportsOnChannelByUrlResponse> + * List reports + * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- + * @return listReportsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listReportsOnChannelByUrlWithHttpInfo(String apiToken, String channelType, String channelUrl, String token, Integer limit) throws ApiException { + public APIlistReportsRequest listReports() throws ApiException { + return new APIlistReportsRequest(); + } + +private ApiResponse listReportsOnChannelByUrlWithHttpInfo(String apiToken, String channelType, String channelUrl, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -226,45 +260,96 @@ public ApiResponse listReportsOnChannelByUrlW localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List reports on a message - * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param token (optional) - * @param limit (optional) - * @return ListReportsOnMessageByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListReportsOnMessageByIdResponse listReportsOnMessageById(String apiToken, String channelType, String channelUrl, String messageId, String token, Integer limit) throws ApiException { - return listReportsOnMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, token, limit).getData(); + + public class APIlistReportsOnChannelByUrlRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String token; + private Integer limit; + + private APIlistReportsOnChannelByUrlRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistReportsOnChannelByUrlRequest + */ + public APIlistReportsOnChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistReportsOnChannelByUrlRequest + */ + public APIlistReportsOnChannelByUrlRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistReportsOnChannelByUrlRequest + */ + public APIlistReportsOnChannelByUrlRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listReportsOnChannelByUrl request + * @return ListReportsOnChannelByUrlResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListReportsOnChannelByUrlResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listReportsOnChannelByUrl request with HTTP info returned + * @return ApiResponse<ListReportsOnChannelByUrlResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listReportsOnChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, token, limit); + } } /** - * List reports on a message - * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - * @param apiToken (required) + * List reports on a channel + * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. * @param channelType (required) * @param channelUrl (required) - * @param messageId (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListReportsOnMessageByIdResponse> + * @return listReportsOnChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listReportsOnMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, String token, Integer limit) throws ApiException { + public APIlistReportsOnChannelByUrlRequest listReportsOnChannelByUrl(String channelType, String channelUrl) throws ApiException { + return new APIlistReportsOnChannelByUrlRequest(channelType, channelUrl); + } + +private ApiResponse listReportsOnMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -325,41 +410,99 @@ public ApiResponse listReportsOnMessageByIdWit localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List reports on a user - * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - * @param apiToken (required) - * @param offendingUserId (required) - * @param token (optional) - * @param limit (optional) - * @return ListReportsOnUserByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListReportsOnUserByIdResponse listReportsOnUserById(String apiToken, String offendingUserId, String token, Integer limit) throws ApiException { - return listReportsOnUserByIdWithHttpInfo(apiToken, offendingUserId, token, limit).getData(); + + public class APIlistReportsOnMessageByIdRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private String token; + private Integer limit; + + private APIlistReportsOnMessageByIdRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistReportsOnMessageByIdRequest + */ + public APIlistReportsOnMessageByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistReportsOnMessageByIdRequest + */ + public APIlistReportsOnMessageByIdRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistReportsOnMessageByIdRequest + */ + public APIlistReportsOnMessageByIdRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listReportsOnMessageById request + * @return ListReportsOnMessageByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListReportsOnMessageByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listReportsOnMessageById request with HTTP info returned + * @return ApiResponse<ListReportsOnMessageByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listReportsOnMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, token, limit); + } } /** - * List reports on a user - * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - * @param apiToken (required) - * @param offendingUserId (required) - * @param token (optional) - * @param limit (optional) - * @return ApiResponse<ListReportsOnUserByIdResponse> + * List reports on a message + * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return listReportsOnMessageByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listReportsOnUserByIdWithHttpInfo(String apiToken, String offendingUserId, String token, Integer limit) throws ApiException { + public APIlistReportsOnMessageByIdRequest listReportsOnMessageById(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIlistReportsOnMessageByIdRequest(channelType, channelUrl, messageId); + } + +private ApiResponse listReportsOnUserByIdWithHttpInfo(String apiToken, String offendingUserId, String token, Integer limit) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -408,41 +551,93 @@ public ApiResponse listReportsOnUserByIdWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Report a channel - * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param reportChannelByUrlData (optional) - * @return ReportChannelByUrlResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ReportChannelByUrlResponse reportChannelByUrl(String apiToken, String channelType, String channelUrl, ReportChannelByUrlData reportChannelByUrlData) throws ApiException { - return reportChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, reportChannelByUrlData).getData(); + + public class APIlistReportsOnUserByIdRequest { + private String apiToken; + private String offendingUserId; + private String token; + private Integer limit; + + private APIlistReportsOnUserByIdRequest(String offendingUserId) { + this.offendingUserId = offendingUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistReportsOnUserByIdRequest + */ + public APIlistReportsOnUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistReportsOnUserByIdRequest + */ + public APIlistReportsOnUserByIdRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistReportsOnUserByIdRequest + */ + public APIlistReportsOnUserByIdRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Execute listReportsOnUserById request + * @return ListReportsOnUserByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListReportsOnUserByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listReportsOnUserById request with HTTP info returned + * @return ApiResponse<ListReportsOnUserByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listReportsOnUserByIdWithHttpInfo(apiToken, offendingUserId, token, limit); + } } /** - * Report a channel - * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param reportChannelByUrlData (optional) - * @return ApiResponse<ReportChannelByUrlResponse> + * List reports on a user + * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. + * @param offendingUserId (required) + * @return listReportsOnUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse reportChannelByUrlWithHttpInfo(String apiToken, String channelType, String channelUrl, ReportChannelByUrlData reportChannelByUrlData) throws ApiException { + public APIlistReportsOnUserByIdRequest listReportsOnUserById(String offendingUserId) throws ApiException { + return new APIlistReportsOnUserByIdRequest(offendingUserId); + } + +private ApiResponse reportChannelByUrlWithHttpInfo(String apiToken, String channelType, String channelUrl, ReportChannelByUrlData reportChannelByUrlData) throws ApiException { Object localVarPostBody = reportChannelByUrlData; // verify the required parameter 'apiToken' is set @@ -495,43 +690,85 @@ public ApiResponse reportChannelByUrlWithHttpInfo(St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Report a message - * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @param reportMessageByIdData (optional) - * @return ReportMessageByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ReportMessageByIdResponse reportMessageById(String apiToken, String channelType, String channelUrl, String messageId, ReportMessageByIdData reportMessageByIdData) throws ApiException { - return reportMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, reportMessageByIdData).getData(); + + public class APIreportChannelByUrlRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private ReportChannelByUrlData reportChannelByUrlData; + + private APIreportChannelByUrlRequest(String channelType, String channelUrl) { + this.channelType = channelType; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIreportChannelByUrlRequest + */ + public APIreportChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set reportChannelByUrlData + * @param reportChannelByUrlData (optional) + * @return APIreportChannelByUrlRequest + */ + public APIreportChannelByUrlRequest reportChannelByUrlData(ReportChannelByUrlData reportChannelByUrlData) { + this.reportChannelByUrlData = reportChannelByUrlData; + return this; + } + + /** + * Execute reportChannelByUrl request + * @return ReportChannelByUrlResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ReportChannelByUrlResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute reportChannelByUrl request with HTTP info returned + * @return ApiResponse<ReportChannelByUrlResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return reportChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, reportChannelByUrlData); + } } /** - * Report a message - * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - * @param apiToken (required) + * Report a channel + * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- * @param channelType (required) * @param channelUrl (required) - * @param messageId (required) - * @param reportMessageByIdData (optional) - * @return ApiResponse<ReportMessageByIdResponse> + * @return reportChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse reportMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, ReportMessageByIdData reportMessageByIdData) throws ApiException { + public APIreportChannelByUrlRequest reportChannelByUrl(String channelType, String channelUrl) throws ApiException { + return new APIreportChannelByUrlRequest(channelType, channelUrl); + } + +private ApiResponse reportMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId, ReportMessageByIdData reportMessageByIdData) throws ApiException { Object localVarPostBody = reportMessageByIdData; // verify the required parameter 'apiToken' is set @@ -590,39 +827,88 @@ public ApiResponse reportMessageByIdWithHttpInfo(Stri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Report a user - * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - * @param apiToken (required) - * @param offendingUserId (required) - * @param reportUserByIdData (optional) - * @return ReportUserByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ReportUserByIdResponse reportUserById(String apiToken, String offendingUserId, ReportUserByIdData reportUserByIdData) throws ApiException { - return reportUserByIdWithHttpInfo(apiToken, offendingUserId, reportUserByIdData).getData(); + + public class APIreportMessageByIdRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + private ReportMessageByIdData reportMessageByIdData; + + private APIreportMessageByIdRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIreportMessageByIdRequest + */ + public APIreportMessageByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set reportMessageByIdData + * @param reportMessageByIdData (optional) + * @return APIreportMessageByIdRequest + */ + public APIreportMessageByIdRequest reportMessageByIdData(ReportMessageByIdData reportMessageByIdData) { + this.reportMessageByIdData = reportMessageByIdData; + return this; + } + + /** + * Execute reportMessageById request + * @return ReportMessageByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ReportMessageByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute reportMessageById request with HTTP info returned + * @return ApiResponse<ReportMessageByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return reportMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, reportMessageByIdData); + } } /** - * Report a user - * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - * @param apiToken (required) - * @param offendingUserId (required) - * @param reportUserByIdData (optional) - * @return ApiResponse<ReportUserByIdResponse> + * Report a message + * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return reportMessageByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse reportUserByIdWithHttpInfo(String apiToken, String offendingUserId, ReportUserByIdData reportUserByIdData) throws ApiException { + public APIreportMessageByIdRequest reportMessageById(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIreportMessageByIdRequest(channelType, channelUrl, messageId); + } + +private ApiResponse reportUserByIdWithHttpInfo(String apiToken, String offendingUserId, ReportUserByIdData reportUserByIdData) throws ApiException { Object localVarPostBody = reportUserByIdData; // verify the required parameter 'apiToken' is set @@ -669,41 +955,82 @@ public ApiResponse reportUserByIdWithHttpInfo(String api localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a moderated message - * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object viewModeratedMessageById(String apiToken, String channelType, String channelUrl, String messageId) throws ApiException { - return viewModeratedMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId).getData(); + + public class APIreportUserByIdRequest { + private String apiToken; + private String offendingUserId; + private ReportUserByIdData reportUserByIdData; + + private APIreportUserByIdRequest(String offendingUserId) { + this.offendingUserId = offendingUserId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIreportUserByIdRequest + */ + public APIreportUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set reportUserByIdData + * @param reportUserByIdData (optional) + * @return APIreportUserByIdRequest + */ + public APIreportUserByIdRequest reportUserByIdData(ReportUserByIdData reportUserByIdData) { + this.reportUserByIdData = reportUserByIdData; + return this; + } + + /** + * Execute reportUserById request + * @return ReportUserByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ReportUserByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute reportUserById request with HTTP info returned + * @return ApiResponse<ReportUserByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return reportUserByIdWithHttpInfo(apiToken, offendingUserId, reportUserByIdData); + } } /** - * View a moderated message - * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - * @param apiToken (required) - * @param channelType (required) - * @param channelUrl (required) - * @param messageId (required) - * @return ApiResponse<Object> + * Report a user + * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- + * @param offendingUserId (required) + * @return reportUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewModeratedMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId) throws ApiException { + public APIreportUserByIdRequest reportUserById(String offendingUserId) throws ApiException { + return new APIreportUserByIdRequest(offendingUserId); + } + +private ApiResponse viewModeratedMessageByIdWithHttpInfo(String apiToken, String channelType, String channelUrl, String messageId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -762,4 +1089,73 @@ public ApiResponse viewModeratedMessageByIdWithHttpInfo(String apiToken, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewModeratedMessageByIdRequest { + private String apiToken; + private String channelType; + private String channelUrl; + private String messageId; + + private APIviewModeratedMessageByIdRequest(String channelType, String channelUrl, String messageId) { + this.channelType = channelType; + this.channelUrl = channelUrl; + this.messageId = messageId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewModeratedMessageByIdRequest + */ + public APIviewModeratedMessageByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewModeratedMessageById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewModeratedMessageById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewModeratedMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId); + } + } + + /** + * View a moderated message + * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- + * @param channelType (required) + * @param channelUrl (required) + * @param messageId (required) + * @return viewModeratedMessageByIdRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewModeratedMessageByIdRequest viewModeratedMessageById(String channelType, String channelUrl, String messageId) throws ApiException { + return new APIviewModeratedMessageByIdRequest(channelType, channelUrl, messageId); + } } diff --git a/src/main/java/org/sendbird/client/api/StatisticsApi.java b/src/main/java/org/sendbird/client/api/StatisticsApi.java index 1a37e5fb..a9542770 100644 --- a/src/main/java/org/sendbird/client/api/StatisticsApi.java +++ b/src/main/java/org/sendbird/client/api/StatisticsApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class StatisticsApi { private ApiClient apiClient; @@ -51,37 +51,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Get detailed open rate of an announcement - * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - * @param apiToken (required) - * @param uniqueId (required) - * @return GetDetailedOpenRateOfAnnouncementByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GetDetailedOpenRateOfAnnouncementByIdResponse getDetailedOpenRateOfAnnouncementById(String apiToken, String uniqueId) throws ApiException { - return getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId).getData(); - } - /** - * Get detailed open rate of an announcement - * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - * @param apiToken (required) - * @param uniqueId (required) - * @return ApiResponse<GetDetailedOpenRateOfAnnouncementByIdResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId) throws ApiException { +private ApiResponse getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -128,47 +99,71 @@ public ApiResponse getDetailedOpe localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Get detailed open status of an announcement - * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - * @param apiToken (required) - * @param uniqueId (required) - * @param limit (optional) - * @param next (optional) - * @param uniqueIds (optional) - * @param channelUrls (optional) - * @param hasOpened (optional) - * @return GetDetailedOpenStatusOfAnnouncementByIdResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public GetDetailedOpenStatusOfAnnouncementByIdResponse getDetailedOpenStatusOfAnnouncementById(String apiToken, String uniqueId, Integer limit, String next, List uniqueIds, List channelUrls, Boolean hasOpened) throws ApiException { - return getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, limit, next, uniqueIds, channelUrls, hasOpened).getData(); + + public class APIgetDetailedOpenRateOfAnnouncementByIdRequest { + private String apiToken; + private String uniqueId; + + private APIgetDetailedOpenRateOfAnnouncementByIdRequest(String uniqueId) { + this.uniqueId = uniqueId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetDetailedOpenRateOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenRateOfAnnouncementByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute getDetailedOpenRateOfAnnouncementById request + * @return GetDetailedOpenRateOfAnnouncementByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GetDetailedOpenRateOfAnnouncementByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getDetailedOpenRateOfAnnouncementById request with HTTP info returned + * @return ApiResponse<GetDetailedOpenRateOfAnnouncementByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId); + } } /** - * Get detailed open status of an announcement - * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - * @param apiToken (required) + * Get detailed open rate of an announcement + * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. * @param uniqueId (required) - * @param limit (optional) - * @param next (optional) - * @param uniqueIds (optional) - * @param channelUrls (optional) - * @param hasOpened (optional) - * @return ApiResponse<GetDetailedOpenStatusOfAnnouncementByIdResponse> + * @return getDetailedOpenRateOfAnnouncementByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId, Integer limit, String next, List uniqueIds, List channelUrls, Boolean hasOpened) throws ApiException { + public APIgetDetailedOpenRateOfAnnouncementByIdRequest getDetailedOpenRateOfAnnouncementById(String uniqueId) throws ApiException { + return new APIgetDetailedOpenRateOfAnnouncementByIdRequest(uniqueId); + } + +private ApiResponse getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(String apiToken, String uniqueId, Integer limit, String next, List uniqueIds, List channelUrls, Boolean hasOpened) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -220,35 +215,126 @@ public ApiResponse getDetailedO localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Retrieve Advanced analytics metrics - * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - * @param apiToken (required) - * @return RetrieveAdvancedAnalyticsMetricsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RetrieveAdvancedAnalyticsMetricsResponse retrieveAdvancedAnalyticsMetrics(String apiToken) throws ApiException { - return retrieveAdvancedAnalyticsMetricsWithHttpInfo(apiToken).getData(); + + public class APIgetDetailedOpenStatusOfAnnouncementByIdRequest { + private String apiToken; + private String uniqueId; + private Integer limit; + private String next; + private List uniqueIds; + private List channelUrls; + private Boolean hasOpened; + + private APIgetDetailedOpenStatusOfAnnouncementByIdRequest(String uniqueId) { + this.uniqueId = uniqueId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIgetDetailedOpenStatusOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIgetDetailedOpenStatusOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set next + * @param next (optional) + * @return APIgetDetailedOpenStatusOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest next(String next) { + this.next = next; + return this; + } + + /** + * Set uniqueIds + * @param uniqueIds (optional) + * @return APIgetDetailedOpenStatusOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest uniqueIds(List uniqueIds) { + this.uniqueIds = uniqueIds; + return this; + } + + /** + * Set channelUrls + * @param channelUrls (optional) + * @return APIgetDetailedOpenStatusOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest channelUrls(List channelUrls) { + this.channelUrls = channelUrls; + return this; + } + + /** + * Set hasOpened + * @param hasOpened (optional) + * @return APIgetDetailedOpenStatusOfAnnouncementByIdRequest + */ + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest hasOpened(Boolean hasOpened) { + this.hasOpened = hasOpened; + return this; + } + + /** + * Execute getDetailedOpenStatusOfAnnouncementById request + * @return GetDetailedOpenStatusOfAnnouncementByIdResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public GetDetailedOpenStatusOfAnnouncementByIdResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute getDetailedOpenStatusOfAnnouncementById request with HTTP info returned + * @return ApiResponse<GetDetailedOpenStatusOfAnnouncementByIdResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, limit, next, uniqueIds, channelUrls, hasOpened); + } } /** - * Retrieve Advanced analytics metrics - * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - * @param apiToken (required) - * @return ApiResponse<RetrieveAdvancedAnalyticsMetricsResponse> + * Get detailed open status of an announcement + * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- + * @param uniqueId (required) + * @return getDetailedOpenStatusOfAnnouncementByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse retrieveAdvancedAnalyticsMetricsWithHttpInfo(String apiToken) throws ApiException { + public APIgetDetailedOpenStatusOfAnnouncementByIdRequest getDetailedOpenStatusOfAnnouncementById(String uniqueId) throws ApiException { + return new APIgetDetailedOpenStatusOfAnnouncementByIdRequest(uniqueId); + } + +private ApiResponse retrieveAdvancedAnalyticsMetricsWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -289,35 +375,68 @@ public ApiResponse retrieveAdvancedAna localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of concurrent connections - * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - * @param apiToken (required) - * @return ViewNumberOfConcurrentConnectionsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfConcurrentConnectionsResponse viewNumberOfConcurrentConnections(String apiToken) throws ApiException { - return viewNumberOfConcurrentConnectionsWithHttpInfo(apiToken).getData(); + + public class APIretrieveAdvancedAnalyticsMetricsRequest { + private String apiToken; + + private APIretrieveAdvancedAnalyticsMetricsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIretrieveAdvancedAnalyticsMetricsRequest + */ + public APIretrieveAdvancedAnalyticsMetricsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute retrieveAdvancedAnalyticsMetrics request + * @return RetrieveAdvancedAnalyticsMetricsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RetrieveAdvancedAnalyticsMetricsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute retrieveAdvancedAnalyticsMetrics request with HTTP info returned + * @return ApiResponse<RetrieveAdvancedAnalyticsMetricsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return retrieveAdvancedAnalyticsMetricsWithHttpInfo(apiToken); + } } /** - * View number of concurrent connections - * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - * @param apiToken (required) - * @return ApiResponse<ViewNumberOfConcurrentConnectionsResponse> + * Retrieve Advanced analytics metrics + * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- + * @return retrieveAdvancedAnalyticsMetricsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfConcurrentConnectionsWithHttpInfo(String apiToken) throws ApiException { + public APIretrieveAdvancedAnalyticsMetricsRequest retrieveAdvancedAnalyticsMetrics() throws ApiException { + return new APIretrieveAdvancedAnalyticsMetricsRequest(); + } + +private ApiResponse viewNumberOfConcurrentConnectionsWithHttpInfo(String apiToken) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -358,37 +477,68 @@ public ApiResponse viewNumberOfConcur localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of daily active users - * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- - * @param apiToken (required) - * @param date (optional) - * @return ViewNumberOfDailyActiveUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfDailyActiveUsersResponse viewNumberOfDailyActiveUsers(String apiToken, String date) throws ApiException { - return viewNumberOfDailyActiveUsersWithHttpInfo(apiToken, date).getData(); + + public class APIviewNumberOfConcurrentConnectionsRequest { + private String apiToken; + + private APIviewNumberOfConcurrentConnectionsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfConcurrentConnectionsRequest + */ + public APIviewNumberOfConcurrentConnectionsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewNumberOfConcurrentConnections request + * @return ViewNumberOfConcurrentConnectionsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfConcurrentConnectionsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfConcurrentConnections request with HTTP info returned + * @return ApiResponse<ViewNumberOfConcurrentConnectionsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfConcurrentConnectionsWithHttpInfo(apiToken); + } } /** - * View number of daily active users - * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- - * @param apiToken (required) - * @param date (optional) - * @return ApiResponse<ViewNumberOfDailyActiveUsersResponse> + * View number of concurrent connections + * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections + * @return viewNumberOfConcurrentConnectionsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfDailyActiveUsersWithHttpInfo(String apiToken, String date) throws ApiException { + public APIviewNumberOfConcurrentConnectionsRequest viewNumberOfConcurrentConnections() throws ApiException { + return new APIviewNumberOfConcurrentConnectionsRequest(); + } + +private ApiResponse viewNumberOfDailyActiveUsersWithHttpInfo(String apiToken, String date) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -430,37 +580,79 @@ public ApiResponse viewNumberOfDailyActive localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of monthly active users - * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- - * @param apiToken (required) - * @param date (optional) - * @return ViewNumberOfMonthlyActiveUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfMonthlyActiveUsersResponse viewNumberOfMonthlyActiveUsers(String apiToken, String date) throws ApiException { - return viewNumberOfMonthlyActiveUsersWithHttpInfo(apiToken, date).getData(); + + public class APIviewNumberOfDailyActiveUsersRequest { + private String apiToken; + private String date; + + private APIviewNumberOfDailyActiveUsersRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfDailyActiveUsersRequest + */ + public APIviewNumberOfDailyActiveUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set date + * @param date (optional) + * @return APIviewNumberOfDailyActiveUsersRequest + */ + public APIviewNumberOfDailyActiveUsersRequest date(String date) { + this.date = date; + return this; + } + + /** + * Execute viewNumberOfDailyActiveUsers request + * @return ViewNumberOfDailyActiveUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfDailyActiveUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfDailyActiveUsers request with HTTP info returned + * @return ApiResponse<ViewNumberOfDailyActiveUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfDailyActiveUsersWithHttpInfo(apiToken, date); + } } /** - * View number of monthly active users - * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- - * @param apiToken (required) - * @param date (optional) - * @return ApiResponse<ViewNumberOfMonthlyActiveUsersResponse> + * View number of daily active users + * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- + * @return viewNumberOfDailyActiveUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfMonthlyActiveUsersWithHttpInfo(String apiToken, String date) throws ApiException { + public APIviewNumberOfDailyActiveUsersRequest viewNumberOfDailyActiveUsers() throws ApiException { + return new APIviewNumberOfDailyActiveUsersRequest(); + } + +private ApiResponse viewNumberOfMonthlyActiveUsersWithHttpInfo(String apiToken, String date) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -502,49 +694,79 @@ public ApiResponse viewNumberOfMonthlyAc localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of peak connections - * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - * @param apiToken (required) - * @param timeDimension (required) - * @param startYear (required) - * @param startMonth (required) - * @param endYear (required) - * @param endMonth (required) - * @param startDay (optional) - * @param endDay (optional) - * @return ViewNumberOfPeakConnectionsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfPeakConnectionsResponse viewNumberOfPeakConnections(String apiToken, String timeDimension, Integer startYear, Integer startMonth, Integer endYear, Integer endMonth, Integer startDay, Integer endDay) throws ApiException { - return viewNumberOfPeakConnectionsWithHttpInfo(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, startDay, endDay).getData(); + + public class APIviewNumberOfMonthlyActiveUsersRequest { + private String apiToken; + private String date; + + private APIviewNumberOfMonthlyActiveUsersRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfMonthlyActiveUsersRequest + */ + public APIviewNumberOfMonthlyActiveUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set date + * @param date (optional) + * @return APIviewNumberOfMonthlyActiveUsersRequest + */ + public APIviewNumberOfMonthlyActiveUsersRequest date(String date) { + this.date = date; + return this; + } + + /** + * Execute viewNumberOfMonthlyActiveUsers request + * @return ViewNumberOfMonthlyActiveUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfMonthlyActiveUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfMonthlyActiveUsers request with HTTP info returned + * @return ApiResponse<ViewNumberOfMonthlyActiveUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfMonthlyActiveUsersWithHttpInfo(apiToken, date); + } } /** - * View number of peak connections - * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - * @param apiToken (required) - * @param timeDimension (required) - * @param startYear (required) - * @param startMonth (required) - * @param endYear (required) - * @param endMonth (required) - * @param startDay (optional) - * @param endDay (optional) - * @return ApiResponse<ViewNumberOfPeakConnectionsResponse> + * View number of monthly active users + * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- + * @return viewNumberOfMonthlyActiveUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfPeakConnectionsWithHttpInfo(String apiToken, String timeDimension, Integer startYear, Integer startMonth, Integer endYear, Integer endMonth, Integer startDay, Integer endDay) throws ApiException { + public APIviewNumberOfMonthlyActiveUsersRequest viewNumberOfMonthlyActiveUsers() throws ApiException { + return new APIviewNumberOfMonthlyActiveUsersRequest(); + } + +private ApiResponse viewNumberOfPeakConnectionsWithHttpInfo(String apiToken, String timeDimension, Integer startYear, Integer startMonth, Integer endYear, Integer endMonth, Integer startDay, Integer endDay) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -617,4 +839,141 @@ public ApiResponse viewNumberOfPeakConnecti localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIviewNumberOfPeakConnectionsRequest { + private String apiToken; + private String timeDimension; + private Integer startYear; + private Integer startMonth; + private Integer endYear; + private Integer endMonth; + private Integer startDay; + private Integer endDay; + + private APIviewNumberOfPeakConnectionsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set timeDimension + * @param timeDimension (required) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest timeDimension(String timeDimension) { + this.timeDimension = timeDimension; + return this; + } + + /** + * Set startYear + * @param startYear (required) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest startYear(Integer startYear) { + this.startYear = startYear; + return this; + } + + /** + * Set startMonth + * @param startMonth (required) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest startMonth(Integer startMonth) { + this.startMonth = startMonth; + return this; + } + + /** + * Set endYear + * @param endYear (required) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest endYear(Integer endYear) { + this.endYear = endYear; + return this; + } + + /** + * Set endMonth + * @param endMonth (required) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest endMonth(Integer endMonth) { + this.endMonth = endMonth; + return this; + } + + /** + * Set startDay + * @param startDay (optional) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest startDay(Integer startDay) { + this.startDay = startDay; + return this; + } + + /** + * Set endDay + * @param endDay (optional) + * @return APIviewNumberOfPeakConnectionsRequest + */ + public APIviewNumberOfPeakConnectionsRequest endDay(Integer endDay) { + this.endDay = endDay; + return this; + } + + /** + * Execute viewNumberOfPeakConnections request + * @return ViewNumberOfPeakConnectionsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfPeakConnectionsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfPeakConnections request with HTTP info returned + * @return ApiResponse<ViewNumberOfPeakConnectionsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfPeakConnectionsWithHttpInfo(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, startDay, endDay); + } + } + + /** + * View number of peak connections + * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- + * @return viewNumberOfPeakConnectionsRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewNumberOfPeakConnectionsRequest viewNumberOfPeakConnections() throws ApiException { + return new APIviewNumberOfPeakConnectionsRequest(); + } } diff --git a/src/main/java/org/sendbird/client/api/UserApi.java b/src/main/java/org/sendbird/client/api/UserApi.java index 7b784de2..385e7c63 100644 --- a/src/main/java/org/sendbird/client/api/UserApi.java +++ b/src/main/java/org/sendbird/client/api/UserApi.java @@ -49,7 +49,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class UserApi { private ApiClient apiClient; @@ -79,41 +79,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Add a registration or device token - * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param tokenType (required) - * @param addRegistrationOrDeviceTokenData (optional) - * @return AddRegistrationOrDeviceTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(String apiToken, String userId, String tokenType, AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData) throws ApiException { - return addRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData).getData(); - } - /** - * Add a registration or device token - * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param tokenType (required) - * @param addRegistrationOrDeviceTokenData (optional) - * @return ApiResponse<AddRegistrationOrDeviceTokenResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse addRegistrationOrDeviceTokenWithHttpInfo(String apiToken, String userId, String tokenType, AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData) throws ApiException { +private ApiResponse addRegistrationOrDeviceTokenWithHttpInfo(String apiToken, String userId, String tokenType, AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData) throws ApiException { Object localVarPostBody = addRegistrationOrDeviceTokenData; // verify the required parameter 'apiToken' is set @@ -166,39 +133,85 @@ public ApiResponse addRegistrationOrDevice localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Choose a push notification content template - * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param body (optional) - * @return ChoosePushNotificationContentTemplateResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ChoosePushNotificationContentTemplateResponse choosePushNotificationContentTemplate(String apiToken, String userId, Object body) throws ApiException { - return choosePushNotificationContentTemplateWithHttpInfo(apiToken, userId, body).getData(); + + public class APIaddRegistrationOrDeviceTokenRequest { + private String apiToken; + private String userId; + private String tokenType; + private AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData; + + private APIaddRegistrationOrDeviceTokenRequest(String userId, String tokenType) { + this.userId = userId; + this.tokenType = tokenType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIaddRegistrationOrDeviceTokenRequest + */ + public APIaddRegistrationOrDeviceTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set addRegistrationOrDeviceTokenData + * @param addRegistrationOrDeviceTokenData (optional) + * @return APIaddRegistrationOrDeviceTokenRequest + */ + public APIaddRegistrationOrDeviceTokenRequest addRegistrationOrDeviceTokenData(AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData) { + this.addRegistrationOrDeviceTokenData = addRegistrationOrDeviceTokenData; + return this; + } + + /** + * Execute addRegistrationOrDeviceToken request + * @return AddRegistrationOrDeviceTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public AddRegistrationOrDeviceTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute addRegistrationOrDeviceToken request with HTTP info returned + * @return ApiResponse<AddRegistrationOrDeviceTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return addRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); + } } /** - * Choose a push notification content template - * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- - * @param apiToken (required) + * Add a registration or device token + * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- * @param userId (required) - * @param body (optional) - * @return ApiResponse<ChoosePushNotificationContentTemplateResponse> + * @param tokenType (required) + * @return addRegistrationOrDeviceTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse choosePushNotificationContentTemplateWithHttpInfo(String apiToken, String userId, Object body) throws ApiException { + public APIaddRegistrationOrDeviceTokenRequest addRegistrationOrDeviceToken(String userId, String tokenType) throws ApiException { + return new APIaddRegistrationOrDeviceTokenRequest(userId, tokenType); + } + +private ApiResponse choosePushNotificationContentTemplateWithHttpInfo(String apiToken, String userId, Object body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'apiToken' is set @@ -245,37 +258,82 @@ public ApiResponse choosePushNoti localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Create a user - * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user - * @param apiToken (required) - * @param createUserData (optional) - * @return SendBirdUser - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdUser createUser(String apiToken, CreateUserData createUserData) throws ApiException { - return createUserWithHttpInfo(apiToken, createUserData).getData(); + + public class APIchoosePushNotificationContentTemplateRequest { + private String apiToken; + private String userId; + private Object body; + + private APIchoosePushNotificationContentTemplateRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIchoosePushNotificationContentTemplateRequest + */ + public APIchoosePushNotificationContentTemplateRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIchoosePushNotificationContentTemplateRequest + */ + public APIchoosePushNotificationContentTemplateRequest body(Object body) { + this.body = body; + return this; + } + + /** + * Execute choosePushNotificationContentTemplate request + * @return ChoosePushNotificationContentTemplateResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ChoosePushNotificationContentTemplateResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute choosePushNotificationContentTemplate request with HTTP info returned + * @return ApiResponse<ChoosePushNotificationContentTemplateResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return choosePushNotificationContentTemplateWithHttpInfo(apiToken, userId, body); + } } /** - * Create a user - * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user - * @param apiToken (required) - * @param createUserData (optional) - * @return ApiResponse<SendBirdUser> + * Choose a push notification content template + * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- + * @param userId (required) + * @return choosePushNotificationContentTemplateRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse createUserWithHttpInfo(String apiToken, CreateUserData createUserData) throws ApiException { + public APIchoosePushNotificationContentTemplateRequest choosePushNotificationContentTemplate(String userId) throws ApiException { + return new APIchoosePushNotificationContentTemplateRequest(userId); + } + +private ApiResponse createUserWithHttpInfo(String apiToken, CreateUserData createUserData) throws ApiException { Object localVarPostBody = createUserData; // verify the required parameter 'apiToken' is set @@ -316,39 +374,79 @@ public ApiResponse createUserWithHttpInfo(String apiToken, CreateU localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Create user token - * ## Create user token - * @param apiToken (required) - * @param userId (required) - * @param createUserTokenData (optional) - * @return CreateUserTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public CreateUserTokenResponse createUserToken(String apiToken, String userId, CreateUserTokenData createUserTokenData) throws ApiException { - return createUserTokenWithHttpInfo(apiToken, userId, createUserTokenData).getData(); + + public class APIcreateUserRequest { + private String apiToken; + private CreateUserData createUserData; + + private APIcreateUserRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcreateUserRequest + */ + public APIcreateUserRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set createUserData + * @param createUserData (optional) + * @return APIcreateUserRequest + */ + public APIcreateUserRequest createUserData(CreateUserData createUserData) { + this.createUserData = createUserData; + return this; + } + + /** + * Execute createUser request + * @return SendBirdUser + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdUser execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute createUser request with HTTP info returned + * @return ApiResponse<SendBirdUser> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createUserWithHttpInfo(apiToken, createUserData); + } } /** - * Create user token - * ## Create user token - * @param apiToken (required) - * @param userId (required) - * @param createUserTokenData (optional) - * @return ApiResponse<CreateUserTokenResponse> + * Create a user + * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user + * @return createUserRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse createUserTokenWithHttpInfo(String apiToken, String userId, CreateUserTokenData createUserTokenData) throws ApiException { + public APIcreateUserRequest createUser() throws ApiException { + return new APIcreateUserRequest(); + } + +private ApiResponse createUserTokenWithHttpInfo(String apiToken, String userId, CreateUserTokenData createUserTokenData) throws ApiException { Object localVarPostBody = createUserTokenData; // verify the required parameter 'apiToken' is set @@ -395,37 +493,82 @@ public ApiResponse createUserTokenWithHttpInfo(String a localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Delete a user - * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object deleteUserById(String apiToken, String userId) throws ApiException { - return deleteUserByIdWithHttpInfo(apiToken, userId).getData(); + + public class APIcreateUserTokenRequest { + private String apiToken; + private String userId; + private CreateUserTokenData createUserTokenData; + + private APIcreateUserTokenRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIcreateUserTokenRequest + */ + public APIcreateUserTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set createUserTokenData + * @param createUserTokenData (optional) + * @return APIcreateUserTokenRequest + */ + public APIcreateUserTokenRequest createUserTokenData(CreateUserTokenData createUserTokenData) { + this.createUserTokenData = createUserTokenData; + return this; + } + + /** + * Execute createUserToken request + * @return CreateUserTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public CreateUserTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute createUserToken request with HTTP info returned + * @return ApiResponse<CreateUserTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createUserTokenWithHttpInfo(apiToken, userId, createUserTokenData); + } } /** - * Delete a user - * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- - * @param apiToken (required) + * Create user token + * ## Create user token * @param userId (required) - * @return ApiResponse<Object> + * @return createUserTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse deleteUserByIdWithHttpInfo(String apiToken, String userId) throws ApiException { + public APIcreateUserTokenRequest createUserToken(String userId) throws ApiException { + return new APIcreateUserTokenRequest(userId); + } + +private ApiResponse deleteUserByIdWithHttpInfo(String apiToken, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -472,39 +615,71 @@ public ApiResponse deleteUserByIdWithHttpInfo(String apiToken, String us localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Leave my group channels - * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. - * @param apiToken (required) - * @param userId (required) - * @param leaveMyGroupChannelsData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object leaveMyGroupChannels(String apiToken, String userId, LeaveMyGroupChannelsData leaveMyGroupChannelsData) throws ApiException { - return leaveMyGroupChannelsWithHttpInfo(apiToken, userId, leaveMyGroupChannelsData).getData(); + + public class APIdeleteUserByIdRequest { + private String apiToken; + private String userId; + + private APIdeleteUserByIdRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIdeleteUserByIdRequest + */ + public APIdeleteUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute deleteUserById request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute deleteUserById request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteUserByIdWithHttpInfo(apiToken, userId); + } } /** - * Leave my group channels - * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. - * @param apiToken (required) + * Delete a user + * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- * @param userId (required) - * @param leaveMyGroupChannelsData (optional) - * @return ApiResponse<Object> + * @return deleteUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse leaveMyGroupChannelsWithHttpInfo(String apiToken, String userId, LeaveMyGroupChannelsData leaveMyGroupChannelsData) throws ApiException { + public APIdeleteUserByIdRequest deleteUserById(String userId) throws ApiException { + return new APIdeleteUserByIdRequest(userId); + } + +private ApiResponse leaveMyGroupChannelsWithHttpInfo(String apiToken, String userId, LeaveMyGroupChannelsData leaveMyGroupChannelsData) throws ApiException { Object localVarPostBody = leaveMyGroupChannelsData; // verify the required parameter 'apiToken' is set @@ -551,117 +726,82 @@ public ApiResponse leaveMyGroupChannelsWithHttpInfo(String apiToken, Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List my group channels - * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) - * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @param distinctMode (optional) - * @param publicMode (optional) - * @param superMode (optional) - * @param hiddenMode (optional) - * @param memberStateFilter (optional) - * @param unreadFilter (optional) - * @param createdAfter (optional) - * @param createdBefore (optional) - * @param showEmpty (optional) - * @param showFrozen (optional) - * @param showMember (optional) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param order (optional) - * @param metadataOrderKey (optional) - * @param customTypes (optional) - * @param customTypeStartswith (optional) - * @param channelUrls (optional) - * @param name (optional) - * @param nameContains (optional) - * @param nameStartswith (optional) - * @param membersExactlyIn (optional) - * @param membersIncludeIn (optional) - * @param queryType (optional) - * @param membersNickname (optional) - * @param membersNicknameContains (optional) - * @param searchQuery (optional) - * @param searchFields (optional) - * @param metadataKey (optional) - * @param metadataValues (optional) - * @param metadataValueStartswith (optional) - * @param metacounterKey (optional) - * @param metacounterValues (optional) - * @param metacounterValueGt (optional) - * @param metacounterValueGte (optional) - * @param metacounterValueLt (optional) - * @param metacounterValueLte (optional) - * @param customType (optional) - * @return ListMyGroupChannelsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListMyGroupChannelsResponse listMyGroupChannels(String apiToken, String userId, String token, Integer limit, String distinctMode, String publicMode, String superMode, String hiddenMode, String memberStateFilter, String unreadFilter, Integer createdAfter, Integer createdBefore, Boolean showEmpty, Boolean showFrozen, Boolean showMember, Boolean showDeliveryReceipt, Boolean showReadReceipt, String order, String metadataOrderKey, String customTypes, String customTypeStartswith, String channelUrls, String name, String nameContains, String nameStartswith, String membersExactlyIn, String membersIncludeIn, String queryType, String membersNickname, String membersNicknameContains, String searchQuery, String searchFields, String metadataKey, String metadataValues, String metadataValueStartswith, String metacounterKey, String metacounterValues, String metacounterValueGt, String metacounterValueGte, String metacounterValueLt, String metacounterValueLte, String customType) throws ApiException { - return listMyGroupChannelsWithHttpInfo(apiToken, userId, token, limit, distinctMode, publicMode, superMode, hiddenMode, memberStateFilter, unreadFilter, createdAfter, createdBefore, showEmpty, showFrozen, showMember, showDeliveryReceipt, showReadReceipt, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, searchQuery, searchFields, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, customType).getData(); + + public class APIleaveMyGroupChannelsRequest { + private String apiToken; + private String userId; + private LeaveMyGroupChannelsData leaveMyGroupChannelsData; + + private APIleaveMyGroupChannelsRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIleaveMyGroupChannelsRequest + */ + public APIleaveMyGroupChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set leaveMyGroupChannelsData + * @param leaveMyGroupChannelsData (optional) + * @return APIleaveMyGroupChannelsRequest + */ + public APIleaveMyGroupChannelsRequest leaveMyGroupChannelsData(LeaveMyGroupChannelsData leaveMyGroupChannelsData) { + this.leaveMyGroupChannelsData = leaveMyGroupChannelsData; + return this; + } + + /** + * Execute leaveMyGroupChannels request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute leaveMyGroupChannels request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return leaveMyGroupChannelsWithHttpInfo(apiToken, userId, leaveMyGroupChannelsData); + } } /** - * List my group channels - * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param apiToken (required) + * Leave my group channels + * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. * @param userId (required) - * @param token (optional) - * @param limit (optional) - * @param distinctMode (optional) - * @param publicMode (optional) - * @param superMode (optional) - * @param hiddenMode (optional) - * @param memberStateFilter (optional) - * @param unreadFilter (optional) - * @param createdAfter (optional) - * @param createdBefore (optional) - * @param showEmpty (optional) - * @param showFrozen (optional) - * @param showMember (optional) - * @param showDeliveryReceipt (optional) - * @param showReadReceipt (optional) - * @param order (optional) - * @param metadataOrderKey (optional) - * @param customTypes (optional) - * @param customTypeStartswith (optional) - * @param channelUrls (optional) - * @param name (optional) - * @param nameContains (optional) - * @param nameStartswith (optional) - * @param membersExactlyIn (optional) - * @param membersIncludeIn (optional) - * @param queryType (optional) - * @param membersNickname (optional) - * @param membersNicknameContains (optional) - * @param searchQuery (optional) - * @param searchFields (optional) - * @param metadataKey (optional) - * @param metadataValues (optional) - * @param metadataValueStartswith (optional) - * @param metacounterKey (optional) - * @param metacounterValues (optional) - * @param metacounterValueGt (optional) - * @param metacounterValueGte (optional) - * @param metacounterValueLt (optional) - * @param metacounterValueLte (optional) - * @param customType (optional) - * @return ApiResponse<ListMyGroupChannelsResponse> + * @return leaveMyGroupChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listMyGroupChannelsWithHttpInfo(String apiToken, String userId, String token, Integer limit, String distinctMode, String publicMode, String superMode, String hiddenMode, String memberStateFilter, String unreadFilter, Integer createdAfter, Integer createdBefore, Boolean showEmpty, Boolean showFrozen, Boolean showMember, Boolean showDeliveryReceipt, Boolean showReadReceipt, String order, String metadataOrderKey, String customTypes, String customTypeStartswith, String channelUrls, String name, String nameContains, String nameStartswith, String membersExactlyIn, String membersIncludeIn, String queryType, String membersNickname, String membersNicknameContains, String searchQuery, String searchFields, String metadataKey, String metadataValues, String metadataValueStartswith, String metacounterKey, String metacounterValues, String metacounterValueGt, String metacounterValueGte, String metacounterValueLt, String metacounterValueLte, String customType) throws ApiException { + public APIleaveMyGroupChannelsRequest leaveMyGroupChannels(String userId) throws ApiException { + return new APIleaveMyGroupChannelsRequest(userId); + } + +private ApiResponse listMyGroupChannelsWithHttpInfo(String apiToken, String userId, String token, Integer limit, String distinctMode, String publicMode, String superMode, String hiddenMode, String memberStateFilter, String unreadFilter, Integer createdAfter, Integer createdBefore, Boolean showEmpty, Boolean showFrozen, Boolean showMember, Boolean showDeliveryReceipt, Boolean showReadReceipt, String order, String metadataOrderKey, String customTypes, String customTypeStartswith, String channelUrls, String name, String nameContains, String nameStartswith, String membersExactlyIn, String membersIncludeIn, String queryType, String membersNickname, String membersNicknameContains, String searchQuery, String searchFields, String metadataKey, String metadataValues, String metadataValueStartswith, String metacounterKey, String metacounterValues, String metacounterValueGt, String metacounterValueGte, String metacounterValueLt, String metacounterValueLte, String customType) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -748,39 +888,511 @@ public ApiResponse listMyGroupChannelsWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List registration or device tokens - * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param tokenType (required) - * @return ListRegistrationOrDeviceTokensResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListRegistrationOrDeviceTokensResponse listRegistrationOrDeviceTokens(String apiToken, String userId, String tokenType) throws ApiException { - return listRegistrationOrDeviceTokensWithHttpInfo(apiToken, userId, tokenType).getData(); + + public class APIlistMyGroupChannelsRequest { + private String apiToken; + private String userId; + private String token; + private Integer limit; + private String distinctMode; + private String publicMode; + private String superMode; + private String hiddenMode; + private String memberStateFilter; + private String unreadFilter; + private Integer createdAfter; + private Integer createdBefore; + private Boolean showEmpty; + private Boolean showFrozen; + private Boolean showMember; + private Boolean showDeliveryReceipt; + private Boolean showReadReceipt; + private String order; + private String metadataOrderKey; + private String customTypes; + private String customTypeStartswith; + private String channelUrls; + private String name; + private String nameContains; + private String nameStartswith; + private String membersExactlyIn; + private String membersIncludeIn; + private String queryType; + private String membersNickname; + private String membersNicknameContains; + private String searchQuery; + private String searchFields; + private String metadataKey; + private String metadataValues; + private String metadataValueStartswith; + private String metacounterKey; + private String metacounterValues; + private String metacounterValueGt; + private String metacounterValueGte; + private String metacounterValueLt; + private String metacounterValueLte; + private String customType; + + private APIlistMyGroupChannelsRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set distinctMode + * @param distinctMode (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest distinctMode(String distinctMode) { + this.distinctMode = distinctMode; + return this; + } + + /** + * Set publicMode + * @param publicMode (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest publicMode(String publicMode) { + this.publicMode = publicMode; + return this; + } + + /** + * Set superMode + * @param superMode (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest superMode(String superMode) { + this.superMode = superMode; + return this; + } + + /** + * Set hiddenMode + * @param hiddenMode (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest hiddenMode(String hiddenMode) { + this.hiddenMode = hiddenMode; + return this; + } + + /** + * Set memberStateFilter + * @param memberStateFilter (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest memberStateFilter(String memberStateFilter) { + this.memberStateFilter = memberStateFilter; + return this; + } + + /** + * Set unreadFilter + * @param unreadFilter (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest unreadFilter(String unreadFilter) { + this.unreadFilter = unreadFilter; + return this; + } + + /** + * Set createdAfter + * @param createdAfter (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest createdAfter(Integer createdAfter) { + this.createdAfter = createdAfter; + return this; + } + + /** + * Set createdBefore + * @param createdBefore (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest createdBefore(Integer createdBefore) { + this.createdBefore = createdBefore; + return this; + } + + /** + * Set showEmpty + * @param showEmpty (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest showEmpty(Boolean showEmpty) { + this.showEmpty = showEmpty; + return this; + } + + /** + * Set showFrozen + * @param showFrozen (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest showFrozen(Boolean showFrozen) { + this.showFrozen = showFrozen; + return this; + } + + /** + * Set showMember + * @param showMember (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest showMember(Boolean showMember) { + this.showMember = showMember; + return this; + } + + /** + * Set showDeliveryReceipt + * @param showDeliveryReceipt (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest showDeliveryReceipt(Boolean showDeliveryReceipt) { + this.showDeliveryReceipt = showDeliveryReceipt; + return this; + } + + /** + * Set showReadReceipt + * @param showReadReceipt (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest showReadReceipt(Boolean showReadReceipt) { + this.showReadReceipt = showReadReceipt; + return this; + } + + /** + * Set order + * @param order (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest order(String order) { + this.order = order; + return this; + } + + /** + * Set metadataOrderKey + * @param metadataOrderKey (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metadataOrderKey(String metadataOrderKey) { + this.metadataOrderKey = metadataOrderKey; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest customTypes(String customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set customTypeStartswith + * @param customTypeStartswith (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest customTypeStartswith(String customTypeStartswith) { + this.customTypeStartswith = customTypeStartswith; + return this; + } + + /** + * Set channelUrls + * @param channelUrls (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest channelUrls(String channelUrls) { + this.channelUrls = channelUrls; + return this; + } + + /** + * Set name + * @param name (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest name(String name) { + this.name = name; + return this; + } + + /** + * Set nameContains + * @param nameContains (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest nameContains(String nameContains) { + this.nameContains = nameContains; + return this; + } + + /** + * Set nameStartswith + * @param nameStartswith (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest nameStartswith(String nameStartswith) { + this.nameStartswith = nameStartswith; + return this; + } + + /** + * Set membersExactlyIn + * @param membersExactlyIn (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest membersExactlyIn(String membersExactlyIn) { + this.membersExactlyIn = membersExactlyIn; + return this; + } + + /** + * Set membersIncludeIn + * @param membersIncludeIn (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest membersIncludeIn(String membersIncludeIn) { + this.membersIncludeIn = membersIncludeIn; + return this; + } + + /** + * Set queryType + * @param queryType (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest queryType(String queryType) { + this.queryType = queryType; + return this; + } + + /** + * Set membersNickname + * @param membersNickname (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest membersNickname(String membersNickname) { + this.membersNickname = membersNickname; + return this; + } + + /** + * Set membersNicknameContains + * @param membersNicknameContains (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest membersNicknameContains(String membersNicknameContains) { + this.membersNicknameContains = membersNicknameContains; + return this; + } + + /** + * Set searchQuery + * @param searchQuery (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest searchQuery(String searchQuery) { + this.searchQuery = searchQuery; + return this; + } + + /** + * Set searchFields + * @param searchFields (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest searchFields(String searchFields) { + this.searchFields = searchFields; + return this; + } + + /** + * Set metadataKey + * @param metadataKey (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metadataKey(String metadataKey) { + this.metadataKey = metadataKey; + return this; + } + + /** + * Set metadataValues + * @param metadataValues (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metadataValues(String metadataValues) { + this.metadataValues = metadataValues; + return this; + } + + /** + * Set metadataValueStartswith + * @param metadataValueStartswith (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metadataValueStartswith(String metadataValueStartswith) { + this.metadataValueStartswith = metadataValueStartswith; + return this; + } + + /** + * Set metacounterKey + * @param metacounterKey (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metacounterKey(String metacounterKey) { + this.metacounterKey = metacounterKey; + return this; + } + + /** + * Set metacounterValues + * @param metacounterValues (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metacounterValues(String metacounterValues) { + this.metacounterValues = metacounterValues; + return this; + } + + /** + * Set metacounterValueGt + * @param metacounterValueGt (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metacounterValueGt(String metacounterValueGt) { + this.metacounterValueGt = metacounterValueGt; + return this; + } + + /** + * Set metacounterValueGte + * @param metacounterValueGte (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metacounterValueGte(String metacounterValueGte) { + this.metacounterValueGte = metacounterValueGte; + return this; + } + + /** + * Set metacounterValueLt + * @param metacounterValueLt (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metacounterValueLt(String metacounterValueLt) { + this.metacounterValueLt = metacounterValueLt; + return this; + } + + /** + * Set metacounterValueLte + * @param metacounterValueLte (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest metacounterValueLte(String metacounterValueLte) { + this.metacounterValueLte = metacounterValueLte; + return this; + } + + /** + * Set customType + * @param customType (optional) + * @return APIlistMyGroupChannelsRequest + */ + public APIlistMyGroupChannelsRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Execute listMyGroupChannels request + * @return ListMyGroupChannelsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListMyGroupChannelsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listMyGroupChannels request with HTTP info returned + * @return ApiResponse<ListMyGroupChannelsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMyGroupChannelsWithHttpInfo(apiToken, userId, token, limit, distinctMode, publicMode, superMode, hiddenMode, memberStateFilter, unreadFilter, createdAfter, createdBefore, showEmpty, showFrozen, showMember, showDeliveryReceipt, showReadReceipt, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, searchQuery, searchFields, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, customType); + } } /** - * List registration or device tokens - * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- - * @param apiToken (required) + * List my group channels + * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. * @param userId (required) - * @param tokenType (required) - * @return ApiResponse<ListRegistrationOrDeviceTokensResponse> + * @return listMyGroupChannelsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listRegistrationOrDeviceTokensWithHttpInfo(String apiToken, String userId, String tokenType) throws ApiException { + public APIlistMyGroupChannelsRequest listMyGroupChannels(String userId) throws ApiException { + return new APIlistMyGroupChannelsRequest(userId); + } + +private ApiResponse listRegistrationOrDeviceTokensWithHttpInfo(String apiToken, String userId, String tokenType) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -833,53 +1445,74 @@ public ApiResponse listRegistrationOrDev localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * List users - * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param activeMode (optional) - * @param showBot (optional) - * @param userIds (optional) - * @param nickname (optional) - * @param nicknameStartswith (optional) - * @param metadatakey (optional) - * @param metadatavaluesIn (optional) - * @return ListUsersResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ListUsersResponse listUsers(String apiToken, String token, Integer limit, String activeMode, Boolean showBot, String userIds, String nickname, String nicknameStartswith, String metadatakey, String metadatavaluesIn) throws ApiException { - return listUsersWithHttpInfo(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn).getData(); + + public class APIlistRegistrationOrDeviceTokensRequest { + private String apiToken; + private String userId; + private String tokenType; + + private APIlistRegistrationOrDeviceTokensRequest(String userId, String tokenType) { + this.userId = userId; + this.tokenType = tokenType; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistRegistrationOrDeviceTokensRequest + */ + public APIlistRegistrationOrDeviceTokensRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute listRegistrationOrDeviceTokens request + * @return ListRegistrationOrDeviceTokensResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListRegistrationOrDeviceTokensResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listRegistrationOrDeviceTokens request with HTTP info returned + * @return ApiResponse<ListRegistrationOrDeviceTokensResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listRegistrationOrDeviceTokensWithHttpInfo(apiToken, userId, tokenType); + } } /** - * List users - * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- - * @param apiToken (required) - * @param token (optional) - * @param limit (optional) - * @param activeMode (optional) - * @param showBot (optional) - * @param userIds (optional) - * @param nickname (optional) - * @param nicknameStartswith (optional) - * @param metadatakey (optional) - * @param metadatavaluesIn (optional) - * @return ApiResponse<ListUsersResponse> + * List registration or device tokens + * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- + * @param userId (required) + * @param tokenType (required) + * @return listRegistrationOrDeviceTokensRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse listUsersWithHttpInfo(String apiToken, String token, Integer limit, String activeMode, Boolean showBot, String userIds, String nickname, String nicknameStartswith, String metadatakey, String metadatavaluesIn) throws ApiException { + public APIlistRegistrationOrDeviceTokensRequest listRegistrationOrDeviceTokens(String userId, String tokenType) throws ApiException { + return new APIlistRegistrationOrDeviceTokensRequest(userId, tokenType); + } + +private ApiResponse listUsersWithHttpInfo(String apiToken, String token, Integer limit, String activeMode, Boolean showBot, String userIds, String nickname, String nicknameStartswith, String metadatakey, String metadatavaluesIn) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -929,39 +1562,167 @@ public ApiResponse listUsersWithHttpInfo(String apiToken, Str localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Mark all messages as read - * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param markAllMessagesAsReadData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object markAllMessagesAsRead(String apiToken, String userId, MarkAllMessagesAsReadData markAllMessagesAsReadData) throws ApiException { - return markAllMessagesAsReadWithHttpInfo(apiToken, userId, markAllMessagesAsReadData).getData(); + + public class APIlistUsersRequest { + private String apiToken; + private String token; + private Integer limit; + private String activeMode; + private Boolean showBot; + private String userIds; + private String nickname; + private String nicknameStartswith; + private String metadatakey; + private String metadatavaluesIn; + + private APIlistUsersRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set token + * @param token (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest token(String token) { + this.token = token; + return this; + } + + /** + * Set limit + * @param limit (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set activeMode + * @param activeMode (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest activeMode(String activeMode) { + this.activeMode = activeMode; + return this; + } + + /** + * Set showBot + * @param showBot (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest showBot(Boolean showBot) { + this.showBot = showBot; + return this; + } + + /** + * Set userIds + * @param userIds (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest userIds(String userIds) { + this.userIds = userIds; + return this; + } + + /** + * Set nickname + * @param nickname (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest nickname(String nickname) { + this.nickname = nickname; + return this; + } + + /** + * Set nicknameStartswith + * @param nicknameStartswith (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest nicknameStartswith(String nicknameStartswith) { + this.nicknameStartswith = nicknameStartswith; + return this; + } + + /** + * Set metadatakey + * @param metadatakey (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest metadatakey(String metadatakey) { + this.metadatakey = metadatakey; + return this; + } + + /** + * Set metadatavaluesIn + * @param metadatavaluesIn (optional) + * @return APIlistUsersRequest + */ + public APIlistUsersRequest metadatavaluesIn(String metadatavaluesIn) { + this.metadatavaluesIn = metadatavaluesIn; + return this; + } + + /** + * Execute listUsers request + * @return ListUsersResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ListUsersResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listUsers request with HTTP info returned + * @return ApiResponse<ListUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listUsersWithHttpInfo(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); + } } /** - * Mark all messages as read - * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param markAllMessagesAsReadData (optional) - * @return ApiResponse<Object> + * List users + * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- + * @return listUsersRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse markAllMessagesAsReadWithHttpInfo(String apiToken, String userId, MarkAllMessagesAsReadData markAllMessagesAsReadData) throws ApiException { + public APIlistUsersRequest listUsers() throws ApiException { + return new APIlistUsersRequest(); + } + +private ApiResponse markAllMessagesAsReadWithHttpInfo(String apiToken, String userId, MarkAllMessagesAsReadData markAllMessagesAsReadData) throws ApiException { Object localVarPostBody = markAllMessagesAsReadData; // verify the required parameter 'apiToken' is set @@ -1008,39 +1769,82 @@ public ApiResponse markAllMessagesAsReadWithHttpInfo(String apiToken, St localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Register as an operator to channels with custom channel types - * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param registerAsOperatorToChannelsWithCustomChannelTypesData (optional) - * @return Object - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public Object registerAsOperatorToChannelsWithCustomChannelTypes(String apiToken, String userId, RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData) throws ApiException { - return registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, registerAsOperatorToChannelsWithCustomChannelTypesData).getData(); + + public class APImarkAllMessagesAsReadRequest { + private String apiToken; + private String userId; + private MarkAllMessagesAsReadData markAllMessagesAsReadData; + + private APImarkAllMessagesAsReadRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APImarkAllMessagesAsReadRequest + */ + public APImarkAllMessagesAsReadRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set markAllMessagesAsReadData + * @param markAllMessagesAsReadData (optional) + * @return APImarkAllMessagesAsReadRequest + */ + public APImarkAllMessagesAsReadRequest markAllMessagesAsReadData(MarkAllMessagesAsReadData markAllMessagesAsReadData) { + this.markAllMessagesAsReadData = markAllMessagesAsReadData; + return this; + } + + /** + * Execute markAllMessagesAsRead request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute markAllMessagesAsRead request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return markAllMessagesAsReadWithHttpInfo(apiToken, userId, markAllMessagesAsReadData); + } } /** - * Register as an operator to channels with custom channel types - * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- - * @param apiToken (required) + * Mark all messages as read + * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- * @param userId (required) - * @param registerAsOperatorToChannelsWithCustomChannelTypesData (optional) - * @return ApiResponse<Object> + * @return markAllMessagesAsReadRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(String apiToken, String userId, RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData) throws ApiException { + public APImarkAllMessagesAsReadRequest markAllMessagesAsRead(String userId) throws ApiException { + return new APImarkAllMessagesAsReadRequest(userId); + } + +private ApiResponse registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(String apiToken, String userId, RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData) throws ApiException { Object localVarPostBody = registerAsOperatorToChannelsWithCustomChannelTypesData; // verify the required parameter 'apiToken' is set @@ -1087,37 +1891,82 @@ public ApiResponse registerAsOperatorToChannelsWithCustomChannelTypesWit localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Remove a registration or device token - When unregistering all device tokens - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @return RemoveRegistrationOrDeviceTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RemoveRegistrationOrDeviceTokenResponse removeRegistrationOrDeviceToken(String apiToken, String userId) throws ApiException { - return removeRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId).getData(); + + public class APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest { + private String apiToken; + private String userId; + private RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData; + + private APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest + */ + public APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set registerAsOperatorToChannelsWithCustomChannelTypesData + * @param registerAsOperatorToChannelsWithCustomChannelTypesData (optional) + * @return APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest + */ + public APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest registerAsOperatorToChannelsWithCustomChannelTypesData(RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData) { + this.registerAsOperatorToChannelsWithCustomChannelTypesData = registerAsOperatorToChannelsWithCustomChannelTypesData; + return this; + } + + /** + * Execute registerAsOperatorToChannelsWithCustomChannelTypes request + * @return Object + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public Object execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute registerAsOperatorToChannelsWithCustomChannelTypes request with HTTP info returned + * @return ApiResponse<Object> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, registerAsOperatorToChannelsWithCustomChannelTypesData); + } } /** - * Remove a registration or device token - When unregistering all device tokens - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param apiToken (required) + * Register as an operator to channels with custom channel types + * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- * @param userId (required) - * @return ApiResponse<RemoveRegistrationOrDeviceTokenResponse> + * @return registerAsOperatorToChannelsWithCustomChannelTypesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse removeRegistrationOrDeviceTokenWithHttpInfo(String apiToken, String userId) throws ApiException { + public APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest registerAsOperatorToChannelsWithCustomChannelTypes(String userId) throws ApiException { + return new APIregisterAsOperatorToChannelsWithCustomChannelTypesRequest(userId); + } + +private ApiResponse removeRegistrationOrDeviceTokenWithHttpInfo(String apiToken, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1164,41 +2013,71 @@ public ApiResponse removeRegistrationOr localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Remove a registration or device token - When unregistering a specific token - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param tokenType (required) - * @param token (required) - * @return RemoveRegistrationOrDeviceTokenByTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RemoveRegistrationOrDeviceTokenByTokenResponse removeRegistrationOrDeviceTokenByToken(String apiToken, String userId, String tokenType, String token) throws ApiException { - return removeRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, userId, tokenType, token).getData(); + + public class APIremoveRegistrationOrDeviceTokenRequest { + private String apiToken; + private String userId; + + private APIremoveRegistrationOrDeviceTokenRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIremoveRegistrationOrDeviceTokenRequest + */ + public APIremoveRegistrationOrDeviceTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute removeRegistrationOrDeviceToken request + * @return RemoveRegistrationOrDeviceTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RemoveRegistrationOrDeviceTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute removeRegistrationOrDeviceToken request with HTTP info returned + * @return ApiResponse<RemoveRegistrationOrDeviceTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return removeRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId); + } } /** - * Remove a registration or device token - When unregistering a specific token + * Remove a registration or device token - When unregistering all device tokens * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param apiToken (required) * @param userId (required) - * @param tokenType (required) - * @param token (required) - * @return ApiResponse<RemoveRegistrationOrDeviceTokenByTokenResponse> + * @return removeRegistrationOrDeviceTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse removeRegistrationOrDeviceTokenByTokenWithHttpInfo(String apiToken, String userId, String tokenType, String token) throws ApiException { + public APIremoveRegistrationOrDeviceTokenRequest removeRegistrationOrDeviceToken(String userId) throws ApiException { + return new APIremoveRegistrationOrDeviceTokenRequest(userId); + } + +private ApiResponse removeRegistrationOrDeviceTokenByTokenWithHttpInfo(String apiToken, String userId, String tokenType, String token) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1257,39 +2136,77 @@ public ApiResponse removeRegistr localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Remove a registration or device token from an owner - * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- - * @param apiToken (required) - * @param tokenType (required) - * @param token (required) - * @return RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse removeRegistrationOrDeviceTokenFromOwnerByToken(String apiToken, String tokenType, String token) throws ApiException { - return removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(apiToken, tokenType, token).getData(); + + public class APIremoveRegistrationOrDeviceTokenByTokenRequest { + private String apiToken; + private String userId; + private String tokenType; + private String token; + + private APIremoveRegistrationOrDeviceTokenByTokenRequest(String userId, String tokenType, String token) { + this.userId = userId; + this.tokenType = tokenType; + this.token = token; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIremoveRegistrationOrDeviceTokenByTokenRequest + */ + public APIremoveRegistrationOrDeviceTokenByTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute removeRegistrationOrDeviceTokenByToken request + * @return RemoveRegistrationOrDeviceTokenByTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RemoveRegistrationOrDeviceTokenByTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute removeRegistrationOrDeviceTokenByToken request with HTTP info returned + * @return ApiResponse<RemoveRegistrationOrDeviceTokenByTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return removeRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, userId, tokenType, token); + } } /** - * Remove a registration or device token from an owner - * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- - * @param apiToken (required) + * Remove a registration or device token - When unregistering a specific token + * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- + * @param userId (required) * @param tokenType (required) * @param token (required) - * @return ApiResponse<RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse> + * @return removeRegistrationOrDeviceTokenByTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(String apiToken, String tokenType, String token) throws ApiException { + public APIremoveRegistrationOrDeviceTokenByTokenRequest removeRegistrationOrDeviceTokenByToken(String userId, String tokenType, String token) throws ApiException { + return new APIremoveRegistrationOrDeviceTokenByTokenRequest(userId, tokenType, token); + } + +private ApiResponse removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(String apiToken, String tokenType, String token) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1342,37 +2259,74 @@ public ApiResponse remo localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Reset push preferences - * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @return ResetPushPreferencesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ResetPushPreferencesResponse resetPushPreferences(String apiToken, String userId) throws ApiException { - return resetPushPreferencesWithHttpInfo(apiToken, userId).getData(); + + public class APIremoveRegistrationOrDeviceTokenFromOwnerByTokenRequest { + private String apiToken; + private String tokenType; + private String token; + + private APIremoveRegistrationOrDeviceTokenFromOwnerByTokenRequest(String tokenType, String token) { + this.tokenType = tokenType; + this.token = token; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIremoveRegistrationOrDeviceTokenFromOwnerByTokenRequest + */ + public APIremoveRegistrationOrDeviceTokenFromOwnerByTokenRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute removeRegistrationOrDeviceTokenFromOwnerByToken request + * @return RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute removeRegistrationOrDeviceTokenFromOwnerByToken request with HTTP info returned + * @return ApiResponse<RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(apiToken, tokenType, token); + } } /** - * Reset push preferences - * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @return ApiResponse<ResetPushPreferencesResponse> + * Remove a registration or device token from an owner + * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- + * @param tokenType (required) + * @param token (required) + * @return removeRegistrationOrDeviceTokenFromOwnerByTokenRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse resetPushPreferencesWithHttpInfo(String apiToken, String userId) throws ApiException { + public APIremoveRegistrationOrDeviceTokenFromOwnerByTokenRequest removeRegistrationOrDeviceTokenFromOwnerByToken(String tokenType, String token) throws ApiException { + return new APIremoveRegistrationOrDeviceTokenFromOwnerByTokenRequest(tokenType, token); + } + +private ApiResponse resetPushPreferencesWithHttpInfo(String apiToken, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1419,39 +2373,71 @@ public ApiResponse resetPushPreferencesWithHttpInf localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update channel invitation preference - * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference - * @param apiToken (required) - * @param userId (required) - * @param updateChannelInvitationPreferenceData (optional) - * @return UpdateChannelInvitationPreferenceResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateChannelInvitationPreferenceResponse updateChannelInvitationPreference(String apiToken, String userId, UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData) throws ApiException { - return updateChannelInvitationPreferenceWithHttpInfo(apiToken, userId, updateChannelInvitationPreferenceData).getData(); + + public class APIresetPushPreferencesRequest { + private String apiToken; + private String userId; + + private APIresetPushPreferencesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIresetPushPreferencesRequest + */ + public APIresetPushPreferencesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute resetPushPreferences request + * @return ResetPushPreferencesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ResetPushPreferencesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute resetPushPreferences request with HTTP info returned + * @return ApiResponse<ResetPushPreferencesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return resetPushPreferencesWithHttpInfo(apiToken, userId); + } } /** - * Update channel invitation preference - * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference - * @param apiToken (required) + * Reset push preferences + * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- * @param userId (required) - * @param updateChannelInvitationPreferenceData (optional) - * @return ApiResponse<UpdateChannelInvitationPreferenceResponse> + * @return resetPushPreferencesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateChannelInvitationPreferenceWithHttpInfo(String apiToken, String userId, UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData) throws ApiException { + public APIresetPushPreferencesRequest resetPushPreferences(String userId) throws ApiException { + return new APIresetPushPreferencesRequest(userId); + } + +private ApiResponse updateChannelInvitationPreferenceWithHttpInfo(String apiToken, String userId, UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData) throws ApiException { Object localVarPostBody = updateChannelInvitationPreferenceData; // verify the required parameter 'apiToken' is set @@ -1498,41 +2484,82 @@ public ApiResponse updateChannelInvit localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update count preference of a channel - * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param channelUrl (required) - * @param updateCountPreferenceOfChannelByUrlData (optional) - * @return UpdateCountPreferenceOfChannelByUrlResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdateCountPreferenceOfChannelByUrlResponse updateCountPreferenceOfChannelByUrl(String apiToken, String userId, String channelUrl, UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData) throws ApiException { - return updateCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, updateCountPreferenceOfChannelByUrlData).getData(); + + public class APIupdateChannelInvitationPreferenceRequest { + private String apiToken; + private String userId; + private UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData; + + private APIupdateChannelInvitationPreferenceRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateChannelInvitationPreferenceRequest + */ + public APIupdateChannelInvitationPreferenceRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateChannelInvitationPreferenceData + * @param updateChannelInvitationPreferenceData (optional) + * @return APIupdateChannelInvitationPreferenceRequest + */ + public APIupdateChannelInvitationPreferenceRequest updateChannelInvitationPreferenceData(UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData) { + this.updateChannelInvitationPreferenceData = updateChannelInvitationPreferenceData; + return this; + } + + /** + * Execute updateChannelInvitationPreference request + * @return UpdateChannelInvitationPreferenceResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateChannelInvitationPreferenceResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateChannelInvitationPreference request with HTTP info returned + * @return ApiResponse<UpdateChannelInvitationPreferenceResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateChannelInvitationPreferenceWithHttpInfo(apiToken, userId, updateChannelInvitationPreferenceData); + } } /** - * Update count preference of a channel - * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- - * @param apiToken (required) + * Update channel invitation preference + * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference * @param userId (required) - * @param channelUrl (required) - * @param updateCountPreferenceOfChannelByUrlData (optional) - * @return ApiResponse<UpdateCountPreferenceOfChannelByUrlResponse> + * @return updateChannelInvitationPreferenceRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateCountPreferenceOfChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl, UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData) throws ApiException { + public APIupdateChannelInvitationPreferenceRequest updateChannelInvitationPreference(String userId) throws ApiException { + return new APIupdateChannelInvitationPreferenceRequest(userId); + } + +private ApiResponse updateCountPreferenceOfChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl, UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData) throws ApiException { Object localVarPostBody = updateCountPreferenceOfChannelByUrlData; // verify the required parameter 'apiToken' is set @@ -1585,39 +2612,85 @@ public ApiResponse updateCountPrefe localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update push preferences - * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param updatePushPreferencesData (optional) - * @return UpdatePushPreferencesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdatePushPreferencesResponse updatePushPreferences(String apiToken, String userId, UpdatePushPreferencesData updatePushPreferencesData) throws ApiException { - return updatePushPreferencesWithHttpInfo(apiToken, userId, updatePushPreferencesData).getData(); + + public class APIupdateCountPreferenceOfChannelByUrlRequest { + private String apiToken; + private String userId; + private String channelUrl; + private UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData; + + private APIupdateCountPreferenceOfChannelByUrlRequest(String userId, String channelUrl) { + this.userId = userId; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateCountPreferenceOfChannelByUrlRequest + */ + public APIupdateCountPreferenceOfChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateCountPreferenceOfChannelByUrlData + * @param updateCountPreferenceOfChannelByUrlData (optional) + * @return APIupdateCountPreferenceOfChannelByUrlRequest + */ + public APIupdateCountPreferenceOfChannelByUrlRequest updateCountPreferenceOfChannelByUrlData(UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData) { + this.updateCountPreferenceOfChannelByUrlData = updateCountPreferenceOfChannelByUrlData; + return this; + } + + /** + * Execute updateCountPreferenceOfChannelByUrl request + * @return UpdateCountPreferenceOfChannelByUrlResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdateCountPreferenceOfChannelByUrlResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateCountPreferenceOfChannelByUrl request with HTTP info returned + * @return ApiResponse<UpdateCountPreferenceOfChannelByUrlResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, updateCountPreferenceOfChannelByUrlData); + } } /** - * Update push preferences - * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- - * @param apiToken (required) + * Update count preference of a channel + * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- * @param userId (required) - * @param updatePushPreferencesData (optional) - * @return ApiResponse<UpdatePushPreferencesResponse> + * @param channelUrl (required) + * @return updateCountPreferenceOfChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updatePushPreferencesWithHttpInfo(String apiToken, String userId, UpdatePushPreferencesData updatePushPreferencesData) throws ApiException { + public APIupdateCountPreferenceOfChannelByUrlRequest updateCountPreferenceOfChannelByUrl(String userId, String channelUrl) throws ApiException { + return new APIupdateCountPreferenceOfChannelByUrlRequest(userId, channelUrl); + } + +private ApiResponse updatePushPreferencesWithHttpInfo(String apiToken, String userId, UpdatePushPreferencesData updatePushPreferencesData) throws ApiException { Object localVarPostBody = updatePushPreferencesData; // verify the required parameter 'apiToken' is set @@ -1664,41 +2737,82 @@ public ApiResponse updatePushPreferencesWithHttpI localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update push preferences for a channel - * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param channelUrl (required) - * @param updatePushPreferencesForChannelByUrlData (optional) - * @return UpdatePushPreferencesForChannelByUrlResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public UpdatePushPreferencesForChannelByUrlResponse updatePushPreferencesForChannelByUrl(String apiToken, String userId, String channelUrl, UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData) throws ApiException { - return updatePushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, updatePushPreferencesForChannelByUrlData).getData(); + + public class APIupdatePushPreferencesRequest { + private String apiToken; + private String userId; + private UpdatePushPreferencesData updatePushPreferencesData; + + private APIupdatePushPreferencesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdatePushPreferencesRequest + */ + public APIupdatePushPreferencesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updatePushPreferencesData + * @param updatePushPreferencesData (optional) + * @return APIupdatePushPreferencesRequest + */ + public APIupdatePushPreferencesRequest updatePushPreferencesData(UpdatePushPreferencesData updatePushPreferencesData) { + this.updatePushPreferencesData = updatePushPreferencesData; + return this; + } + + /** + * Execute updatePushPreferences request + * @return UpdatePushPreferencesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdatePushPreferencesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updatePushPreferences request with HTTP info returned + * @return ApiResponse<UpdatePushPreferencesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updatePushPreferencesWithHttpInfo(apiToken, userId, updatePushPreferencesData); + } } /** - * Update push preferences for a channel - * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- - * @param apiToken (required) + * Update push preferences + * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- * @param userId (required) - * @param channelUrl (required) - * @param updatePushPreferencesForChannelByUrlData (optional) - * @return ApiResponse<UpdatePushPreferencesForChannelByUrlResponse> + * @return updatePushPreferencesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updatePushPreferencesForChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl, UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData) throws ApiException { + public APIupdatePushPreferencesRequest updatePushPreferences(String userId) throws ApiException { + return new APIupdatePushPreferencesRequest(userId); + } + +private ApiResponse updatePushPreferencesForChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl, UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData) throws ApiException { Object localVarPostBody = updatePushPreferencesForChannelByUrlData; // verify the required parameter 'apiToken' is set @@ -1751,39 +2865,85 @@ public ApiResponse updatePushPrefe localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Update a user - * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param updateUserByIdData (optional) - * @return SendBirdUser - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdUser updateUserById(String apiToken, String userId, UpdateUserByIdData updateUserByIdData) throws ApiException { - return updateUserByIdWithHttpInfo(apiToken, userId, updateUserByIdData).getData(); + + public class APIupdatePushPreferencesForChannelByUrlRequest { + private String apiToken; + private String userId; + private String channelUrl; + private UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData; + + private APIupdatePushPreferencesForChannelByUrlRequest(String userId, String channelUrl) { + this.userId = userId; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdatePushPreferencesForChannelByUrlRequest + */ + public APIupdatePushPreferencesForChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updatePushPreferencesForChannelByUrlData + * @param updatePushPreferencesForChannelByUrlData (optional) + * @return APIupdatePushPreferencesForChannelByUrlRequest + */ + public APIupdatePushPreferencesForChannelByUrlRequest updatePushPreferencesForChannelByUrlData(UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData) { + this.updatePushPreferencesForChannelByUrlData = updatePushPreferencesForChannelByUrlData; + return this; + } + + /** + * Execute updatePushPreferencesForChannelByUrl request + * @return UpdatePushPreferencesForChannelByUrlResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public UpdatePushPreferencesForChannelByUrlResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updatePushPreferencesForChannelByUrl request with HTTP info returned + * @return ApiResponse<UpdatePushPreferencesForChannelByUrlResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updatePushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, updatePushPreferencesForChannelByUrlData); + } } /** - * Update a user - * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- - * @param apiToken (required) + * Update push preferences for a channel + * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- * @param userId (required) - * @param updateUserByIdData (optional) - * @return ApiResponse<SendBirdUser> + * @param channelUrl (required) + * @return updatePushPreferencesForChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse updateUserByIdWithHttpInfo(String apiToken, String userId, UpdateUserByIdData updateUserByIdData) throws ApiException { + public APIupdatePushPreferencesForChannelByUrlRequest updatePushPreferencesForChannelByUrl(String userId, String channelUrl) throws ApiException { + return new APIupdatePushPreferencesForChannelByUrlRequest(userId, channelUrl); + } + +private ApiResponse updateUserByIdWithHttpInfo(String apiToken, String userId, UpdateUserByIdData updateUserByIdData) throws ApiException { Object localVarPostBody = updateUserByIdData; // verify the required parameter 'apiToken' is set @@ -1824,43 +2984,88 @@ public ApiResponse updateUserByIdWithHttpInfo(String apiToken, Str String[] localVarAuthNames = new String[] { }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("UserApi.updateUserById", localVarPath, "PUT", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + + public class APIupdateUserByIdRequest { + private String apiToken; + private String userId; + private UpdateUserByIdData updateUserByIdData; + + private APIupdateUserByIdRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIupdateUserByIdRequest + */ + public APIupdateUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set updateUserByIdData + * @param updateUserByIdData (optional) + * @return APIupdateUserByIdRequest + */ + public APIupdateUserByIdRequest updateUserByIdData(UpdateUserByIdData updateUserByIdData) { + this.updateUserByIdData = updateUserByIdData; + return this; + } + + /** + * Execute updateUserById request + * @return SendBirdUser + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdUser execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } - return apiClient.invokeAPI("UserApi.updateUserById", localVarPath, "PUT", localVarQueryParams, localVarPostBody, - localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, - localVarAuthNames, localVarReturnType, false); + /** + * Execute updateUserById request with HTTP info returned + * @return ApiResponse<SendBirdUser> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateUserByIdWithHttpInfo(apiToken, userId, updateUserByIdData); + } } + /** - * View channel invitation preference - * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - * @param apiToken (required) + * Update a user + * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- * @param userId (required) - * @return ViewChannelInvitationPreferenceResponse + * @return updateUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ViewChannelInvitationPreferenceResponse viewChannelInvitationPreference(String apiToken, String userId) throws ApiException { - return viewChannelInvitationPreferenceWithHttpInfo(apiToken, userId).getData(); + public APIupdateUserByIdRequest updateUserById(String userId) throws ApiException { + return new APIupdateUserByIdRequest(userId); } - /** - * View channel invitation preference - * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - * @param apiToken (required) - * @param userId (required) - * @return ApiResponse<ViewChannelInvitationPreferenceResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse viewChannelInvitationPreferenceWithHttpInfo(String apiToken, String userId) throws ApiException { +private ApiResponse viewChannelInvitationPreferenceWithHttpInfo(String apiToken, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1907,39 +3112,71 @@ public ApiResponse viewChannelInvitatio localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View count preference of a channel - * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param channelUrl (required) - * @return ViewCountPreferenceOfChannelByUrlResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewCountPreferenceOfChannelByUrlResponse viewCountPreferenceOfChannelByUrl(String apiToken, String userId, String channelUrl) throws ApiException { - return viewCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl).getData(); + + public class APIviewChannelInvitationPreferenceRequest { + private String apiToken; + private String userId; + + private APIviewChannelInvitationPreferenceRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewChannelInvitationPreferenceRequest + */ + public APIviewChannelInvitationPreferenceRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewChannelInvitationPreference request + * @return ViewChannelInvitationPreferenceResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewChannelInvitationPreferenceResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewChannelInvitationPreference request with HTTP info returned + * @return ApiResponse<ViewChannelInvitationPreferenceResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewChannelInvitationPreferenceWithHttpInfo(apiToken, userId); + } } /** - * View count preference of a channel - * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- - * @param apiToken (required) + * View channel invitation preference + * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference * @param userId (required) - * @param channelUrl (required) - * @return ApiResponse<ViewCountPreferenceOfChannelByUrlResponse> + * @return viewChannelInvitationPreferenceRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewCountPreferenceOfChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl) throws ApiException { + public APIviewChannelInvitationPreferenceRequest viewChannelInvitationPreference(String userId) throws ApiException { + return new APIviewChannelInvitationPreferenceRequest(userId); + } + +private ApiResponse viewCountPreferenceOfChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -1992,39 +3229,74 @@ public ApiResponse viewCountPreferenc localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of channels by join status - * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param apiToken (required) - * @param userId (required) - * @param state (optional) - * @return ViewNumberOfChannelsByJoinStatusResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfChannelsByJoinStatusResponse viewNumberOfChannelsByJoinStatus(String apiToken, String userId, String state) throws ApiException { - return viewNumberOfChannelsByJoinStatusWithHttpInfo(apiToken, userId, state).getData(); + + public class APIviewCountPreferenceOfChannelByUrlRequest { + private String apiToken; + private String userId; + private String channelUrl; + + private APIviewCountPreferenceOfChannelByUrlRequest(String userId, String channelUrl) { + this.userId = userId; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewCountPreferenceOfChannelByUrlRequest + */ + public APIviewCountPreferenceOfChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewCountPreferenceOfChannelByUrl request + * @return ViewCountPreferenceOfChannelByUrlResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewCountPreferenceOfChannelByUrlResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewCountPreferenceOfChannelByUrl request with HTTP info returned + * @return ApiResponse<ViewCountPreferenceOfChannelByUrlResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl); + } } /** - * View number of channels by join status - * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param apiToken (required) + * View count preference of a channel + * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- * @param userId (required) - * @param state (optional) - * @return ApiResponse<ViewNumberOfChannelsByJoinStatusResponse> + * @param channelUrl (required) + * @return viewCountPreferenceOfChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfChannelsByJoinStatusWithHttpInfo(String apiToken, String userId, String state) throws ApiException { + public APIviewCountPreferenceOfChannelByUrlRequest viewCountPreferenceOfChannelByUrl(String userId, String channelUrl) throws ApiException { + return new APIviewCountPreferenceOfChannelByUrlRequest(userId, channelUrl); + } + +private ApiResponse viewNumberOfChannelsByJoinStatusWithHttpInfo(String apiToken, String userId, String state) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2072,41 +3344,82 @@ public ApiResponse viewNumberOfChannel localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of channels with unread messages - * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param customTypes (optional) - * @param superMode (optional) - * @return ViewNumberOfChannelsWithUnreadMessagesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfChannelsWithUnreadMessagesResponse viewNumberOfChannelsWithUnreadMessages(String apiToken, String userId, List customTypes, String superMode) throws ApiException { - return viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(apiToken, userId, customTypes, superMode).getData(); + + public class APIviewNumberOfChannelsByJoinStatusRequest { + private String apiToken; + private String userId; + private String state; + + private APIviewNumberOfChannelsByJoinStatusRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfChannelsByJoinStatusRequest + */ + public APIviewNumberOfChannelsByJoinStatusRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set state + * @param state (optional) + * @return APIviewNumberOfChannelsByJoinStatusRequest + */ + public APIviewNumberOfChannelsByJoinStatusRequest state(String state) { + this.state = state; + return this; + } + + /** + * Execute viewNumberOfChannelsByJoinStatus request + * @return ViewNumberOfChannelsByJoinStatusResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfChannelsByJoinStatusResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfChannelsByJoinStatus request with HTTP info returned + * @return ApiResponse<ViewNumberOfChannelsByJoinStatusResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfChannelsByJoinStatusWithHttpInfo(apiToken, userId, state); + } } /** - * View number of channels with unread messages - * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- - * @param apiToken (required) + * View number of channels by join status + * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. * @param userId (required) - * @param customTypes (optional) - * @param superMode (optional) - * @return ApiResponse<ViewNumberOfChannelsWithUnreadMessagesResponse> + * @return viewNumberOfChannelsByJoinStatusRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(String apiToken, String userId, List customTypes, String superMode) throws ApiException { + public APIviewNumberOfChannelsByJoinStatusRequest viewNumberOfChannelsByJoinStatus(String userId) throws ApiException { + return new APIviewNumberOfChannelsByJoinStatusRequest(userId); + } + +private ApiResponse viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(String apiToken, String userId, List customTypes, String superMode) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2155,41 +3468,93 @@ public ApiResponse viewNumberOfC localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of unread items - * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param customType (optional) - * @param itemKeys (optional) - * @return ViewNumberOfUnreadItemsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfUnreadItemsResponse viewNumberOfUnreadItems(String apiToken, String userId, String customType, String itemKeys) throws ApiException { - return viewNumberOfUnreadItemsWithHttpInfo(apiToken, userId, customType, itemKeys).getData(); + + public class APIviewNumberOfChannelsWithUnreadMessagesRequest { + private String apiToken; + private String userId; + private List customTypes; + private String superMode; + + private APIviewNumberOfChannelsWithUnreadMessagesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfChannelsWithUnreadMessagesRequest + */ + public APIviewNumberOfChannelsWithUnreadMessagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIviewNumberOfChannelsWithUnreadMessagesRequest + */ + public APIviewNumberOfChannelsWithUnreadMessagesRequest customTypes(List customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set superMode + * @param superMode (optional) + * @return APIviewNumberOfChannelsWithUnreadMessagesRequest + */ + public APIviewNumberOfChannelsWithUnreadMessagesRequest superMode(String superMode) { + this.superMode = superMode; + return this; + } + + /** + * Execute viewNumberOfChannelsWithUnreadMessages request + * @return ViewNumberOfChannelsWithUnreadMessagesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfChannelsWithUnreadMessagesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfChannelsWithUnreadMessages request with HTTP info returned + * @return ApiResponse<ViewNumberOfChannelsWithUnreadMessagesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(apiToken, userId, customTypes, superMode); + } } /** - * View number of unread items - * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - * @param apiToken (required) + * View number of channels with unread messages + * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- * @param userId (required) - * @param customType (optional) - * @param itemKeys (optional) - * @return ApiResponse<ViewNumberOfUnreadItemsResponse> + * @return viewNumberOfChannelsWithUnreadMessagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfUnreadItemsWithHttpInfo(String apiToken, String userId, String customType, String itemKeys) throws ApiException { + public APIviewNumberOfChannelsWithUnreadMessagesRequest viewNumberOfChannelsWithUnreadMessages(String userId) throws ApiException { + return new APIviewNumberOfChannelsWithUnreadMessagesRequest(userId); + } + +private ApiResponse viewNumberOfUnreadItemsWithHttpInfo(String apiToken, String userId, String customType, String itemKeys) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2238,41 +3603,93 @@ public ApiResponse viewNumberOfUnreadItemsWithH localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View number of unread messages - * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param apiToken (required) - * @param userId (required) - * @param customTypes (optional) - * @param superMode (optional) - * @return ViewNumberOfUnreadMessagesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewNumberOfUnreadMessagesResponse viewNumberOfUnreadMessages(String apiToken, String userId, String customTypes, String superMode) throws ApiException { - return viewNumberOfUnreadMessagesWithHttpInfo(apiToken, userId, customTypes, superMode).getData(); + + public class APIviewNumberOfUnreadItemsRequest { + private String apiToken; + private String userId; + private String customType; + private String itemKeys; + + private APIviewNumberOfUnreadItemsRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfUnreadItemsRequest + */ + public APIviewNumberOfUnreadItemsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set customType + * @param customType (optional) + * @return APIviewNumberOfUnreadItemsRequest + */ + public APIviewNumberOfUnreadItemsRequest customType(String customType) { + this.customType = customType; + return this; + } + + /** + * Set itemKeys + * @param itemKeys (optional) + * @return APIviewNumberOfUnreadItemsRequest + */ + public APIviewNumberOfUnreadItemsRequest itemKeys(String itemKeys) { + this.itemKeys = itemKeys; + return this; + } + + /** + * Execute viewNumberOfUnreadItems request + * @return ViewNumberOfUnreadItemsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfUnreadItemsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfUnreadItems request with HTTP info returned + * @return ApiResponse<ViewNumberOfUnreadItemsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfUnreadItemsWithHttpInfo(apiToken, userId, customType, itemKeys); + } } /** - * View number of unread messages - * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param apiToken (required) + * View number of unread items + * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- * @param userId (required) - * @param customTypes (optional) - * @param superMode (optional) - * @return ApiResponse<ViewNumberOfUnreadMessagesResponse> + * @return viewNumberOfUnreadItemsRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewNumberOfUnreadMessagesWithHttpInfo(String apiToken, String userId, String customTypes, String superMode) throws ApiException { + public APIviewNumberOfUnreadItemsRequest viewNumberOfUnreadItems(String userId) throws ApiException { + return new APIviewNumberOfUnreadItemsRequest(userId); + } + +private ApiResponse viewNumberOfUnreadMessagesWithHttpInfo(String apiToken, String userId, String customTypes, String superMode) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2321,37 +3738,93 @@ public ApiResponse viewNumberOfUnreadMessage localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View push preferences - * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @return ViewPushPreferencesResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewPushPreferencesResponse viewPushPreferences(String apiToken, String userId) throws ApiException { - return viewPushPreferencesWithHttpInfo(apiToken, userId).getData(); + + public class APIviewNumberOfUnreadMessagesRequest { + private String apiToken; + private String userId; + private String customTypes; + private String superMode; + + private APIviewNumberOfUnreadMessagesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewNumberOfUnreadMessagesRequest + */ + public APIviewNumberOfUnreadMessagesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIviewNumberOfUnreadMessagesRequest + */ + public APIviewNumberOfUnreadMessagesRequest customTypes(String customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set superMode + * @param superMode (optional) + * @return APIviewNumberOfUnreadMessagesRequest + */ + public APIviewNumberOfUnreadMessagesRequest superMode(String superMode) { + this.superMode = superMode; + return this; + } + + /** + * Execute viewNumberOfUnreadMessages request + * @return ViewNumberOfUnreadMessagesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewNumberOfUnreadMessagesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewNumberOfUnreadMessages request with HTTP info returned + * @return ApiResponse<ViewNumberOfUnreadMessagesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewNumberOfUnreadMessagesWithHttpInfo(apiToken, userId, customTypes, superMode); + } } /** - * View push preferences - * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- - * @param apiToken (required) + * View number of unread messages + * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. * @param userId (required) - * @return ApiResponse<ViewPushPreferencesResponse> + * @return viewNumberOfUnreadMessagesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewPushPreferencesWithHttpInfo(String apiToken, String userId) throws ApiException { + public APIviewNumberOfUnreadMessagesRequest viewNumberOfUnreadMessages(String userId) throws ApiException { + return new APIviewNumberOfUnreadMessagesRequest(userId); + } + +private ApiResponse viewPushPreferencesWithHttpInfo(String apiToken, String userId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2398,39 +3871,71 @@ public ApiResponse viewPushPreferencesWithHttpInfo( localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View push preferences for a channel - * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- - * @param apiToken (required) - * @param userId (required) - * @param channelUrl (required) - * @return ViewPushPreferencesForChannelByUrlResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ViewPushPreferencesForChannelByUrlResponse viewPushPreferencesForChannelByUrl(String apiToken, String userId, String channelUrl) throws ApiException { - return viewPushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl).getData(); + + public class APIviewPushPreferencesRequest { + private String apiToken; + private String userId; + + private APIviewPushPreferencesRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewPushPreferencesRequest + */ + public APIviewPushPreferencesRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewPushPreferences request + * @return ViewPushPreferencesResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewPushPreferencesResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewPushPreferences request with HTTP info returned + * @return ApiResponse<ViewPushPreferencesResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewPushPreferencesWithHttpInfo(apiToken, userId); + } } /** - * View push preferences for a channel - * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- - * @param apiToken (required) + * View push preferences + * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- * @param userId (required) - * @param channelUrl (required) - * @return ApiResponse<ViewPushPreferencesForChannelByUrlResponse> + * @return viewPushPreferencesRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewPushPreferencesForChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl) throws ApiException { + public APIviewPushPreferencesRequest viewPushPreferences(String userId) throws ApiException { + return new APIviewPushPreferencesRequest(userId); + } + +private ApiResponse viewPushPreferencesForChannelByUrlWithHttpInfo(String apiToken, String userId, String channelUrl) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2483,43 +3988,74 @@ public ApiResponse viewPushPreferenc localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View a user - * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - * @param apiToken (required) - * @param userId (required) - * @param includeUnreadCount (optional) - * @param customTypes (optional) - * @param superMode (optional) - * @return SendBirdUser - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public SendBirdUser viewUserById(String apiToken, String userId, Boolean includeUnreadCount, String customTypes, String superMode) throws ApiException { - return viewUserByIdWithHttpInfo(apiToken, userId, includeUnreadCount, customTypes, superMode).getData(); + + public class APIviewPushPreferencesForChannelByUrlRequest { + private String apiToken; + private String userId; + private String channelUrl; + + private APIviewPushPreferencesForChannelByUrlRequest(String userId, String channelUrl) { + this.userId = userId; + this.channelUrl = channelUrl; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewPushPreferencesForChannelByUrlRequest + */ + public APIviewPushPreferencesForChannelByUrlRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Execute viewPushPreferencesForChannelByUrl request + * @return ViewPushPreferencesForChannelByUrlResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ViewPushPreferencesForChannelByUrlResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewPushPreferencesForChannelByUrl request with HTTP info returned + * @return ApiResponse<ViewPushPreferencesForChannelByUrlResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewPushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl); + } } /** - * View a user - * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - * @param apiToken (required) + * View push preferences for a channel + * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- * @param userId (required) - * @param includeUnreadCount (optional) - * @param customTypes (optional) - * @param superMode (optional) - * @return ApiResponse<SendBirdUser> + * @param channelUrl (required) + * @return viewPushPreferencesForChannelByUrlRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse viewUserByIdWithHttpInfo(String apiToken, String userId, Boolean includeUnreadCount, String customTypes, String superMode) throws ApiException { + public APIviewPushPreferencesForChannelByUrlRequest viewPushPreferencesForChannelByUrl(String userId, String channelUrl) throws ApiException { + return new APIviewPushPreferencesForChannelByUrlRequest(userId, channelUrl); + } + +private ApiResponse viewUserByIdWithHttpInfo(String apiToken, String userId, Boolean includeUnreadCount, String customTypes, String superMode) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2569,39 +4105,104 @@ public ApiResponse viewUserByIdWithHttpInfo(String apiToken, Strin localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * View who owns a registration or device token - * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- - * @param apiToken (required) - * @param tokenType (required) - * @param token (required) - * @return List<ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public List viewWhoOwnsRegistrationOrDeviceTokenByToken(String apiToken, String tokenType, String token) throws ApiException { - return viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, tokenType, token).getData(); + + public class APIviewUserByIdRequest { + private String apiToken; + private String userId; + private Boolean includeUnreadCount; + private String customTypes; + private String superMode; + + private APIviewUserByIdRequest(String userId) { + this.userId = userId; + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIviewUserByIdRequest + */ + public APIviewUserByIdRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set includeUnreadCount + * @param includeUnreadCount (optional) + * @return APIviewUserByIdRequest + */ + public APIviewUserByIdRequest includeUnreadCount(Boolean includeUnreadCount) { + this.includeUnreadCount = includeUnreadCount; + return this; + } + + /** + * Set customTypes + * @param customTypes (optional) + * @return APIviewUserByIdRequest + */ + public APIviewUserByIdRequest customTypes(String customTypes) { + this.customTypes = customTypes; + return this; + } + + /** + * Set superMode + * @param superMode (optional) + * @return APIviewUserByIdRequest + */ + public APIviewUserByIdRequest superMode(String superMode) { + this.superMode = superMode; + return this; + } + + /** + * Execute viewUserById request + * @return SendBirdUser + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public SendBirdUser execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewUserById request with HTTP info returned + * @return ApiResponse<SendBirdUser> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return viewUserByIdWithHttpInfo(apiToken, userId, includeUnreadCount, customTypes, superMode); + } } /** - * View who owns a registration or device token - * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- - * @param apiToken (required) - * @param tokenType (required) - * @param token (required) - * @return ApiResponse<List<ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner>> + * View a user + * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. + * @param userId (required) + * @return viewUserByIdRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse> viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(String apiToken, String tokenType, String token) throws ApiException { + public APIviewUserByIdRequest viewUserById(String userId) throws ApiException { + return new APIviewUserByIdRequest(userId); + } + +private ApiResponse> viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(String apiToken, String tokenType, String token) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -2654,4 +4255,70 @@ public ApiResponse + Status Code Description Response Headers + 200 Successful response - + + + */ + + public List execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute viewWhoOwnsRegistrationOrDeviceTokenByToken request with HTTP info returned + * @return ApiResponse<List<ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner>> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse> executeWithHttpInfo() throws ApiException { + return viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, tokenType, token); + } + } + + /** + * View who owns a registration or device token + * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- + * @param tokenType (required) + * @param token (required) + * @return viewWhoOwnsRegistrationOrDeviceTokenByTokenRequest + * @throws ApiException if fails to make API call + + + */ + public APIviewWhoOwnsRegistrationOrDeviceTokenByTokenRequest viewWhoOwnsRegistrationOrDeviceTokenByToken(String tokenType, String token) throws ApiException { + return new APIviewWhoOwnsRegistrationOrDeviceTokenByTokenRequest(tokenType, token); + } } diff --git a/src/main/java/org/sendbird/client/api/WebhookApi.java b/src/main/java/org/sendbird/client/api/WebhookApi.java index 8bcbf635..425143fd 100644 --- a/src/main/java/org/sendbird/client/api/WebhookApi.java +++ b/src/main/java/org/sendbird/client/api/WebhookApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class WebhookApi { private ApiClient apiClient; @@ -47,37 +47,8 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } - /** - * Choose which events to subscribe to - * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - * @param apiToken (required) - * @param chooseWhichEventsToSubscribeToData (optional) - * @return ChooseWhichEventsToSubscribeToResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ChooseWhichEventsToSubscribeToResponse chooseWhichEventsToSubscribeTo(String apiToken, ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData) throws ApiException { - return chooseWhichEventsToSubscribeToWithHttpInfo(apiToken, chooseWhichEventsToSubscribeToData).getData(); - } - /** - * Choose which events to subscribe to - * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - * @param apiToken (required) - * @param chooseWhichEventsToSubscribeToData (optional) - * @return ApiResponse<ChooseWhichEventsToSubscribeToResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public ApiResponse chooseWhichEventsToSubscribeToWithHttpInfo(String apiToken, ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData) throws ApiException { +private ApiResponse chooseWhichEventsToSubscribeToWithHttpInfo(String apiToken, ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData) throws ApiException { Object localVarPostBody = chooseWhichEventsToSubscribeToData; // verify the required parameter 'apiToken' is set @@ -118,37 +89,79 @@ public ApiResponse chooseWhichEventsToSu localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Retrieve a list of subscribed events - * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - * @param apiToken (required) - * @param displayAllWebhookCategories (optional) - * @return RetrieveListOfSubscribedEventsResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
- */ - public RetrieveListOfSubscribedEventsResponse retrieveListOfSubscribedEvents(String apiToken, Boolean displayAllWebhookCategories) throws ApiException { - return retrieveListOfSubscribedEventsWithHttpInfo(apiToken, displayAllWebhookCategories).getData(); + + public class APIchooseWhichEventsToSubscribeToRequest { + private String apiToken; + private ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData; + + private APIchooseWhichEventsToSubscribeToRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIchooseWhichEventsToSubscribeToRequest + */ + public APIchooseWhichEventsToSubscribeToRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set chooseWhichEventsToSubscribeToData + * @param chooseWhichEventsToSubscribeToData (optional) + * @return APIchooseWhichEventsToSubscribeToRequest + */ + public APIchooseWhichEventsToSubscribeToRequest chooseWhichEventsToSubscribeToData(ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData) { + this.chooseWhichEventsToSubscribeToData = chooseWhichEventsToSubscribeToData; + return this; + } + + /** + * Execute chooseWhichEventsToSubscribeTo request + * @return ChooseWhichEventsToSubscribeToResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public ChooseWhichEventsToSubscribeToResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute chooseWhichEventsToSubscribeTo request with HTTP info returned + * @return ApiResponse<ChooseWhichEventsToSubscribeToResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return chooseWhichEventsToSubscribeToWithHttpInfo(apiToken, chooseWhichEventsToSubscribeToData); + } } /** - * Retrieve a list of subscribed events - * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - * @param apiToken (required) - * @param displayAllWebhookCategories (optional) - * @return ApiResponse<RetrieveListOfSubscribedEventsResponse> + * Choose which events to subscribe to + * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to + * @return chooseWhichEventsToSubscribeToRequest * @throws ApiException if fails to make API call - * @http.response.details - - - -
Status Code Description Response Headers
200 Successful response -
+ + */ - public ApiResponse retrieveListOfSubscribedEventsWithHttpInfo(String apiToken, Boolean displayAllWebhookCategories) throws ApiException { + public APIchooseWhichEventsToSubscribeToRequest chooseWhichEventsToSubscribeTo() throws ApiException { + return new APIchooseWhichEventsToSubscribeToRequest(); + } + +private ApiResponse retrieveListOfSubscribedEventsWithHttpInfo(String apiToken, Boolean displayAllWebhookCategories) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'apiToken' is set @@ -190,4 +203,75 @@ public ApiResponse retrieveListOfSubscri localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + + public class APIretrieveListOfSubscribedEventsRequest { + private String apiToken; + private Boolean displayAllWebhookCategories; + + private APIretrieveListOfSubscribedEventsRequest() { + } + + /** + * Set apiToken + * @param apiToken (required) + * @return APIretrieveListOfSubscribedEventsRequest + */ + public APIretrieveListOfSubscribedEventsRequest apiToken(String apiToken) { + this.apiToken = apiToken; + return this; + } + + /** + * Set displayAllWebhookCategories + * @param displayAllWebhookCategories (optional) + * @return APIretrieveListOfSubscribedEventsRequest + */ + public APIretrieveListOfSubscribedEventsRequest displayAllWebhookCategories(Boolean displayAllWebhookCategories) { + this.displayAllWebhookCategories = displayAllWebhookCategories; + return this; + } + + /** + * Execute retrieveListOfSubscribedEvents request + * @return RetrieveListOfSubscribedEventsResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + + public RetrieveListOfSubscribedEventsResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute retrieveListOfSubscribedEvents request with HTTP info returned + * @return ApiResponse<RetrieveListOfSubscribedEventsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return retrieveListOfSubscribedEventsWithHttpInfo(apiToken, displayAllWebhookCategories); + } + } + + /** + * Retrieve a list of subscribed events + * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- + * @return retrieveListOfSubscribedEventsRequest + * @throws ApiException if fails to make API call + + + */ + public APIretrieveListOfSubscribedEventsRequest retrieveListOfSubscribedEvents() throws ApiException { + return new APIretrieveListOfSubscribedEventsRequest(); + } } diff --git a/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java b/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java index 94b4b9c1..92e76cdd 100644 --- a/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/sendbird/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java b/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java index b9752fab..2d45c0a0 100644 --- a/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java +++ b/src/main/java/org/sendbird/client/auth/HttpBasicAuth.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java b/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java index b92c74bb..f487ddb2 100644 --- a/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/sendbird/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-10-25T12:02:53.103168+01:00[Europe/London]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-07T15:23:06.856887Z[Europe/London]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/test/java/org/sendbird/client/api/AnnouncementApiTest.java b/src/test/java/org/sendbird/client/api/AnnouncementApiTest.java index 5dae8069..b1661c7c 100644 --- a/src/test/java/org/sendbird/client/api/AnnouncementApiTest.java +++ b/src/test/java/org/sendbird/client/api/AnnouncementApiTest.java @@ -53,7 +53,9 @@ public class AnnouncementApiTest { public void getDetailedOpenRateOfAnnouncementGroupTest() throws ApiException { //String apiToken = null; //String announcementGroup = null; - //GetDetailedOpenRateOfAnnouncementGroupResponse response = api.getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup); + //GetDetailedOpenRateOfAnnouncementGroupResponse response = api.getDetailedOpenRateOfAnnouncementGroup(announcementGroup) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -67,7 +69,9 @@ public void getDetailedOpenRateOfAnnouncementGroupTest() throws ApiException { @Test public void getStatisticsTest() throws ApiException { //String apiToken = null; - //GetStatisticsResponse response = api.getStatistics(apiToken); + //GetStatisticsResponse response = api.getStatistics() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -88,7 +92,16 @@ public void getStatisticsDailyTest() throws ApiException { //String startMonth = null; //String endMonth = null; //String announcementGroup = null; - //GetStatisticsDailyResponse response = api.getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, announcementGroup); + //GetStatisticsDailyResponse response = api.getStatisticsDaily() + // .apiToken(apiToken) + // .startDate(startDate) + // .endDate(endDate) + // .startWeek(startWeek) + // .endWeek(endWeek) + // .startMonth(startMonth) + // .endMonth(endMonth) + // .announcementGroup(announcementGroup) + // .execute(); // TODO: test validations } @@ -102,7 +115,9 @@ public void getStatisticsDailyTest() throws ApiException { @Test public void getStatisticsMonthlyTest() throws ApiException { //String apiToken = null; - //GetStatisticsMonthlyResponse response = api.getStatisticsMonthly(apiToken); + //GetStatisticsMonthlyResponse response = api.getStatisticsMonthly() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -118,7 +133,11 @@ public void listAnnouncementGroupsTest() throws ApiException { //String apiToken = null; //String token = null; //Integer limit = null; - //ListAnnouncementGroupsResponse response = api.listAnnouncementGroups(apiToken, token, limit); + //ListAnnouncementGroupsResponse response = api.listAnnouncementGroups() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -133,7 +152,10 @@ public void listAnnouncementGroupsTest() throws ApiException { public void scheduleAnnouncementTest() throws ApiException { //String apiToken = null; //ScheduleAnnouncementData scheduleAnnouncementData = null; - //ScheduleAnnouncementResponse response = api.scheduleAnnouncement(apiToken, scheduleAnnouncementData); + //ScheduleAnnouncementResponse response = api.scheduleAnnouncement() + // .apiToken(apiToken) + // .scheduleAnnouncementData(scheduleAnnouncementData) + // .execute(); // TODO: test validations } @@ -149,7 +171,10 @@ public void updateAnnouncementByIdTest() throws ApiException { //String apiToken = null; //String uniqueId = null; //UpdateAnnouncementByIdData updateAnnouncementByIdData = null; - //UpdateAnnouncementByIdResponse response = api.updateAnnouncementById(apiToken, uniqueId, updateAnnouncementByIdData); + //UpdateAnnouncementByIdResponse response = api.updateAnnouncementById(uniqueId) + // .apiToken(apiToken) + // .updateAnnouncementByIdData(updateAnnouncementByIdData) + // .execute(); // TODO: test validations } @@ -164,7 +189,9 @@ public void updateAnnouncementByIdTest() throws ApiException { public void viewAnnouncementByIdTest() throws ApiException { //String apiToken = null; //String uniqueId = null; - //ViewAnnouncementByIdResponse response = api.viewAnnouncementById(apiToken, uniqueId); + //ViewAnnouncementByIdResponse response = api.viewAnnouncementById(uniqueId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/ApplicationApiTest.java b/src/test/java/org/sendbird/client/api/ApplicationApiTest.java index fb9cc61b..9f34acd1 100644 --- a/src/test/java/org/sendbird/client/api/ApplicationApiTest.java +++ b/src/test/java/org/sendbird/client/api/ApplicationApiTest.java @@ -83,7 +83,10 @@ public class ApplicationApiTest { public void addApnsPushConfigurationTest() throws ApiException { //String apiToken = null; //AddApnsPushConfigurationData addApnsPushConfigurationData = null; - //AddApnsPushConfigurationResponse response = api.addApnsPushConfiguration(apiToken, addApnsPushConfigurationData); + //AddApnsPushConfigurationResponse response = api.addApnsPushConfiguration() + // .apiToken(apiToken) + // .addApnsPushConfigurationData(addApnsPushConfigurationData) + // .execute(); // TODO: test validations } @@ -98,7 +101,10 @@ public void addApnsPushConfigurationTest() throws ApiException { public void addFcmPushConfigurationTest() throws ApiException { //String apiToken = null; //AddFcmPushConfigurationData addFcmPushConfigurationData = null; - //AddFcmPushConfigurationResponse response = api.addFcmPushConfiguration(apiToken, addFcmPushConfigurationData); + //AddFcmPushConfigurationResponse response = api.addFcmPushConfiguration() + // .apiToken(apiToken) + // .addFcmPushConfigurationData(addFcmPushConfigurationData) + // .execute(); // TODO: test validations } @@ -113,7 +119,10 @@ public void addFcmPushConfigurationTest() throws ApiException { public void addHmsPushConfigurationTest() throws ApiException { //String apiToken = null; //AddHmsPushConfigurationData addHmsPushConfigurationData = null; - //AddHmsPushConfigurationResponse response = api.addHmsPushConfiguration(apiToken, addHmsPushConfigurationData); + //AddHmsPushConfigurationResponse response = api.addHmsPushConfiguration() + // .apiToken(apiToken) + // .addHmsPushConfigurationData(addHmsPushConfigurationData) + // .execute(); // TODO: test validations } @@ -128,7 +137,10 @@ public void addHmsPushConfigurationTest() throws ApiException { public void addIpToWhitelistTest() throws ApiException { //String apiToken = null; //AddIpToWhitelistData addIpToWhitelistData = null; - //AddIpToWhitelistResponse response = api.addIpToWhitelist(apiToken, addIpToWhitelistData); + //AddIpToWhitelistResponse response = api.addIpToWhitelist() + // .apiToken(apiToken) + // .addIpToWhitelistData(addIpToWhitelistData) + // .execute(); // TODO: test validations } @@ -144,7 +156,10 @@ public void banUsersInChannelsWithCustomChannelTypeTest() throws ApiException { //String apiToken = null; //String customType = null; //BanUsersInChannelsWithCustomChannelTypeData banUsersInChannelsWithCustomChannelTypeData = null; - //Object response = api.banUsersInChannelsWithCustomChannelType(apiToken, customType, banUsersInChannelsWithCustomChannelTypeData); + //Object response = api.banUsersInChannelsWithCustomChannelType(customType) + // .apiToken(apiToken) + // .banUsersInChannelsWithCustomChannelTypeData(banUsersInChannelsWithCustomChannelTypeData) + // .execute(); // TODO: test validations } @@ -159,7 +174,10 @@ public void banUsersInChannelsWithCustomChannelTypeTest() throws ApiException { public void configureAutoEventMessagesTest() throws ApiException { //String apiToken = null; //ConfigureAutoEventData configureAutoEventData = null; - //SendBirdAutoEventMessageSettings response = api.configureAutoEventMessages(apiToken, configureAutoEventData); + //SendBirdAutoEventMessageSettings response = api.configureAutoEventMessages() + // .apiToken(apiToken) + // .configureAutoEventData(configureAutoEventData) + // .execute(); // TODO: test validations } @@ -174,7 +192,10 @@ public void configureAutoEventMessagesTest() throws ApiException { public void deleteAllowedIpsFromWhitelistTest() throws ApiException { //String apiToken = null; //List ipWhitelistAddresses = null; - //DeleteAllowedIpsFromWhitelistResponse response = api.deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses); + //DeleteAllowedIpsFromWhitelistResponse response = api.deleteAllowedIpsFromWhitelist() + // .apiToken(apiToken) + // .ipWhitelistAddresses(ipWhitelistAddresses) + // .execute(); // TODO: test validations } @@ -189,7 +210,9 @@ public void deleteAllowedIpsFromWhitelistTest() throws ApiException { public void deleteApnsCertificateByIdTest() throws ApiException { //String apiToken = null; //String providerId = null; - //DeleteApnsCertificateByIdResponse response = api.deleteApnsCertificateById(apiToken, providerId); + //DeleteApnsCertificateByIdResponse response = api.deleteApnsCertificateById(providerId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -204,7 +227,10 @@ public void deleteApnsCertificateByIdTest() throws ApiException { public void generateSecondaryApiTokenTest() throws ApiException { //String apiToken = null; //GenerateSecondaryApiTokenData generateSecondaryApiTokenData = null; - //GenerateSecondaryApiTokenResponse response = api.generateSecondaryApiToken(apiToken, generateSecondaryApiTokenData); + //GenerateSecondaryApiTokenResponse response = api.generateSecondaryApiToken() + // .apiToken(apiToken) + // .generateSecondaryApiTokenData(generateSecondaryApiTokenData) + // .execute(); // TODO: test validations } @@ -218,7 +244,9 @@ public void generateSecondaryApiTokenTest() throws ApiException { @Test public void listAutoEventMessagesTest() throws ApiException { //String apiToken = null; - //SendBirdAutoEventMessageSettings response = api.listAutoEventMessages(apiToken); + //SendBirdAutoEventMessageSettings response = api.listAutoEventMessages() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -235,7 +263,11 @@ public void listBannedUsersInChannelsWithCustomChannelTypeTest() throws ApiExcep //String customType = null; //String token = null; //Integer limit = null; - //CustomTypeListBannedUsersResponse response = api.listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, token, limit); + //CustomTypeListBannedUsersResponse response = api.listBannedUsersInChannelsWithCustomChannelType(customType) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -252,7 +284,11 @@ public void listMutedUsersInChannelsWithCustomChannelTypeTest() throws ApiExcept //String customType = null; //String token = null; //Integer limit = null; - //ListMutedUsersInChannelsWithCustomChannelType200Response response = api.listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, token, limit); + //ListMutedUsersInChannelsWithCustomChannelType200Response response = api.listMutedUsersInChannelsWithCustomChannelType(customType) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -267,7 +303,9 @@ public void listMutedUsersInChannelsWithCustomChannelTypeTest() throws ApiExcept public void listPushConfigurationsTest() throws ApiException { //String apiToken = null; //String pushType = null; - //ListPushConfigurationsResponse response = api.listPushConfigurations(apiToken, pushType); + //ListPushConfigurationsResponse response = api.listPushConfigurations(pushType) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -281,7 +319,9 @@ public void listPushConfigurationsTest() throws ApiException { @Test public void listPushNotificationContentTemplatesTest() throws ApiException { //String apiToken = null; - //ListPushNotificationContentTemplatesResponse response = api.listPushNotificationContentTemplates(apiToken); + //ListPushNotificationContentTemplatesResponse response = api.listPushNotificationContentTemplates() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -295,7 +335,9 @@ public void listPushNotificationContentTemplatesTest() throws ApiException { @Test public void listSecondaryApiTokensTest() throws ApiException { //String apiToken = null; - //ListSecondaryApiTokensResponse response = api.listSecondaryApiTokens(apiToken); + //ListSecondaryApiTokensResponse response = api.listSecondaryApiTokens() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -311,7 +353,10 @@ public void muteUsersInChannelsWithCustomChannelTypeTest() throws ApiException { //String apiToken = null; //String customType = null; //MuteUsersInChannelsWithCustomChannelTypeData muteUsersInChannelsWithCustomChannelTypeData = null; - //Object response = api.muteUsersInChannelsWithCustomChannelType(apiToken, customType, muteUsersInChannelsWithCustomChannelTypeData); + //Object response = api.muteUsersInChannelsWithCustomChannelType(customType) + // .apiToken(apiToken) + // .muteUsersInChannelsWithCustomChannelTypeData(muteUsersInChannelsWithCustomChannelTypeData) + // .execute(); // TODO: test validations } @@ -327,7 +372,9 @@ public void removePushConfigurationByIdTest() throws ApiException { //String apiToken = null; //String pushType = null; //String providerId = null; - //RemovePushConfigurationByIdResponse response = api.removePushConfigurationById(apiToken, pushType, providerId); + //RemovePushConfigurationByIdResponse response = api.removePushConfigurationById(pushType, providerId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -341,7 +388,9 @@ public void removePushConfigurationByIdTest() throws ApiException { @Test public void retrieveIpWhitelistTest() throws ApiException { //String apiToken = null; - //RetrieveIpWhitelistResponse response = api.retrieveIpWhitelist(apiToken); + //RetrieveIpWhitelistResponse response = api.retrieveIpWhitelist() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -356,7 +405,9 @@ public void retrieveIpWhitelistTest() throws ApiException { public void revokeSecondaryApiTokenByTokenTest() throws ApiException { //String apiToken = null; //String apiToken2 = null; - //RevokeSecondaryApiTokenByTokenResponse response = api.revokeSecondaryApiTokenByToken(apiToken, apiToken2); + //RevokeSecondaryApiTokenByTokenResponse response = api.revokeSecondaryApiTokenByToken(apiToken2) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -372,7 +423,10 @@ public void setDomainFilterTest() throws ApiException { //String apiToken = null; //String customType = null; //SetDomainFilterData setDomainFilterData = null; - //SendBirdChannelResponse response = api.setDomainFilter(apiToken, customType, setDomainFilterData); + //SendBirdChannelResponse response = api.setDomainFilter(customType) + // .apiToken(apiToken) + // .setDomainFilterData(setDomainFilterData) + // .execute(); // TODO: test validations } @@ -388,7 +442,10 @@ public void unbanUsersInChannelsWithCustomChannelTypeTest() throws ApiException //String apiToken = null; //String customType = null; //List userIds = null; - //Object response = api.unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds); + //Object response = api.unbanUsersInChannelsWithCustomChannelType(customType) + // .apiToken(apiToken) + // .userIds(userIds) + // .execute(); // TODO: test validations } @@ -404,7 +461,10 @@ public void unmuteUsersInChannelsWithCustomChannelTypeTest() throws ApiException //String apiToken = null; //String customType = null; //List userIds = null; - //Object response = api.unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds); + //Object response = api.unmuteUsersInChannelsWithCustomChannelType(customType) + // .apiToken(apiToken) + // .userIds(userIds) + // .execute(); // TODO: test validations } @@ -420,7 +480,10 @@ public void updateApnsPushConfigurationByIdTest() throws ApiException { //String apiToken = null; //String providerId = null; //UpdateApnsPushConfigurationByIdData updateApnsPushConfigurationByIdData = null; - //UpdateApnsPushConfigurationByIdResponse response = api.updateApnsPushConfigurationById(apiToken, providerId, updateApnsPushConfigurationByIdData); + //UpdateApnsPushConfigurationByIdResponse response = api.updateApnsPushConfigurationById(providerId) + // .apiToken(apiToken) + // .updateApnsPushConfigurationByIdData(updateApnsPushConfigurationByIdData) + // .execute(); // TODO: test validations } @@ -435,7 +498,10 @@ public void updateApnsPushConfigurationByIdTest() throws ApiException { public void updateDefaultChannelInvitationPreferenceTest() throws ApiException { //String apiToken = null; //UpdateDefaultChannelInvitationPreferenceData updateDefaultChannelInvitationPreferenceData = null; - //UpdateDefaultChannelInvitationPreferenceResponse response = api.updateDefaultChannelInvitationPreference(apiToken, updateDefaultChannelInvitationPreferenceData); + //UpdateDefaultChannelInvitationPreferenceResponse response = api.updateDefaultChannelInvitationPreference() + // .apiToken(apiToken) + // .updateDefaultChannelInvitationPreferenceData(updateDefaultChannelInvitationPreferenceData) + // .execute(); // TODO: test validations } @@ -451,7 +517,10 @@ public void updateFcmPushConfigurationByIdTest() throws ApiException { //String apiToken = null; //String providerId = null; //UpdateFcmPushConfigurationByIdData updateFcmPushConfigurationByIdData = null; - //UpdateFcmPushConfigurationByIdResponse response = api.updateFcmPushConfigurationById(apiToken, providerId, updateFcmPushConfigurationByIdData); + //UpdateFcmPushConfigurationByIdResponse response = api.updateFcmPushConfigurationById(providerId) + // .apiToken(apiToken) + // .updateFcmPushConfigurationByIdData(updateFcmPushConfigurationByIdData) + // .execute(); // TODO: test validations } @@ -467,7 +536,10 @@ public void updateHmsPushConfigurationByIdTest() throws ApiException { //String apiToken = null; //String providerId = null; //UpdateHmsPushConfigurationByIdData updateHmsPushConfigurationByIdData = null; - //UpdateHmsPushConfigurationByIdResponse response = api.updateHmsPushConfigurationById(apiToken, providerId, updateHmsPushConfigurationByIdData); + //UpdateHmsPushConfigurationByIdResponse response = api.updateHmsPushConfigurationById(providerId) + // .apiToken(apiToken) + // .updateHmsPushConfigurationByIdData(updateHmsPushConfigurationByIdData) + // .execute(); // TODO: test validations } @@ -483,7 +555,10 @@ public void updatePushNotificationContentTemplateTest() throws ApiException { //String apiToken = null; //String templateName = null; //UpdatePushNotificationContentTemplateData updatePushNotificationContentTemplateData = null; - //UpdatePushNotificationContentTemplateResponse response = api.updatePushNotificationContentTemplate(apiToken, templateName, updatePushNotificationContentTemplateData); + //UpdatePushNotificationContentTemplateResponse response = api.updatePushNotificationContentTemplate(templateName) + // .apiToken(apiToken) + // .updatePushNotificationContentTemplateData(updatePushNotificationContentTemplateData) + // .execute(); // TODO: test validations } @@ -497,7 +572,9 @@ public void updatePushNotificationContentTemplateTest() throws ApiException { @Test public void viewDefaultChannelInvitationPreferenceTest() throws ApiException { //String apiToken = null; - //ViewDefaultChannelInvitationPreferenceResponse response = api.viewDefaultChannelInvitationPreference(apiToken); + //ViewDefaultChannelInvitationPreferenceResponse response = api.viewDefaultChannelInvitationPreference() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -513,7 +590,9 @@ public void viewPushConfigurationByIdTest() throws ApiException { //String apiToken = null; //String pushType = null; //String providerId = null; - //ViewPushConfigurationByIdResponse response = api.viewPushConfigurationById(apiToken, pushType, providerId); + //ViewPushConfigurationByIdResponse response = api.viewPushConfigurationById(pushType, providerId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -528,7 +607,9 @@ public void viewPushConfigurationByIdTest() throws ApiException { public void viewPushNotificationContentTemplateTest() throws ApiException { //String apiToken = null; //String templateName = null; - //ViewPushNotificationContentTemplateResponse response = api.viewPushNotificationContentTemplate(apiToken, templateName); + //ViewPushNotificationContentTemplateResponse response = api.viewPushNotificationContentTemplate(templateName) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -543,7 +624,9 @@ public void viewPushNotificationContentTemplateTest() throws ApiException { public void viewSecondaryApiTokenByTokenTest() throws ApiException { //String apiToken = null; //String apiToken2 = null; - //ViewSecondaryApiTokenByTokenResponse response = api.viewSecondaryApiTokenByToken(apiToken, apiToken2); + //ViewSecondaryApiTokenByTokenResponse response = api.viewSecondaryApiTokenByToken(apiToken2) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/BotApiTest.java b/src/test/java/org/sendbird/client/api/BotApiTest.java index a023683a..3e45d0b9 100644 --- a/src/test/java/org/sendbird/client/api/BotApiTest.java +++ b/src/test/java/org/sendbird/client/api/BotApiTest.java @@ -53,7 +53,10 @@ public class BotApiTest { public void createBotTest() throws ApiException { //String apiToken = null; //CreateBotData createBotData = null; - //CreateBotResponse response = api.createBot(apiToken, createBotData); + //CreateBotResponse response = api.createBot() + // .apiToken(apiToken) + // .createBotData(createBotData) + // .execute(); // TODO: test validations } @@ -68,7 +71,9 @@ public void createBotTest() throws ApiException { public void deleteBotByIdTest() throws ApiException { //String apiToken = null; //String botUserid = null; - //Object response = api.deleteBotById(apiToken, botUserid); + //Object response = api.deleteBotById(botUserid) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -84,7 +89,10 @@ public void joinChannelsTest() throws ApiException { //String apiToken = null; //String botUserid = null; //JoinChannelsData joinChannelsData = null; - //JoinChannelsResponse response = api.joinChannels(apiToken, botUserid, joinChannelsData); + //JoinChannelsResponse response = api.joinChannels(botUserid) + // .apiToken(apiToken) + // .joinChannelsData(joinChannelsData) + // .execute(); // TODO: test validations } @@ -100,7 +108,10 @@ public void leaveChannelsTest() throws ApiException { //String apiToken = null; //String botUserid = null; //String channelUrl = null; - //api.leaveChannels(apiToken, botUserid, channelUrl); + //api.leaveChannels(botUserid) + // .apiToken(apiToken) + // .channelUrl(channelUrl) + // .execute(); // TODO: test validations } @@ -116,7 +127,9 @@ public void leaveChannelsByUrlTest() throws ApiException { //String apiToken = null; //String botUserid = null; //String channelUrl = null; - //Object response = api.leaveChannelsByUrl(apiToken, botUserid, channelUrl); + //Object response = api.leaveChannelsByUrl(botUserid, channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -132,7 +145,11 @@ public void listBotsTest() throws ApiException { //String apiToken = null; //String token = null; //Integer limit = null; - //ListBotsResponse response = api.listBots(apiToken, token, limit); + //ListBotsResponse response = api.listBots() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -148,7 +165,10 @@ public void sendBotsMessageTest() throws ApiException { //String apiToken = null; //String botUserid = null; //SendBotSMessageData sendBotSMessageData = null; - //SendBirdMessageResponse response = api.sendBotsMessage(apiToken, botUserid, sendBotSMessageData); + //SendBirdMessageResponse response = api.sendBotsMessage(botUserid) + // .apiToken(apiToken) + // .sendBotSMessageData(sendBotSMessageData) + // .execute(); // TODO: test validations } @@ -164,7 +184,10 @@ public void updateBotByIdTest() throws ApiException { //String apiToken = null; //String botUserid = null; //UpdateBotByIdData updateBotByIdData = null; - //UpdateBotByIdResponse response = api.updateBotById(apiToken, botUserid, updateBotByIdData); + //UpdateBotByIdResponse response = api.updateBotById(botUserid) + // .apiToken(apiToken) + // .updateBotByIdData(updateBotByIdData) + // .execute(); // TODO: test validations } @@ -179,7 +202,9 @@ public void updateBotByIdTest() throws ApiException { public void viewBotByIdTest() throws ApiException { //String apiToken = null; //String botUserid = null; - //ViewBotByIdResponse response = api.viewBotById(apiToken, botUserid); + //ViewBotByIdResponse response = api.viewBotById(botUserid) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/DataExportApiTest.java b/src/test/java/org/sendbird/client/api/DataExportApiTest.java index ca8a4b70..ebf8aa4f 100644 --- a/src/test/java/org/sendbird/client/api/DataExportApiTest.java +++ b/src/test/java/org/sendbird/client/api/DataExportApiTest.java @@ -49,7 +49,11 @@ public void listDataExportsByMessageChannelOrUserTest() throws ApiException { //String dataType = null; //String token = null; //Integer limit = null; - //ListDataExportsByMessageChannelOrUserResponse response = api.listDataExportsByMessageChannelOrUser(apiToken, dataType, token, limit); + //ListDataExportsByMessageChannelOrUserResponse response = api.listDataExportsByMessageChannelOrUser(dataType) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -65,7 +69,10 @@ public void registerAndScheduleDataExportTest() throws ApiException { //String apiToken = null; //String dataType = null; //RegisterAndScheduleDataExportData registerAndScheduleDataExportData = null; - //RegisterAndScheduleDataExportResponse response = api.registerAndScheduleDataExport(apiToken, dataType, registerAndScheduleDataExportData); + //RegisterAndScheduleDataExportResponse response = api.registerAndScheduleDataExport(dataType) + // .apiToken(apiToken) + // .registerAndScheduleDataExportData(registerAndScheduleDataExportData) + // .execute(); // TODO: test validations } @@ -81,7 +88,9 @@ public void viewDataExportByIdTest() throws ApiException { //String apiToken = null; //String dataType = null; //String requestId = null; - //ViewDataExportByIdResponse response = api.viewDataExportById(apiToken, dataType, requestId); + //ViewDataExportByIdResponse response = api.viewDataExportById(dataType, requestId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java b/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java index 6ab70df9..a443088f 100644 --- a/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java +++ b/src/test/java/org/sendbird/client/api/GroupChannelApiTest.java @@ -62,7 +62,10 @@ public void gcAcceptInvitationTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcAcceptInvitationData gcAcceptInvitationData = null; - //SendBirdGroupChannel response = api.gcAcceptInvitation(apiToken, channelUrl, gcAcceptInvitationData); + //SendBirdGroupChannel response = api.gcAcceptInvitation(channelUrl) + // .apiToken(apiToken) + // .gcAcceptInvitationData(gcAcceptInvitationData) + // .execute(); // TODO: test validations } @@ -79,7 +82,11 @@ public void gcCancelTheRegistrationOfOperatorsTest() throws ApiException { //String channelUrl = null; //List operatorIds = null; //Boolean deleteAll = null; - //OcDeleteChannelByUrl200Response response = api.gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, deleteAll); + //OcDeleteChannelByUrl200Response response = api.gcCancelTheRegistrationOfOperators(channelUrl) + // .apiToken(apiToken) + // .operatorIds(operatorIds) + // .deleteAll(deleteAll) + // .execute(); // TODO: test validations } @@ -95,7 +102,9 @@ public void gcCheckIfMemberByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String userId = null; - //GcCheckIfMemberByIdResponse response = api.gcCheckIfMemberById(apiToken, channelUrl, userId); + //GcCheckIfMemberByIdResponse response = api.gcCheckIfMemberById(channelUrl, userId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -110,7 +119,10 @@ public void gcCheckIfMemberByIdTest() throws ApiException { public void gcCreateChannelTest() throws ApiException { //String apiToken = null; //GcCreateChannelData gcCreateChannelData = null; - //SendBirdGroupChannel response = api.gcCreateChannel(apiToken, gcCreateChannelData); + //SendBirdGroupChannel response = api.gcCreateChannel() + // .apiToken(apiToken) + // .gcCreateChannelData(gcCreateChannelData) + // .execute(); // TODO: test validations } @@ -126,7 +138,10 @@ public void gcDeclineInvitationTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcDeclineInvitationData gcDeclineInvitationData = null; - //OcDeleteChannelByUrl200Response response = api.gcDeclineInvitation(apiToken, channelUrl, gcDeclineInvitationData); + //OcDeleteChannelByUrl200Response response = api.gcDeclineInvitation(channelUrl) + // .apiToken(apiToken) + // .gcDeclineInvitationData(gcDeclineInvitationData) + // .execute(); // TODO: test validations } @@ -141,7 +156,9 @@ public void gcDeclineInvitationTest() throws ApiException { public void gcDeleteChannelByUrlTest() throws ApiException { //String apiToken = null; //String channelUrl = null; - //OcDeleteChannelByUrl200Response response = api.gcDeleteChannelByUrl(apiToken, channelUrl); + //OcDeleteChannelByUrl200Response response = api.gcDeleteChannelByUrl(channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -157,7 +174,10 @@ public void gcHideOrArchiveChannelTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcHideOrArchiveChannelData gcHideOrArchiveChannelData = null; - //OcDeleteChannelByUrl200Response response = api.gcHideOrArchiveChannel(apiToken, channelUrl, gcHideOrArchiveChannelData); + //OcDeleteChannelByUrl200Response response = api.gcHideOrArchiveChannel(channelUrl) + // .apiToken(apiToken) + // .gcHideOrArchiveChannelData(gcHideOrArchiveChannelData) + // .execute(); // TODO: test validations } @@ -173,7 +193,10 @@ public void gcInviteAsMembersTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcInviteAsMembersData gcInviteAsMembersData = null; - //SendBirdGroupChannel response = api.gcInviteAsMembers(apiToken, channelUrl, gcInviteAsMembersData); + //SendBirdGroupChannel response = api.gcInviteAsMembers(channelUrl) + // .apiToken(apiToken) + // .gcInviteAsMembersData(gcInviteAsMembersData) + // .execute(); // TODO: test validations } @@ -189,7 +212,10 @@ public void gcJoinChannelTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcJoinChannelData gcJoinChannelData = null; - //api.gcJoinChannel(apiToken, channelUrl, gcJoinChannelData); + //api.gcJoinChannel(channelUrl) + // .apiToken(apiToken) + // .gcJoinChannelData(gcJoinChannelData) + // .execute(); // TODO: test validations } @@ -205,7 +231,10 @@ public void gcLeaveChannelTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcLeaveChannelData gcLeaveChannelData = null; - //OcDeleteChannelByUrl200Response response = api.gcLeaveChannel(apiToken, channelUrl, gcLeaveChannelData); + //OcDeleteChannelByUrl200Response response = api.gcLeaveChannel(channelUrl) + // .apiToken(apiToken) + // .gcLeaveChannelData(gcLeaveChannelData) + // .execute(); // TODO: test validations } @@ -261,7 +290,51 @@ public void gcListChannelsTest() throws ApiException { //Boolean isDistinct = null; //String membersIn = null; //String userId = null; - //GcListChannelsResponse response = api.gcListChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, customType, readReceipt, member, isDistinct, membersIn, userId); + //GcListChannelsResponse response = api.gcListChannels() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .distinctMode(distinctMode) + // .publicMode(publicMode) + // .superMode(superMode) + // .createdAfter(createdAfter) + // .createdBefore(createdBefore) + // .showEmpty(showEmpty) + // .showMember(showMember) + // .showDeliveryReceipt(showDeliveryReceipt) + // .showReadReceipt(showReadReceipt) + // .showMetadata(showMetadata) + // .showFrozen(showFrozen) + // .order(order) + // .metadataOrderKey(metadataOrderKey) + // .customTypes(customTypes) + // .customTypeStartswith(customTypeStartswith) + // .channelUrls(channelUrls) + // .name(name) + // .nameContains(nameContains) + // .nameStartswith(nameStartswith) + // .membersExactlyIn(membersExactlyIn) + // .membersIncludeIn(membersIncludeIn) + // .queryType(queryType) + // .membersNickname(membersNickname) + // .membersNicknameContains(membersNicknameContains) + // .metadataKey(metadataKey) + // .metadataValues(metadataValues) + // .metadataValueStartswith(metadataValueStartswith) + // .metacounterKey(metacounterKey) + // .metacounterValues(metacounterValues) + // .metacounterValueGt(metacounterValueGt) + // .metacounterValueGte(metacounterValueGte) + // .metacounterValueLt(metacounterValueLt) + // .metacounterValueLte(metacounterValueLte) + // .includeSortedMetaarrayInLastMessage(includeSortedMetaarrayInLastMessage) + // .customType(customType) + // .readReceipt(readReceipt) + // .member(member) + // .isDistinct(isDistinct) + // .membersIn(membersIn) + // .userId(userId) + // .execute(); // TODO: test validations } @@ -285,7 +358,18 @@ public void gcListMembersTest() throws ApiException { //String memberStateFilter = null; //String mutedMemberFilter = null; //String nicknameStartswith = null; - //GcListMembersResponse response = api.gcListMembers(apiToken, channelUrl, token, limit, showDeliveryReceipt, showReadReceipt, order, operatorFilter, memberStateFilter, mutedMemberFilter, nicknameStartswith); + //GcListMembersResponse response = api.gcListMembers(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .showDeliveryReceipt(showDeliveryReceipt) + // .showReadReceipt(showReadReceipt) + // .order(order) + // .operatorFilter(operatorFilter) + // .memberStateFilter(memberStateFilter) + // .mutedMemberFilter(mutedMemberFilter) + // .nicknameStartswith(nicknameStartswith) + // .execute(); // TODO: test validations } @@ -302,7 +386,11 @@ public void gcListOperatorsTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //GcListOperatorsResponse response = api.gcListOperators(apiToken, channelUrl, token, limit); + //GcListOperatorsResponse response = api.gcListOperators(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -318,7 +406,10 @@ public void gcRegisterOperatorsTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcRegisterOperatorsData gcRegisterOperatorsData = null; - //GcRegisterOperatorsResponse response = api.gcRegisterOperators(apiToken, channelUrl, gcRegisterOperatorsData); + //GcRegisterOperatorsResponse response = api.gcRegisterOperators(channelUrl) + // .apiToken(apiToken) + // .gcRegisterOperatorsData(gcRegisterOperatorsData) + // .execute(); // TODO: test validations } @@ -334,7 +425,10 @@ public void gcResetChatHistoryTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcResetChatHistoryData gcResetChatHistoryData = null; - //GcResetChatHistoryResponse response = api.gcResetChatHistory(apiToken, channelUrl, gcResetChatHistoryData); + //GcResetChatHistoryResponse response = api.gcResetChatHistory(channelUrl) + // .apiToken(apiToken) + // .gcResetChatHistoryData(gcResetChatHistoryData) + // .execute(); // TODO: test validations } @@ -351,7 +445,11 @@ public void gcUnhideOrUnarchiveChannelTest() throws ApiException { //String channelUrl = null; //String userId = null; //Boolean shouldUnhideAll = null; - //OcDeleteChannelByUrl200Response response = api.gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, shouldUnhideAll); + //OcDeleteChannelByUrl200Response response = api.gcUnhideOrUnarchiveChannel(channelUrl) + // .apiToken(apiToken) + // .userId(userId) + // .shouldUnhideAll(shouldUnhideAll) + // .execute(); // TODO: test validations } @@ -367,7 +465,10 @@ public void gcUpdateChannelByUrlTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcUpdateChannelByUrlData gcUpdateChannelByUrlData = null; - //SendBirdGroupChannel response = api.gcUpdateChannelByUrl(apiToken, channelUrl, gcUpdateChannelByUrlData); + //SendBirdGroupChannel response = api.gcUpdateChannelByUrl(channelUrl) + // .apiToken(apiToken) + // .gcUpdateChannelByUrlData(gcUpdateChannelByUrlData) + // .execute(); // TODO: test validations } @@ -387,7 +488,14 @@ public void gcViewChannelByUrlTest() throws ApiException { //Boolean showMember = null; //Boolean readReceipt = null; //Boolean member = null; - //SendBirdGroupChannel response = api.gcViewChannelByUrl(apiToken, channelUrl, showDeliveryReceipt, showReadReceipt, showMember, readReceipt, member); + //SendBirdGroupChannel response = api.gcViewChannelByUrl(channelUrl) + // .apiToken(apiToken) + // .showDeliveryReceipt(showDeliveryReceipt) + // .showReadReceipt(showReadReceipt) + // .showMember(showMember) + // .readReceipt(readReceipt) + // .member(member) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/MessageApiTest.java b/src/test/java/org/sendbird/client/api/MessageApiTest.java index 7fd95233..cccbef44 100644 --- a/src/test/java/org/sendbird/client/api/MessageApiTest.java +++ b/src/test/java/org/sendbird/client/api/MessageApiTest.java @@ -75,7 +75,10 @@ public class MessageApiTest { public void addEmojiCategoriesTest() throws ApiException { //String apiToken = null; //Object body = null; - //AddEmojiCategoriesResponse response = api.addEmojiCategories(apiToken, body); + //AddEmojiCategoriesResponse response = api.addEmojiCategories() + // .apiToken(apiToken) + // .body(body) + // .execute(); // TODO: test validations } @@ -90,7 +93,10 @@ public void addEmojiCategoriesTest() throws ApiException { public void addEmojisTest() throws ApiException { //String apiToken = null; //AddEmojisData addEmojisData = null; - //AddEmojisResponse response = api.addEmojis(apiToken, addEmojisData); + //AddEmojisResponse response = api.addEmojis() + // .apiToken(apiToken) + // .addEmojisData(addEmojisData) + // .execute(); // TODO: test validations } @@ -108,7 +114,10 @@ public void addExtraDataToMessageTest() throws ApiException { //String channelUrl = null; //String messageId = null; //AddExtraDataToMessageData addExtraDataToMessageData = null; - //AddExtraDataToMessageResponse response = api.addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, addExtraDataToMessageData); + //AddExtraDataToMessageResponse response = api.addExtraDataToMessage(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .addExtraDataToMessageData(addExtraDataToMessageData) + // .execute(); // TODO: test validations } @@ -126,7 +135,10 @@ public void addReactionToAMessageTest() throws ApiException { //String channelUrl = null; //String messageId = null; //AddReactionToAMessageData addReactionToAMessageData = null; - //AddReactionToAMessageResponse response = api.addReactionToAMessage(apiToken, channelType, channelUrl, messageId, addReactionToAMessageData); + //AddReactionToAMessageResponse response = api.addReactionToAMessage(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .addReactionToAMessageData(addReactionToAMessageData) + // .execute(); // TODO: test validations } @@ -141,7 +153,9 @@ public void addReactionToAMessageTest() throws ApiException { public void deleteEmojiByKeyTest() throws ApiException { //String apiToken = null; //String emojiKey = null; - //api.deleteEmojiByKey(apiToken, emojiKey); + //api.deleteEmojiByKey(emojiKey) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -156,7 +170,9 @@ public void deleteEmojiByKeyTest() throws ApiException { public void deleteEmojiCategoryByIdTest() throws ApiException { //String apiToken = null; //String emojiCategoryId = null; - //Object response = api.deleteEmojiCategoryById(apiToken, emojiCategoryId); + //Object response = api.deleteEmojiCategoryById(emojiCategoryId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -173,7 +189,9 @@ public void deleteMessageByIdTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String messageId = null; - //Object response = api.deleteMessageById(apiToken, channelType, channelUrl, messageId); + //Object response = api.deleteMessageById(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -188,7 +206,10 @@ public void deleteMessageByIdTest() throws ApiException { public void enableReactionsTest() throws ApiException { //String apiToken = null; //EnableReactionsData enableReactionsData = null; - //EnableReactionsResponse response = api.enableReactions(apiToken, enableReactionsData); + //EnableReactionsResponse response = api.enableReactions() + // .apiToken(apiToken) + // .enableReactionsData(enableReactionsData) + // .execute(); // TODO: test validations } @@ -204,7 +225,10 @@ public void gcMarkAllMessagesAsDeliveredTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcMarkAllMessagesAsDeliveredData gcMarkAllMessagesAsDeliveredData = null; - //GcMarkAllMessagesAsDeliveredResponse response = api.gcMarkAllMessagesAsDelivered(apiToken, channelUrl, gcMarkAllMessagesAsDeliveredData); + //GcMarkAllMessagesAsDeliveredResponse response = api.gcMarkAllMessagesAsDelivered(channelUrl) + // .apiToken(apiToken) + // .gcMarkAllMessagesAsDeliveredData(gcMarkAllMessagesAsDeliveredData) + // .execute(); // TODO: test validations } @@ -220,7 +244,10 @@ public void gcMarkAllMessagesAsReadTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcMarkAllMessagesAsReadData gcMarkAllMessagesAsReadData = null; - //Object response = api.gcMarkAllMessagesAsRead(apiToken, channelUrl, gcMarkAllMessagesAsReadData); + //Object response = api.gcMarkAllMessagesAsRead(channelUrl) + // .apiToken(apiToken) + // .gcMarkAllMessagesAsReadData(gcMarkAllMessagesAsReadData) + // .execute(); // TODO: test validations } @@ -236,7 +263,10 @@ public void gcViewNumberOfEachMembersUnreadMessagesTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String userIds = null; - //GcViewNumberOfEachMembersUnreadMessagesResponse response = api.gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, userIds); + //GcViewNumberOfEachMembersUnreadMessagesResponse response = api.gcViewNumberOfEachMembersUnreadMessages(channelUrl) + // .apiToken(apiToken) + // .userIds(userIds) + // .execute(); // TODO: test validations } @@ -251,7 +281,9 @@ public void gcViewNumberOfEachMembersUnreadMessagesTest() throws ApiException { public void getEmojiByKeyTest() throws ApiException { //String apiToken = null; //String emojiKey = null; - //SendBirdEmoji response = api.getEmojiByKey(apiToken, emojiKey); + //SendBirdEmoji response = api.getEmojiByKey(emojiKey) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -266,7 +298,9 @@ public void getEmojiByKeyTest() throws ApiException { public void getEmojiCategoryByIdTest() throws ApiException { //String apiToken = null; //String emojiCategoryId = null; - //SendBirdEmojiCategory response = api.getEmojiCategoryById(apiToken, emojiCategoryId); + //SendBirdEmojiCategory response = api.getEmojiCategoryById(emojiCategoryId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -280,7 +314,9 @@ public void getEmojiCategoryByIdTest() throws ApiException { @Test public void listAllEmojisAndEmojiCategoriesTest() throws ApiException { //String apiToken = null; - //ListAllEmojisAndEmojiCategoriesResponse response = api.listAllEmojisAndEmojiCategories(apiToken); + //ListAllEmojisAndEmojiCategoriesResponse response = api.listAllEmojisAndEmojiCategories() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -299,7 +335,14 @@ public void listAnnouncementsTest() throws ApiException { //String order = null; //String status = null; //String announcementGroup = null; - //ListAnnouncementsResponse response = api.listAnnouncements(apiToken, token, limit, order, status, announcementGroup); + //ListAnnouncementsResponse response = api.listAnnouncements() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .order(order) + // .status(status) + // .announcementGroup(announcementGroup) + // .execute(); // TODO: test validations } @@ -313,7 +356,9 @@ public void listAnnouncementsTest() throws ApiException { @Test public void listEmojisTest() throws ApiException { //String apiToken = null; - //ListEmojisResponse response = api.listEmojis(apiToken); + //ListEmojisResponse response = api.listEmojis() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -347,7 +392,27 @@ public void listMessagesTest() throws ApiException { //String userId = null; //String customType = null; //Boolean withMetaArray = null; - //ListMessagesResponse response = api.listMessages(apiToken, channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, withSortedMetaArray, showSubchannelMessagesOnly, userId, customType, withMetaArray); + //ListMessagesResponse response = api.listMessages(channelType, channelUrl) + // .apiToken(apiToken) + // .messageTs(messageTs) + // .messageId(messageId) + // .prevLimit(prevLimit) + // .nextLimit(nextLimit) + // .include(include) + // .reverse(reverse) + // .senderId(senderId) + // .senderIds(senderIds) + // .operatorFilter(operatorFilter) + // .customTypes(customTypes) + // .messageType(messageType) + // .includingRemoved(includingRemoved) + // .includeReactions(includeReactions) + // .withSortedMetaArray(withSortedMetaArray) + // .showSubchannelMessagesOnly(showSubchannelMessagesOnly) + // .userId(userId) + // .customType(customType) + // .withMetaArray(withMetaArray) + // .execute(); // TODO: test validations } @@ -365,7 +430,10 @@ public void listReactionsOfMessageTest() throws ApiException { //String channelUrl = null; //String messageId = null; //Boolean listUsers = null; - //ListReactionsOfMessageResponse response = api.listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, listUsers); + //ListReactionsOfMessageResponse response = api.listReactionsOfMessage(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .listUsers(listUsers) + // .execute(); // TODO: test validations } @@ -381,7 +449,10 @@ public void migrateMessagesByUrlTest() throws ApiException { //String apiToken = null; //String targetChannelUrl = null; //Object body = null; - //api.migrateMessagesByUrl(apiToken, targetChannelUrl, body); + //api.migrateMessagesByUrl(targetChannelUrl) + // .apiToken(apiToken) + // .body(body) + // .execute(); // TODO: test validations } @@ -399,7 +470,10 @@ public void removeExtraDataFromMessageTest() throws ApiException { //String channelUrl = null; //String messageId = null; //List keys = null; - //Object response = api.removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, keys); + //Object response = api.removeExtraDataFromMessage(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .keys(keys) + // .execute(); // TODO: test validations } @@ -418,7 +492,11 @@ public void removeReactionFromAMessageTest() throws ApiException { //String messageId = null; //String userId = null; //String reaction = null; - //RemoveReactionFromAMessageResponse response = api.removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, userId, reaction); + //RemoveReactionFromAMessageResponse response = api.removeReactionFromAMessage(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .userId(userId) + // .reaction(reaction) + // .execute(); // TODO: test validations } @@ -435,7 +513,10 @@ public void sendMessageTest() throws ApiException { //String channelType = null; //String channelUrl = null; //SendMessageData sendMessageData = null; - //SendBirdMessageResponse response = api.sendMessage(apiToken, channelType, channelUrl, sendMessageData); + //SendBirdMessageResponse response = api.sendMessage(channelType, channelUrl) + // .apiToken(apiToken) + // .sendMessageData(sendMessageData) + // .execute(); // TODO: test validations } @@ -453,7 +534,10 @@ public void translateMessageIntoOtherLanguagesTest() throws ApiException { //String channelUrl = null; //String messageId = null; //TranslateMessageIntoOtherLanguagesData translateMessageIntoOtherLanguagesData = null; - //SendBirdMessageResponse response = api.translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, translateMessageIntoOtherLanguagesData); + //SendBirdMessageResponse response = api.translateMessageIntoOtherLanguages(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .translateMessageIntoOtherLanguagesData(translateMessageIntoOtherLanguagesData) + // .execute(); // TODO: test validations } @@ -469,7 +553,10 @@ public void updateEmojiCategoryUrlByIdTest() throws ApiException { //String apiToken = null; //String emojiCategoryId = null; //UpdateEmojiCategoryUrlByIdData updateEmojiCategoryUrlByIdData = null; - //SendBirdEmojiCategory response = api.updateEmojiCategoryUrlById(apiToken, emojiCategoryId, updateEmojiCategoryUrlByIdData); + //SendBirdEmojiCategory response = api.updateEmojiCategoryUrlById(emojiCategoryId) + // .apiToken(apiToken) + // .updateEmojiCategoryUrlByIdData(updateEmojiCategoryUrlByIdData) + // .execute(); // TODO: test validations } @@ -485,7 +572,10 @@ public void updateEmojiUrlByKeyTest() throws ApiException { //String apiToken = null; //String emojiKey = null; //UpdateEmojiUrlByKeyData updateEmojiUrlByKeyData = null; - //SendBirdEmoji response = api.updateEmojiUrlByKey(apiToken, emojiKey, updateEmojiUrlByKeyData); + //SendBirdEmoji response = api.updateEmojiUrlByKey(emojiKey) + // .apiToken(apiToken) + // .updateEmojiUrlByKeyData(updateEmojiUrlByKeyData) + // .execute(); // TODO: test validations } @@ -503,7 +593,10 @@ public void updateExtraDataInMessageTest() throws ApiException { //String channelUrl = null; //String messageId = null; //UpdateExtraDataInMessageData updateExtraDataInMessageData = null; - //UpdateExtraDataInMessageResponse response = api.updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, updateExtraDataInMessageData); + //UpdateExtraDataInMessageResponse response = api.updateExtraDataInMessage(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .updateExtraDataInMessageData(updateExtraDataInMessageData) + // .execute(); // TODO: test validations } @@ -521,7 +614,10 @@ public void updateMessageByIdTest() throws ApiException { //String channelUrl = null; //String messageId = null; //UpdateMessageByIdData updateMessageByIdData = null; - //SendBirdMessageResponse response = api.updateMessageById(apiToken, channelType, channelUrl, messageId, updateMessageByIdData); + //SendBirdMessageResponse response = api.updateMessageById(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .updateMessageByIdData(updateMessageByIdData) + // .execute(); // TODO: test validations } @@ -536,7 +632,10 @@ public void updateMessageByIdTest() throws ApiException { public void useDefaultEmojisTest() throws ApiException { //String apiToken = null; //UseDefaultEmojisData useDefaultEmojisData = null; - //UseDefaultEmojisResponse response = api.useDefaultEmojis(apiToken, useDefaultEmojisData); + //UseDefaultEmojisResponse response = api.useDefaultEmojis() + // .apiToken(apiToken) + // .useDefaultEmojisData(useDefaultEmojisData) + // .execute(); // TODO: test validations } @@ -555,7 +654,11 @@ public void viewMessageByIdTest() throws ApiException { //String messageId = null; //Boolean withSortedMetaArray = null; //Boolean withMetaArray = null; - //SendBirdMessageResponse response = api.viewMessageById(apiToken, channelType, channelUrl, messageId, withSortedMetaArray, withMetaArray); + //SendBirdMessageResponse response = api.viewMessageById(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .withSortedMetaArray(withSortedMetaArray) + // .withMetaArray(withMetaArray) + // .execute(); // TODO: test validations } @@ -571,7 +674,9 @@ public void viewTotalNumberOfMessagesInChannelTest() throws ApiException { //String apiToken = null; //String channelType = null; //String channelUrl = null; - //ViewTotalNumberOfMessagesInChannelResponse response = api.viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl); + //ViewTotalNumberOfMessagesInChannelResponse response = api.viewTotalNumberOfMessagesInChannel(channelType, channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/MetadataApiTest.java b/src/test/java/org/sendbird/client/api/MetadataApiTest.java index c9c231e4..fc50ff2d 100644 --- a/src/test/java/org/sendbird/client/api/MetadataApiTest.java +++ b/src/test/java/org/sendbird/client/api/MetadataApiTest.java @@ -55,7 +55,10 @@ public void createChannelMetacounterTest() throws ApiException { //String channelType = null; //String channelUrl = null; //CreateChannelMetacounterData createChannelMetacounterData = null; - //Object response = api.createChannelMetacounter(apiToken, channelType, channelUrl, createChannelMetacounterData); + //Object response = api.createChannelMetacounter(channelType, channelUrl) + // .apiToken(apiToken) + // .createChannelMetacounterData(createChannelMetacounterData) + // .execute(); // TODO: test validations } @@ -72,7 +75,10 @@ public void createChannelMetadataTest() throws ApiException { //String channelType = null; //String channelUrl = null; //CreateChannelMetadataData createChannelMetadataData = null; - //CreateChannelMetadataResponse response = api.createChannelMetadata(apiToken, channelType, channelUrl, createChannelMetadataData); + //CreateChannelMetadataResponse response = api.createChannelMetadata(channelType, channelUrl) + // .apiToken(apiToken) + // .createChannelMetadataData(createChannelMetadataData) + // .execute(); // TODO: test validations } @@ -88,7 +94,10 @@ public void createUserMetadataTest() throws ApiException { //String apiToken = null; //String userId = null; //CreateUserMetadataData createUserMetadataData = null; - //CreateUserMetadataResponse response = api.createUserMetadata(apiToken, userId, createUserMetadataData); + //CreateUserMetadataResponse response = api.createUserMetadata(userId) + // .apiToken(apiToken) + // .createUserMetadataData(createUserMetadataData) + // .execute(); // TODO: test validations } @@ -104,7 +113,9 @@ public void deleteChannelMetacounterTest() throws ApiException { //String apiToken = null; //String channelType = null; //String channelUrl = null; - //api.deleteChannelMetacounter(apiToken, channelType, channelUrl); + //api.deleteChannelMetacounter(channelType, channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -121,7 +132,9 @@ public void deleteChannelMetacounterByKeyTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String key = null; - //api.deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key); + //api.deleteChannelMetacounterByKey(channelType, channelUrl, key) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -138,7 +151,10 @@ public void deleteChannelMetadataTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String key = null; - //api.deleteChannelMetadata(apiToken, channelType, channelUrl, key); + //api.deleteChannelMetadata(channelType, channelUrl) + // .apiToken(apiToken) + // .key(key) + // .execute(); // TODO: test validations } @@ -155,7 +171,9 @@ public void deleteChannelMetadataByKeyTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String key = null; - //api.deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key); + //api.deleteChannelMetadataByKey(channelType, channelUrl, key) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -171,7 +189,10 @@ public void deleteUserMetadataTest() throws ApiException { //String apiToken = null; //String userId = null; //String key = null; - //api.deleteUserMetadata(apiToken, userId, key); + //api.deleteUserMetadata(userId) + // .apiToken(apiToken) + // .key(key) + // .execute(); // TODO: test validations } @@ -187,7 +208,9 @@ public void deleteUserMetadataByKeyTest() throws ApiException { //String apiToken = null; //String userId = null; //String key = null; - //api.deleteUserMetadataByKey(apiToken, userId, key); + //api.deleteUserMetadataByKey(userId, key) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -204,7 +227,10 @@ public void updateChannelMetacounterTest() throws ApiException { //String channelType = null; //String channelUrl = null; //UpdateChannelMetacounterData updateChannelMetacounterData = null; - //Object response = api.updateChannelMetacounter(apiToken, channelType, channelUrl, updateChannelMetacounterData); + //Object response = api.updateChannelMetacounter(channelType, channelUrl) + // .apiToken(apiToken) + // .updateChannelMetacounterData(updateChannelMetacounterData) + // .execute(); // TODO: test validations } @@ -222,7 +248,10 @@ public void updateChannelMetacounterByKeyTest() throws ApiException { //String channelUrl = null; //String key = null; //Object body = null; - //Map response = api.updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, body); + //Map response = api.updateChannelMetacounterByKey(channelType, channelUrl, key) + // .apiToken(apiToken) + // .body(body) + // .execute(); // TODO: test validations } @@ -239,7 +268,10 @@ public void updateChannelMetadataTest() throws ApiException { //String channelType = null; //String channelUrl = null; //UpdateChannelMetadataData updateChannelMetadataData = null; - //Map response = api.updateChannelMetadata(apiToken, channelType, channelUrl, updateChannelMetadataData); + //Map response = api.updateChannelMetadata(channelType, channelUrl) + // .apiToken(apiToken) + // .updateChannelMetadataData(updateChannelMetadataData) + // .execute(); // TODO: test validations } @@ -257,7 +289,10 @@ public void updateChannelMetadataByKeyTest() throws ApiException { //String channelUrl = null; //String key = null; //Object body = null; - //Map response = api.updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, body); + //Map response = api.updateChannelMetadataByKey(channelType, channelUrl, key) + // .apiToken(apiToken) + // .body(body) + // .execute(); // TODO: test validations } @@ -273,7 +308,10 @@ public void updateUserMetadataTest() throws ApiException { //String apiToken = null; //String userId = null; //UpdateUserMetadataData updateUserMetadataData = null; - //UpdateUserMetadataResponse response = api.updateUserMetadata(apiToken, userId, updateUserMetadataData); + //UpdateUserMetadataResponse response = api.updateUserMetadata(userId) + // .apiToken(apiToken) + // .updateUserMetadataData(updateUserMetadataData) + // .execute(); // TODO: test validations } @@ -290,7 +328,10 @@ public void updateUserMetadataByKeyTest() throws ApiException { //String userId = null; //String key = null; //Object body = null; - //Map response = api.updateUserMetadataByKey(apiToken, userId, key, body); + //Map response = api.updateUserMetadataByKey(userId, key) + // .apiToken(apiToken) + // .body(body) + // .execute(); // TODO: test validations } @@ -308,7 +349,11 @@ public void viewChannelMetacounterTest() throws ApiException { //String channelUrl = null; //String key = null; //List keys = null; - //Map response = api.viewChannelMetacounter(apiToken, channelType, channelUrl, key, keys); + //Map response = api.viewChannelMetacounter(channelType, channelUrl) + // .apiToken(apiToken) + // .key(key) + // .keys(keys) + // .execute(); // TODO: test validations } @@ -325,7 +370,9 @@ public void viewChannelMetacounterByKeyTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String key = null; - //Object response = api.viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key); + //Object response = api.viewChannelMetacounterByKey(channelType, channelUrl, key) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -343,7 +390,11 @@ public void viewChannelMetadataTest() throws ApiException { //String channelUrl = null; //String key = null; //List keys = null; - //Map response = api.viewChannelMetadata(apiToken, channelType, channelUrl, key, keys); + //Map response = api.viewChannelMetadata(channelType, channelUrl) + // .apiToken(apiToken) + // .key(key) + // .keys(keys) + // .execute(); // TODO: test validations } @@ -360,7 +411,9 @@ public void viewChannelMetadataByKeyTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String key = null; - //Map response = api.viewChannelMetadataByKey(apiToken, channelType, channelUrl, key); + //Map response = api.viewChannelMetadataByKey(channelType, channelUrl, key) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -377,7 +430,11 @@ public void viewUserMetadataTest() throws ApiException { //String userId = null; //String key = null; //List keys = null; - //ViewUserMetadataResponse response = api.viewUserMetadata(apiToken, userId, key, keys); + //ViewUserMetadataResponse response = api.viewUserMetadata(userId) + // .apiToken(apiToken) + // .key(key) + // .keys(keys) + // .execute(); // TODO: test validations } @@ -393,7 +450,9 @@ public void viewUserMetadataByKeyTest() throws ApiException { //String apiToken = null; //String userId = null; //String key = null; - //Map response = api.viewUserMetadataByKey(apiToken, userId, key); + //Map response = api.viewUserMetadataByKey(userId, key) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/ModerationApiTest.java b/src/test/java/org/sendbird/client/api/ModerationApiTest.java index 085deb82..e4755aa6 100644 --- a/src/test/java/org/sendbird/client/api/ModerationApiTest.java +++ b/src/test/java/org/sendbird/client/api/ModerationApiTest.java @@ -74,7 +74,10 @@ public void banFromChannelsWithCustomChannelTypesTest() throws ApiException { //String apiToken = null; //String userId = null; //BanFromChannelsWithCustomChannelTypesData banFromChannelsWithCustomChannelTypesData = null; - //Object response = api.banFromChannelsWithCustomChannelTypes(apiToken, userId, banFromChannelsWithCustomChannelTypesData); + //Object response = api.banFromChannelsWithCustomChannelTypes(userId) + // .apiToken(apiToken) + // .banFromChannelsWithCustomChannelTypesData(banFromChannelsWithCustomChannelTypesData) + // .execute(); // TODO: test validations } @@ -90,7 +93,10 @@ public void blockUserTest() throws ApiException { //String apiToken = null; //String userId = null; //BlockUserData blockUserData = null; - //BlockUserResponse response = api.blockUser(apiToken, userId, blockUserData); + //BlockUserResponse response = api.blockUser(userId) + // .apiToken(apiToken) + // .blockUserData(blockUserData) + // .execute(); // TODO: test validations } @@ -106,7 +112,10 @@ public void gcBanUserTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcBanUserData gcBanUserData = null; - //GcBanUserResponse response = api.gcBanUser(apiToken, channelUrl, gcBanUserData); + //GcBanUserResponse response = api.gcBanUser(channelUrl) + // .apiToken(apiToken) + // .gcBanUserData(gcBanUserData) + // .execute(); // TODO: test validations } @@ -122,7 +131,10 @@ public void gcFreezeChannelTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcFreezeChannelData gcFreezeChannelData = null; - //SendBirdGroupChannel response = api.gcFreezeChannel(apiToken, channelUrl, gcFreezeChannelData); + //SendBirdGroupChannel response = api.gcFreezeChannel(channelUrl) + // .apiToken(apiToken) + // .gcFreezeChannelData(gcFreezeChannelData) + // .execute(); // TODO: test validations } @@ -139,7 +151,11 @@ public void gcListBannedUsersTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //GcListBannedUsersResponse response = api.gcListBannedUsers(apiToken, channelUrl, token, limit); + //GcListBannedUsersResponse response = api.gcListBannedUsers(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -156,7 +172,11 @@ public void gcListMutedUsersTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //GcListMutedUsersResponse response = api.gcListMutedUsers(apiToken, channelUrl, token, limit); + //GcListMutedUsersResponse response = api.gcListMutedUsers(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -172,7 +192,10 @@ public void gcMuteUserTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //GcMuteUserData gcMuteUserData = null; - //SendBirdGroupChannel response = api.gcMuteUser(apiToken, channelUrl, gcMuteUserData); + //SendBirdGroupChannel response = api.gcMuteUser(channelUrl) + // .apiToken(apiToken) + // .gcMuteUserData(gcMuteUserData) + // .execute(); // TODO: test validations } @@ -188,7 +211,9 @@ public void gcUnbanUserByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String bannedUserId = null; - //OcDeleteChannelByUrl200Response response = api.gcUnbanUserById(apiToken, channelUrl, bannedUserId); + //OcDeleteChannelByUrl200Response response = api.gcUnbanUserById(channelUrl, bannedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -204,7 +229,9 @@ public void gcUnmuteUserByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String mutedUserId = null; - //OcDeleteChannelByUrl200Response response = api.gcUnmuteUserById(apiToken, channelUrl, mutedUserId); + //OcDeleteChannelByUrl200Response response = api.gcUnmuteUserById(channelUrl, mutedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -221,7 +248,10 @@ public void gcUpdateBanByIdTest() throws ApiException { //String channelUrl = null; //String bannedUserId = null; //GcUpdateBanByIdData gcUpdateBanByIdData = null; - //GcUpdateBanByIdResponse response = api.gcUpdateBanById(apiToken, channelUrl, bannedUserId, gcUpdateBanByIdData); + //GcUpdateBanByIdResponse response = api.gcUpdateBanById(channelUrl, bannedUserId) + // .apiToken(apiToken) + // .gcUpdateBanByIdData(gcUpdateBanByIdData) + // .execute(); // TODO: test validations } @@ -237,7 +267,9 @@ public void gcViewBanByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String bannedUserId = null; - //GcViewBanByIdResponse response = api.gcViewBanById(apiToken, channelUrl, bannedUserId); + //GcViewBanByIdResponse response = api.gcViewBanById(channelUrl, bannedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -253,7 +285,9 @@ public void gcViewMuteByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String mutedUserId = null; - //GcViewMuteByIdResponse response = api.gcViewMuteById(apiToken, channelUrl, mutedUserId); + //GcViewMuteByIdResponse response = api.gcViewMuteById(channelUrl, mutedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -270,7 +304,11 @@ public void listBannedChannelsTest() throws ApiException { //String userId = null; //String token = null; //Integer limit = null; - //ListBannedChannelsResponse response = api.listBannedChannels(apiToken, userId, token, limit); + //ListBannedChannelsResponse response = api.listBannedChannels(userId) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -290,7 +328,14 @@ public void listBlockedUsersTest() throws ApiException { //String userIds = null; //String metadatakey = null; //String metadatavaluesIn = null; - //ListBlockedUsersResponse response = api.listBlockedUsers(apiToken, userId, token, limit, userIds, metadatakey, metadatavaluesIn); + //ListBlockedUsersResponse response = api.listBlockedUsers(userId) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .userIds(userIds) + // .metadatakey(metadatakey) + // .metadatavaluesIn(metadatavaluesIn) + // .execute(); // TODO: test validations } @@ -307,7 +352,11 @@ public void listMutedChannelsTest() throws ApiException { //String userId = null; //String token = null; //Integer limit = null; - //ListMutedChannelsResponse response = api.listMutedChannels(apiToken, userId, token, limit); + //ListMutedChannelsResponse response = api.listMutedChannels(userId) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -323,7 +372,10 @@ public void muteInChannelsWithCustomChannelTypesTest() throws ApiException { //String apiToken = null; //String userId = null; //MuteInChannelsWithCustomChannelTypesData muteInChannelsWithCustomChannelTypesData = null; - //Object response = api.muteInChannelsWithCustomChannelTypes(apiToken, userId, muteInChannelsWithCustomChannelTypesData); + //Object response = api.muteInChannelsWithCustomChannelTypes(userId) + // .apiToken(apiToken) + // .muteInChannelsWithCustomChannelTypesData(muteInChannelsWithCustomChannelTypesData) + // .execute(); // TODO: test validations } @@ -339,7 +391,10 @@ public void ocBanUserTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //OcBanUserData ocBanUserData = null; - //OcBanUserResponse response = api.ocBanUser(apiToken, channelUrl, ocBanUserData); + //OcBanUserResponse response = api.ocBanUser(channelUrl) + // .apiToken(apiToken) + // .ocBanUserData(ocBanUserData) + // .execute(); // TODO: test validations } @@ -355,7 +410,10 @@ public void ocFreezeChannelTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //OcFreezeChannelData ocFreezeChannelData = null; - //SendBirdOpenChannel response = api.ocFreezeChannel(apiToken, channelUrl, ocFreezeChannelData); + //SendBirdOpenChannel response = api.ocFreezeChannel(channelUrl) + // .apiToken(apiToken) + // .ocFreezeChannelData(ocFreezeChannelData) + // .execute(); // TODO: test validations } @@ -372,7 +430,11 @@ public void ocListBannedUsersTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //OcListBannedUsersResponse response = api.ocListBannedUsers(apiToken, channelUrl, token, limit); + //OcListBannedUsersResponse response = api.ocListBannedUsers(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -389,7 +451,11 @@ public void ocListMutedUsersTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //OcListMutedUsersResponse response = api.ocListMutedUsers(apiToken, channelUrl, token, limit); + //OcListMutedUsersResponse response = api.ocListMutedUsers(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -405,7 +471,10 @@ public void ocMuteUserTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //OcMuteUserData ocMuteUserData = null; - //SendBirdOpenChannel response = api.ocMuteUser(apiToken, channelUrl, ocMuteUserData); + //SendBirdOpenChannel response = api.ocMuteUser(channelUrl) + // .apiToken(apiToken) + // .ocMuteUserData(ocMuteUserData) + // .execute(); // TODO: test validations } @@ -421,7 +490,9 @@ public void ocUnbanUserByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String bannedUserId = null; - //OcDeleteChannelByUrl200Response response = api.ocUnbanUserById(apiToken, channelUrl, bannedUserId); + //OcDeleteChannelByUrl200Response response = api.ocUnbanUserById(channelUrl, bannedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -437,7 +508,9 @@ public void ocUnmuteUserByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String mutedUserId = null; - //OcDeleteChannelByUrl200Response response = api.ocUnmuteUserById(apiToken, channelUrl, mutedUserId); + //OcDeleteChannelByUrl200Response response = api.ocUnmuteUserById(channelUrl, mutedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -454,7 +527,10 @@ public void ocUpdateBanByIdTest() throws ApiException { //String channelUrl = null; //String bannedUserId = null; //OcUpdateBanByIdData ocUpdateBanByIdData = null; - //OcUpdateBanByIdResponse response = api.ocUpdateBanById(apiToken, channelUrl, bannedUserId, ocUpdateBanByIdData); + //OcUpdateBanByIdResponse response = api.ocUpdateBanById(channelUrl, bannedUserId) + // .apiToken(apiToken) + // .ocUpdateBanByIdData(ocUpdateBanByIdData) + // .execute(); // TODO: test validations } @@ -470,7 +546,9 @@ public void ocViewBanByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String bannedUserId = null; - //OcViewBanByIdResponse response = api.ocViewBanById(apiToken, channelUrl, bannedUserId); + //OcViewBanByIdResponse response = api.ocViewBanById(channelUrl, bannedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -486,7 +564,9 @@ public void ocViewMuteByIdTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //String mutedUserId = null; - //OcViewMuteByIdResponse response = api.ocViewMuteById(apiToken, channelUrl, mutedUserId); + //OcViewMuteByIdResponse response = api.ocViewMuteById(channelUrl, mutedUserId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -502,7 +582,9 @@ public void unblockUserByIdTest() throws ApiException { //String apiToken = null; //String userId = null; //String targetId = null; - //Object response = api.unblockUserById(apiToken, userId, targetId); + //Object response = api.unblockUserById(userId, targetId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/OpenChannelApiTest.java b/src/test/java/org/sendbird/client/api/OpenChannelApiTest.java index a3cf0fc8..5d591b37 100644 --- a/src/test/java/org/sendbird/client/api/OpenChannelApiTest.java +++ b/src/test/java/org/sendbird/client/api/OpenChannelApiTest.java @@ -53,7 +53,11 @@ public void ocCancelTheRegistrationOfOperatorsTest() throws ApiException { //String channelUrl = null; //List operatorIds = null; //Boolean deleteAll = null; - //api.ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, deleteAll); + //api.ocCancelTheRegistrationOfOperators(channelUrl) + // .apiToken(apiToken) + // .operatorIds(operatorIds) + // .deleteAll(deleteAll) + // .execute(); // TODO: test validations } @@ -68,7 +72,10 @@ public void ocCancelTheRegistrationOfOperatorsTest() throws ApiException { public void ocCreateChannelTest() throws ApiException { //String apiToken = null; //OcCreateChannelData ocCreateChannelData = null; - //SendBirdOpenChannel response = api.ocCreateChannel(apiToken, ocCreateChannelData); + //SendBirdOpenChannel response = api.ocCreateChannel() + // .apiToken(apiToken) + // .ocCreateChannelData(ocCreateChannelData) + // .execute(); // TODO: test validations } @@ -83,7 +90,9 @@ public void ocCreateChannelTest() throws ApiException { public void ocDeleteChannelByUrlTest() throws ApiException { //String apiToken = null; //String channelUrl = null; - //OcDeleteChannelByUrl200Response response = api.ocDeleteChannelByUrl(apiToken, channelUrl); + //OcDeleteChannelByUrl200Response response = api.ocDeleteChannelByUrl(channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -105,7 +114,17 @@ public void ocListChannelsTest() throws ApiException { //Boolean showFrozen = null; //Boolean showMetadata = null; //String customType = null; - //OcListChannelsResponse response = api.ocListChannels(apiToken, token, limit, customTypes, nameContains, urlContains, showFrozen, showMetadata, customType); + //OcListChannelsResponse response = api.ocListChannels() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .customTypes(customTypes) + // .nameContains(nameContains) + // .urlContains(urlContains) + // .showFrozen(showFrozen) + // .showMetadata(showMetadata) + // .customType(customType) + // .execute(); // TODO: test validations } @@ -122,7 +141,11 @@ public void ocListOperatorsTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //OcListOperatorsResponse response = api.ocListOperators(apiToken, channelUrl, token, limit); + //OcListOperatorsResponse response = api.ocListOperators(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -139,7 +162,11 @@ public void ocListParticipantsTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //OcListParticipantsResponse response = api.ocListParticipants(apiToken, channelUrl, token, limit); + //OcListParticipantsResponse response = api.ocListParticipants(channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -155,7 +182,10 @@ public void ocRegisterOperatorsTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //OcRegisterOperatorsData ocRegisterOperatorsData = null; - //OcDeleteChannelByUrl200Response response = api.ocRegisterOperators(apiToken, channelUrl, ocRegisterOperatorsData); + //OcDeleteChannelByUrl200Response response = api.ocRegisterOperators(channelUrl) + // .apiToken(apiToken) + // .ocRegisterOperatorsData(ocRegisterOperatorsData) + // .execute(); // TODO: test validations } @@ -171,7 +201,10 @@ public void ocUpdateChannelByUrlTest() throws ApiException { //String apiToken = null; //String channelUrl = null; //OcUpdateChannelByUrlData ocUpdateChannelByUrlData = null; - //SendBirdOpenChannel response = api.ocUpdateChannelByUrl(apiToken, channelUrl, ocUpdateChannelByUrlData); + //SendBirdOpenChannel response = api.ocUpdateChannelByUrl(channelUrl) + // .apiToken(apiToken) + // .ocUpdateChannelByUrlData(ocUpdateChannelByUrlData) + // .execute(); // TODO: test validations } @@ -186,7 +219,9 @@ public void ocUpdateChannelByUrlTest() throws ApiException { public void ocViewChannelByUrlTest() throws ApiException { //String apiToken = null; //String channelUrl = null; - //SendBirdOpenChannel response = api.ocViewChannelByUrl(apiToken, channelUrl); + //SendBirdOpenChannel response = api.ocViewChannelByUrl(channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/PrivacyApiTest.java b/src/test/java/org/sendbird/client/api/PrivacyApiTest.java index fba3bf41..89731430 100644 --- a/src/test/java/org/sendbird/client/api/PrivacyApiTest.java +++ b/src/test/java/org/sendbird/client/api/PrivacyApiTest.java @@ -47,7 +47,9 @@ public class PrivacyApiTest { public void cancelTheRegistrationOfGdprRequestByIdTest() throws ApiException { //String apiToken = null; //String requestId = null; - //api.cancelTheRegistrationOfGdprRequestById(apiToken, requestId); + //api.cancelTheRegistrationOfGdprRequestById(requestId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -63,7 +65,11 @@ public void listGdprRequestsTest() throws ApiException { //String apiToken = null; //String token = null; //Integer limit = null; - //ListGdprRequestsResponse response = api.listGdprRequests(apiToken, token, limit); + //ListGdprRequestsResponse response = api.listGdprRequests() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -78,7 +84,10 @@ public void listGdprRequestsTest() throws ApiException { public void registerGdprRequestTest() throws ApiException { //String apiToken = null; //RegisterGdprRequestData registerGdprRequestData = null; - //RegisterGdprRequestResponse response = api.registerGdprRequest(apiToken, registerGdprRequestData); + //RegisterGdprRequestResponse response = api.registerGdprRequest() + // .apiToken(apiToken) + // .registerGdprRequestData(registerGdprRequestData) + // .execute(); // TODO: test validations } @@ -93,7 +102,9 @@ public void registerGdprRequestTest() throws ApiException { public void viewGdprRequestByIdTest() throws ApiException { //String apiToken = null; //String requestId = null; - //ViewGdprRequestByIdResponse response = api.viewGdprRequestById(apiToken, requestId); + //ViewGdprRequestByIdResponse response = api.viewGdprRequestById(requestId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/ReportApiTest.java b/src/test/java/org/sendbird/client/api/ReportApiTest.java index 71f51940..809a196f 100644 --- a/src/test/java/org/sendbird/client/api/ReportApiTest.java +++ b/src/test/java/org/sendbird/client/api/ReportApiTest.java @@ -56,7 +56,13 @@ public void listReportsTest() throws ApiException { //Integer limit = null; //Integer startTs = null; //Integer endTs = null; - //ListReportsResponse response = api.listReports(apiToken, token, limit, startTs, endTs); + //ListReportsResponse response = api.listReports() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .startTs(startTs) + // .endTs(endTs) + // .execute(); // TODO: test validations } @@ -74,7 +80,11 @@ public void listReportsOnChannelByUrlTest() throws ApiException { //String channelUrl = null; //String token = null; //Integer limit = null; - //ListReportsOnChannelByUrlResponse response = api.listReportsOnChannelByUrl(apiToken, channelType, channelUrl, token, limit); + //ListReportsOnChannelByUrlResponse response = api.listReportsOnChannelByUrl(channelType, channelUrl) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -93,7 +103,11 @@ public void listReportsOnMessageByIdTest() throws ApiException { //String messageId = null; //String token = null; //Integer limit = null; - //ListReportsOnMessageByIdResponse response = api.listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, token, limit); + //ListReportsOnMessageByIdResponse response = api.listReportsOnMessageById(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -110,7 +124,11 @@ public void listReportsOnUserByIdTest() throws ApiException { //String offendingUserId = null; //String token = null; //Integer limit = null; - //ListReportsOnUserByIdResponse response = api.listReportsOnUserById(apiToken, offendingUserId, token, limit); + //ListReportsOnUserByIdResponse response = api.listReportsOnUserById(offendingUserId) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .execute(); // TODO: test validations } @@ -127,7 +145,10 @@ public void reportChannelByUrlTest() throws ApiException { //String channelType = null; //String channelUrl = null; //ReportChannelByUrlData reportChannelByUrlData = null; - //ReportChannelByUrlResponse response = api.reportChannelByUrl(apiToken, channelType, channelUrl, reportChannelByUrlData); + //ReportChannelByUrlResponse response = api.reportChannelByUrl(channelType, channelUrl) + // .apiToken(apiToken) + // .reportChannelByUrlData(reportChannelByUrlData) + // .execute(); // TODO: test validations } @@ -145,7 +166,10 @@ public void reportMessageByIdTest() throws ApiException { //String channelUrl = null; //String messageId = null; //ReportMessageByIdData reportMessageByIdData = null; - //ReportMessageByIdResponse response = api.reportMessageById(apiToken, channelType, channelUrl, messageId, reportMessageByIdData); + //ReportMessageByIdResponse response = api.reportMessageById(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .reportMessageByIdData(reportMessageByIdData) + // .execute(); // TODO: test validations } @@ -161,7 +185,10 @@ public void reportUserByIdTest() throws ApiException { //String apiToken = null; //String offendingUserId = null; //ReportUserByIdData reportUserByIdData = null; - //ReportUserByIdResponse response = api.reportUserById(apiToken, offendingUserId, reportUserByIdData); + //ReportUserByIdResponse response = api.reportUserById(offendingUserId) + // .apiToken(apiToken) + // .reportUserByIdData(reportUserByIdData) + // .execute(); // TODO: test validations } @@ -178,7 +205,9 @@ public void viewModeratedMessageByIdTest() throws ApiException { //String channelType = null; //String channelUrl = null; //String messageId = null; - //Object response = api.viewModeratedMessageById(apiToken, channelType, channelUrl, messageId); + //Object response = api.viewModeratedMessageById(channelType, channelUrl, messageId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/StatisticsApiTest.java b/src/test/java/org/sendbird/client/api/StatisticsApiTest.java index 026d07d9..5d946c7f 100644 --- a/src/test/java/org/sendbird/client/api/StatisticsApiTest.java +++ b/src/test/java/org/sendbird/client/api/StatisticsApiTest.java @@ -50,7 +50,9 @@ public class StatisticsApiTest { public void getDetailedOpenRateOfAnnouncementByIdTest() throws ApiException { //String apiToken = null; //String uniqueId = null; - //GetDetailedOpenRateOfAnnouncementByIdResponse response = api.getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId); + //GetDetailedOpenRateOfAnnouncementByIdResponse response = api.getDetailedOpenRateOfAnnouncementById(uniqueId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -70,7 +72,14 @@ public void getDetailedOpenStatusOfAnnouncementByIdTest() throws ApiException { //List uniqueIds = null; //List channelUrls = null; //Boolean hasOpened = null; - //GetDetailedOpenStatusOfAnnouncementByIdResponse response = api.getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, limit, next, uniqueIds, channelUrls, hasOpened); + //GetDetailedOpenStatusOfAnnouncementByIdResponse response = api.getDetailedOpenStatusOfAnnouncementById(uniqueId) + // .apiToken(apiToken) + // .limit(limit) + // .next(next) + // .uniqueIds(uniqueIds) + // .channelUrls(channelUrls) + // .hasOpened(hasOpened) + // .execute(); // TODO: test validations } @@ -84,7 +93,9 @@ public void getDetailedOpenStatusOfAnnouncementByIdTest() throws ApiException { @Test public void retrieveAdvancedAnalyticsMetricsTest() throws ApiException { //String apiToken = null; - //RetrieveAdvancedAnalyticsMetricsResponse response = api.retrieveAdvancedAnalyticsMetrics(apiToken); + //RetrieveAdvancedAnalyticsMetricsResponse response = api.retrieveAdvancedAnalyticsMetrics() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -98,7 +109,9 @@ public void retrieveAdvancedAnalyticsMetricsTest() throws ApiException { @Test public void viewNumberOfConcurrentConnectionsTest() throws ApiException { //String apiToken = null; - //ViewNumberOfConcurrentConnectionsResponse response = api.viewNumberOfConcurrentConnections(apiToken); + //ViewNumberOfConcurrentConnectionsResponse response = api.viewNumberOfConcurrentConnections() + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -113,7 +126,10 @@ public void viewNumberOfConcurrentConnectionsTest() throws ApiException { public void viewNumberOfDailyActiveUsersTest() throws ApiException { //String apiToken = null; //String date = null; - //ViewNumberOfDailyActiveUsersResponse response = api.viewNumberOfDailyActiveUsers(apiToken, date); + //ViewNumberOfDailyActiveUsersResponse response = api.viewNumberOfDailyActiveUsers() + // .apiToken(apiToken) + // .date(date) + // .execute(); // TODO: test validations } @@ -128,7 +144,10 @@ public void viewNumberOfDailyActiveUsersTest() throws ApiException { public void viewNumberOfMonthlyActiveUsersTest() throws ApiException { //String apiToken = null; //String date = null; - //ViewNumberOfMonthlyActiveUsersResponse response = api.viewNumberOfMonthlyActiveUsers(apiToken, date); + //ViewNumberOfMonthlyActiveUsersResponse response = api.viewNumberOfMonthlyActiveUsers() + // .apiToken(apiToken) + // .date(date) + // .execute(); // TODO: test validations } @@ -149,7 +168,16 @@ public void viewNumberOfPeakConnectionsTest() throws ApiException { //Integer endMonth = null; //Integer startDay = null; //Integer endDay = null; - //ViewNumberOfPeakConnectionsResponse response = api.viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, startDay, endDay); + //ViewNumberOfPeakConnectionsResponse response = api.viewNumberOfPeakConnections() + // .apiToken(apiToken) + // .timeDimension(timeDimension) + // .startYear(startYear) + // .startMonth(startMonth) + // .endYear(endYear) + // .endMonth(endMonth) + // .startDay(startDay) + // .endDay(endDay) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/UserApiTest.java b/src/test/java/org/sendbird/client/api/UserApiTest.java index 5a3596ba..a7957da7 100644 --- a/src/test/java/org/sendbird/client/api/UserApiTest.java +++ b/src/test/java/org/sendbird/client/api/UserApiTest.java @@ -80,7 +80,10 @@ public void addRegistrationOrDeviceTokenTest() throws ApiException { //String userId = null; //String tokenType = null; //AddRegistrationOrDeviceTokenData addRegistrationOrDeviceTokenData = null; - //AddRegistrationOrDeviceTokenResponse response = api.addRegistrationOrDeviceToken(apiToken, userId, tokenType, addRegistrationOrDeviceTokenData); + //AddRegistrationOrDeviceTokenResponse response = api.addRegistrationOrDeviceToken(userId, tokenType) + // .apiToken(apiToken) + // .addRegistrationOrDeviceTokenData(addRegistrationOrDeviceTokenData) + // .execute(); // TODO: test validations } @@ -96,7 +99,10 @@ public void choosePushNotificationContentTemplateTest() throws ApiException { //String apiToken = null; //String userId = null; //Object body = null; - //ChoosePushNotificationContentTemplateResponse response = api.choosePushNotificationContentTemplate(apiToken, userId, body); + //ChoosePushNotificationContentTemplateResponse response = api.choosePushNotificationContentTemplate(userId) + // .apiToken(apiToken) + // .body(body) + // .execute(); // TODO: test validations } @@ -111,7 +117,10 @@ public void choosePushNotificationContentTemplateTest() throws ApiException { public void createUserTest() throws ApiException { //String apiToken = null; //CreateUserData createUserData = null; - //SendBirdUser response = api.createUser(apiToken, createUserData); + //SendBirdUser response = api.createUser() + // .apiToken(apiToken) + // .createUserData(createUserData) + // .execute(); // TODO: test validations } @@ -127,7 +136,10 @@ public void createUserTokenTest() throws ApiException { //String apiToken = null; //String userId = null; //CreateUserTokenData createUserTokenData = null; - //CreateUserTokenResponse response = api.createUserToken(apiToken, userId, createUserTokenData); + //CreateUserTokenResponse response = api.createUserToken(userId) + // .apiToken(apiToken) + // .createUserTokenData(createUserTokenData) + // .execute(); // TODO: test validations } @@ -142,7 +154,9 @@ public void createUserTokenTest() throws ApiException { public void deleteUserByIdTest() throws ApiException { //String apiToken = null; //String userId = null; - //Object response = api.deleteUserById(apiToken, userId); + //Object response = api.deleteUserById(userId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -158,7 +172,10 @@ public void leaveMyGroupChannelsTest() throws ApiException { //String apiToken = null; //String userId = null; //LeaveMyGroupChannelsData leaveMyGroupChannelsData = null; - //Object response = api.leaveMyGroupChannels(apiToken, userId, leaveMyGroupChannelsData); + //Object response = api.leaveMyGroupChannels(userId) + // .apiToken(apiToken) + // .leaveMyGroupChannelsData(leaveMyGroupChannelsData) + // .execute(); // TODO: test validations } @@ -213,7 +230,49 @@ public void listMyGroupChannelsTest() throws ApiException { //String metacounterValueLt = null; //String metacounterValueLte = null; //String customType = null; - //ListMyGroupChannelsResponse response = api.listMyGroupChannels(apiToken, userId, token, limit, distinctMode, publicMode, superMode, hiddenMode, memberStateFilter, unreadFilter, createdAfter, createdBefore, showEmpty, showFrozen, showMember, showDeliveryReceipt, showReadReceipt, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, searchQuery, searchFields, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, customType); + //ListMyGroupChannelsResponse response = api.listMyGroupChannels(userId) + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .distinctMode(distinctMode) + // .publicMode(publicMode) + // .superMode(superMode) + // .hiddenMode(hiddenMode) + // .memberStateFilter(memberStateFilter) + // .unreadFilter(unreadFilter) + // .createdAfter(createdAfter) + // .createdBefore(createdBefore) + // .showEmpty(showEmpty) + // .showFrozen(showFrozen) + // .showMember(showMember) + // .showDeliveryReceipt(showDeliveryReceipt) + // .showReadReceipt(showReadReceipt) + // .order(order) + // .metadataOrderKey(metadataOrderKey) + // .customTypes(customTypes) + // .customTypeStartswith(customTypeStartswith) + // .channelUrls(channelUrls) + // .name(name) + // .nameContains(nameContains) + // .nameStartswith(nameStartswith) + // .membersExactlyIn(membersExactlyIn) + // .membersIncludeIn(membersIncludeIn) + // .queryType(queryType) + // .membersNickname(membersNickname) + // .membersNicknameContains(membersNicknameContains) + // .searchQuery(searchQuery) + // .searchFields(searchFields) + // .metadataKey(metadataKey) + // .metadataValues(metadataValues) + // .metadataValueStartswith(metadataValueStartswith) + // .metacounterKey(metacounterKey) + // .metacounterValues(metacounterValues) + // .metacounterValueGt(metacounterValueGt) + // .metacounterValueGte(metacounterValueGte) + // .metacounterValueLt(metacounterValueLt) + // .metacounterValueLte(metacounterValueLte) + // .customType(customType) + // .execute(); // TODO: test validations } @@ -229,7 +288,9 @@ public void listRegistrationOrDeviceTokensTest() throws ApiException { //String apiToken = null; //String userId = null; //String tokenType = null; - //ListRegistrationOrDeviceTokensResponse response = api.listRegistrationOrDeviceTokens(apiToken, userId, tokenType); + //ListRegistrationOrDeviceTokensResponse response = api.listRegistrationOrDeviceTokens(userId, tokenType) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -252,7 +313,18 @@ public void listUsersTest() throws ApiException { //String nicknameStartswith = null; //String metadatakey = null; //String metadatavaluesIn = null; - //ListUsersResponse response = api.listUsers(apiToken, token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn); + //ListUsersResponse response = api.listUsers() + // .apiToken(apiToken) + // .token(token) + // .limit(limit) + // .activeMode(activeMode) + // .showBot(showBot) + // .userIds(userIds) + // .nickname(nickname) + // .nicknameStartswith(nicknameStartswith) + // .metadatakey(metadatakey) + // .metadatavaluesIn(metadatavaluesIn) + // .execute(); // TODO: test validations } @@ -268,7 +340,10 @@ public void markAllMessagesAsReadTest() throws ApiException { //String apiToken = null; //String userId = null; //MarkAllMessagesAsReadData markAllMessagesAsReadData = null; - //Object response = api.markAllMessagesAsRead(apiToken, userId, markAllMessagesAsReadData); + //Object response = api.markAllMessagesAsRead(userId) + // .apiToken(apiToken) + // .markAllMessagesAsReadData(markAllMessagesAsReadData) + // .execute(); // TODO: test validations } @@ -284,7 +359,10 @@ public void registerAsOperatorToChannelsWithCustomChannelTypesTest() throws ApiE //String apiToken = null; //String userId = null; //RegisterAsOperatorToChannelsWithCustomChannelTypesData registerAsOperatorToChannelsWithCustomChannelTypesData = null; - //Object response = api.registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, registerAsOperatorToChannelsWithCustomChannelTypesData); + //Object response = api.registerAsOperatorToChannelsWithCustomChannelTypes(userId) + // .apiToken(apiToken) + // .registerAsOperatorToChannelsWithCustomChannelTypesData(registerAsOperatorToChannelsWithCustomChannelTypesData) + // .execute(); // TODO: test validations } @@ -299,7 +377,9 @@ public void registerAsOperatorToChannelsWithCustomChannelTypesTest() throws ApiE public void removeRegistrationOrDeviceTokenTest() throws ApiException { //String apiToken = null; //String userId = null; - //RemoveRegistrationOrDeviceTokenResponse response = api.removeRegistrationOrDeviceToken(apiToken, userId); + //RemoveRegistrationOrDeviceTokenResponse response = api.removeRegistrationOrDeviceToken(userId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -316,7 +396,9 @@ public void removeRegistrationOrDeviceTokenByTokenTest() throws ApiException { //String userId = null; //String tokenType = null; //String token = null; - //RemoveRegistrationOrDeviceTokenByTokenResponse response = api.removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token); + //RemoveRegistrationOrDeviceTokenByTokenResponse response = api.removeRegistrationOrDeviceTokenByToken(userId, tokenType, token) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -332,7 +414,9 @@ public void removeRegistrationOrDeviceTokenFromOwnerByTokenTest() throws ApiExce //String apiToken = null; //String tokenType = null; //String token = null; - //RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse response = api.removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token); + //RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse response = api.removeRegistrationOrDeviceTokenFromOwnerByToken(tokenType, token) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -347,7 +431,9 @@ public void removeRegistrationOrDeviceTokenFromOwnerByTokenTest() throws ApiExce public void resetPushPreferencesTest() throws ApiException { //String apiToken = null; //String userId = null; - //ResetPushPreferencesResponse response = api.resetPushPreferences(apiToken, userId); + //ResetPushPreferencesResponse response = api.resetPushPreferences(userId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -363,7 +449,10 @@ public void updateChannelInvitationPreferenceTest() throws ApiException { //String apiToken = null; //String userId = null; //UpdateChannelInvitationPreferenceData updateChannelInvitationPreferenceData = null; - //UpdateChannelInvitationPreferenceResponse response = api.updateChannelInvitationPreference(apiToken, userId, updateChannelInvitationPreferenceData); + //UpdateChannelInvitationPreferenceResponse response = api.updateChannelInvitationPreference(userId) + // .apiToken(apiToken) + // .updateChannelInvitationPreferenceData(updateChannelInvitationPreferenceData) + // .execute(); // TODO: test validations } @@ -380,7 +469,10 @@ public void updateCountPreferenceOfChannelByUrlTest() throws ApiException { //String userId = null; //String channelUrl = null; //UpdateCountPreferenceOfChannelByUrlData updateCountPreferenceOfChannelByUrlData = null; - //UpdateCountPreferenceOfChannelByUrlResponse response = api.updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, updateCountPreferenceOfChannelByUrlData); + //UpdateCountPreferenceOfChannelByUrlResponse response = api.updateCountPreferenceOfChannelByUrl(userId, channelUrl) + // .apiToken(apiToken) + // .updateCountPreferenceOfChannelByUrlData(updateCountPreferenceOfChannelByUrlData) + // .execute(); // TODO: test validations } @@ -396,7 +488,10 @@ public void updatePushPreferencesTest() throws ApiException { //String apiToken = null; //String userId = null; //UpdatePushPreferencesData updatePushPreferencesData = null; - //UpdatePushPreferencesResponse response = api.updatePushPreferences(apiToken, userId, updatePushPreferencesData); + //UpdatePushPreferencesResponse response = api.updatePushPreferences(userId) + // .apiToken(apiToken) + // .updatePushPreferencesData(updatePushPreferencesData) + // .execute(); // TODO: test validations } @@ -413,7 +508,10 @@ public void updatePushPreferencesForChannelByUrlTest() throws ApiException { //String userId = null; //String channelUrl = null; //UpdatePushPreferencesForChannelByUrlData updatePushPreferencesForChannelByUrlData = null; - //UpdatePushPreferencesForChannelByUrlResponse response = api.updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, updatePushPreferencesForChannelByUrlData); + //UpdatePushPreferencesForChannelByUrlResponse response = api.updatePushPreferencesForChannelByUrl(userId, channelUrl) + // .apiToken(apiToken) + // .updatePushPreferencesForChannelByUrlData(updatePushPreferencesForChannelByUrlData) + // .execute(); // TODO: test validations } @@ -429,7 +527,10 @@ public void updateUserByIdTest() throws ApiException { //String apiToken = null; //String userId = null; //UpdateUserByIdData updateUserByIdData = null; - //SendBirdUser response = api.updateUserById(apiToken, userId, updateUserByIdData); + //SendBirdUser response = api.updateUserById(userId) + // .apiToken(apiToken) + // .updateUserByIdData(updateUserByIdData) + // .execute(); // TODO: test validations } @@ -444,7 +545,9 @@ public void updateUserByIdTest() throws ApiException { public void viewChannelInvitationPreferenceTest() throws ApiException { //String apiToken = null; //String userId = null; - //ViewChannelInvitationPreferenceResponse response = api.viewChannelInvitationPreference(apiToken, userId); + //ViewChannelInvitationPreferenceResponse response = api.viewChannelInvitationPreference(userId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -460,7 +563,9 @@ public void viewCountPreferenceOfChannelByUrlTest() throws ApiException { //String apiToken = null; //String userId = null; //String channelUrl = null; - //ViewCountPreferenceOfChannelByUrlResponse response = api.viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl); + //ViewCountPreferenceOfChannelByUrlResponse response = api.viewCountPreferenceOfChannelByUrl(userId, channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -476,7 +581,10 @@ public void viewNumberOfChannelsByJoinStatusTest() throws ApiException { //String apiToken = null; //String userId = null; //String state = null; - //ViewNumberOfChannelsByJoinStatusResponse response = api.viewNumberOfChannelsByJoinStatus(apiToken, userId, state); + //ViewNumberOfChannelsByJoinStatusResponse response = api.viewNumberOfChannelsByJoinStatus(userId) + // .apiToken(apiToken) + // .state(state) + // .execute(); // TODO: test validations } @@ -493,7 +601,11 @@ public void viewNumberOfChannelsWithUnreadMessagesTest() throws ApiException { //String userId = null; //List customTypes = null; //String superMode = null; - //ViewNumberOfChannelsWithUnreadMessagesResponse response = api.viewNumberOfChannelsWithUnreadMessages(apiToken, userId, customTypes, superMode); + //ViewNumberOfChannelsWithUnreadMessagesResponse response = api.viewNumberOfChannelsWithUnreadMessages(userId) + // .apiToken(apiToken) + // .customTypes(customTypes) + // .superMode(superMode) + // .execute(); // TODO: test validations } @@ -510,7 +622,11 @@ public void viewNumberOfUnreadItemsTest() throws ApiException { //String userId = null; //String customType = null; //String itemKeys = null; - //ViewNumberOfUnreadItemsResponse response = api.viewNumberOfUnreadItems(apiToken, userId, customType, itemKeys); + //ViewNumberOfUnreadItemsResponse response = api.viewNumberOfUnreadItems(userId) + // .apiToken(apiToken) + // .customType(customType) + // .itemKeys(itemKeys) + // .execute(); // TODO: test validations } @@ -527,7 +643,11 @@ public void viewNumberOfUnreadMessagesTest() throws ApiException { //String userId = null; //String customTypes = null; //String superMode = null; - //ViewNumberOfUnreadMessagesResponse response = api.viewNumberOfUnreadMessages(apiToken, userId, customTypes, superMode); + //ViewNumberOfUnreadMessagesResponse response = api.viewNumberOfUnreadMessages(userId) + // .apiToken(apiToken) + // .customTypes(customTypes) + // .superMode(superMode) + // .execute(); // TODO: test validations } @@ -542,7 +662,9 @@ public void viewNumberOfUnreadMessagesTest() throws ApiException { public void viewPushPreferencesTest() throws ApiException { //String apiToken = null; //String userId = null; - //ViewPushPreferencesResponse response = api.viewPushPreferences(apiToken, userId); + //ViewPushPreferencesResponse response = api.viewPushPreferences(userId) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -558,7 +680,9 @@ public void viewPushPreferencesForChannelByUrlTest() throws ApiException { //String apiToken = null; //String userId = null; //String channelUrl = null; - //ViewPushPreferencesForChannelByUrlResponse response = api.viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl); + //ViewPushPreferencesForChannelByUrlResponse response = api.viewPushPreferencesForChannelByUrl(userId, channelUrl) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } @@ -576,7 +700,12 @@ public void viewUserByIdTest() throws ApiException { //Boolean includeUnreadCount = null; //String customTypes = null; //String superMode = null; - //SendBirdUser response = api.viewUserById(apiToken, userId, includeUnreadCount, customTypes, superMode); + //SendBirdUser response = api.viewUserById(userId) + // .apiToken(apiToken) + // .includeUnreadCount(includeUnreadCount) + // .customTypes(customTypes) + // .superMode(superMode) + // .execute(); // TODO: test validations } @@ -592,7 +721,9 @@ public void viewWhoOwnsRegistrationOrDeviceTokenByTokenTest() throws ApiExceptio //String apiToken = null; //String tokenType = null; //String token = null; - //List response = api.viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token); + //List response = api.viewWhoOwnsRegistrationOrDeviceTokenByToken(tokenType, token) + // .apiToken(apiToken) + // .execute(); // TODO: test validations } diff --git a/src/test/java/org/sendbird/client/api/WebhookApiTest.java b/src/test/java/org/sendbird/client/api/WebhookApiTest.java index 1d14d455..4bc5312c 100644 --- a/src/test/java/org/sendbird/client/api/WebhookApiTest.java +++ b/src/test/java/org/sendbird/client/api/WebhookApiTest.java @@ -46,7 +46,10 @@ public class WebhookApiTest { public void chooseWhichEventsToSubscribeToTest() throws ApiException { //String apiToken = null; //ChooseWhichEventsToSubscribeToData chooseWhichEventsToSubscribeToData = null; - //ChooseWhichEventsToSubscribeToResponse response = api.chooseWhichEventsToSubscribeTo(apiToken, chooseWhichEventsToSubscribeToData); + //ChooseWhichEventsToSubscribeToResponse response = api.chooseWhichEventsToSubscribeTo() + // .apiToken(apiToken) + // .chooseWhichEventsToSubscribeToData(chooseWhichEventsToSubscribeToData) + // .execute(); // TODO: test validations } @@ -61,7 +64,10 @@ public void chooseWhichEventsToSubscribeToTest() throws ApiException { public void retrieveListOfSubscribedEventsTest() throws ApiException { //String apiToken = null; //Boolean displayAllWebhookCategories = null; - //RetrieveListOfSubscribedEventsResponse response = api.retrieveListOfSubscribedEvents(apiToken, displayAllWebhookCategories); + //RetrieveListOfSubscribedEventsResponse response = api.retrieveListOfSubscribedEvents() + // .apiToken(apiToken) + // .displayAllWebhookCategories(displayAllWebhookCategories) + // .execute(); // TODO: test validations }