@@ -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 (
0 commit comments