File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
ip-messaging/rest/roles/update-role Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11// Install the Java helper library from twilio.com/docs/java/install
2- import java .util .Arrays ;
3- import java .util .List ;
2+ import java .util .*;
43
54import com .twilio .Twilio ;
65import com .twilio .rest .chat .v2 .service .Role ;
@@ -18,8 +17,8 @@ public static void main(String[] args) {
1817 Twilio .init (ACCOUNT_SID , AUTH_TOKEN );
1918
2019 Role role = Role .fetcher (SERVICE_SID , ROLE_SID ).fetch ();
21- List <String > newPermissions = new ArrayList <String >(Arrays .asList ("sendMediaMessage" ));
22- newPermissions .addAll (role .getPermission ());
20+ List <String > newPermissions = new ArrayList <>(Arrays .asList ("sendMediaMessage" ));
21+ newPermissions .addAll (role .getPermissions ());
2322
2423 // Update the role
2524 Role role = Role .updater (SERVICE_SID , ROLE_SID , newPermissions ).update ();
You can’t perform that action at this time.
0 commit comments