Skip to content

Commit f84c0cf

Browse files
committed
fix: request builder name
1 parent 323eb5f commit f84c0cf

File tree

2 files changed

+50
-24
lines changed

2 files changed

+50
-24
lines changed

src/test/java/io/getstream/CallTest.java

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,55 @@ void createCallType() throws InterruptedException {
3131
.build())
3232
.build();
3333

34-
NotificationSettings notificationSettings =
35-
new NotificationSettings(
36-
true,
37-
new EventNotificationSettings(
38-
true,
39-
new APNS("{{ user.display_name }} invites you to a call", "", 0, 0, "", null),
40-
null),
41-
new EventNotificationSettings(
42-
true,
43-
new APNS("{{ user.display_name }} invites you to a call", "", 0, 0, "", null),
44-
null),
45-
new EventNotificationSettings(
46-
true,
47-
new APNS("{{ user.display_name }} invites you to a call", "", 0, 0, "", null),
48-
null),
49-
new EventNotificationSettings(
50-
true,
51-
new APNS("{{ user.display_name }} invites you to a call", "", 0, 0, "", null),
52-
null),
53-
new EventNotificationSettings(
54-
true,
55-
new APNS("{{ user.display_name }} invites you to a call", "", 0, 0, "", null),
56-
null));
34+
NotificationSettingsRequest notificationSettings =
35+
NotificationSettingsRequest.builder()
36+
.enabled(true)
37+
.callLiveStarted(
38+
EventNotificationSettingsRequest.builder()
39+
.enabled(true)
40+
.apns(
41+
APNSResponse.builder()
42+
.title("{{ user.display_name }} invites you to a call")
43+
.body("")
44+
.build())
45+
.build())
46+
.callMissed(
47+
EventNotificationSettingsRequest.builder()
48+
.enabled(true)
49+
.apns(
50+
APNSResponse.builder()
51+
.title("{{ user.display_name }} invites you to a call")
52+
.body("")
53+
.build())
54+
.build())
55+
.callNotification(
56+
EventNotificationSettingsRequest.builder()
57+
.enabled(true)
58+
.apns(
59+
APNSResponse.builder()
60+
.title("{{ user.display_name }} invites you to a call")
61+
.body("")
62+
.build())
63+
.build())
64+
.callRing(
65+
EventNotificationSettingsRequest.builder()
66+
.enabled(true)
67+
.apns(
68+
APNSResponse.builder()
69+
.title("{{ user.display_name }} invites you to a call")
70+
.body("")
71+
.build())
72+
.build())
73+
.sessionStarted(
74+
EventNotificationSettingsRequest.builder()
75+
.enabled(true)
76+
.apns(
77+
APNSResponse.builder()
78+
.title("{{ user.display_name }} invites you to a call")
79+
.body("")
80+
.build())
81+
.build())
82+
.build();
5783

5884
Map<String, List<String>> grants =
5985
Map.of(

src/test/java/io/getstream/ChannelsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void whenUpdatingChannel_thenNoException() {
3333
testUsers.subList(0, 1).stream()
3434
.map(
3535
fullUserResponse -> {
36-
return ChannelMember.builder()
36+
return ChannelMemberRequest.builder()
3737
.userID(fullUserResponse.getId())
3838
.build();
3939
})

0 commit comments

Comments
 (0)