@@ -31,14 +31,14 @@ public String registerDeviceOnServer( String deviceToken, final List<String> cha
3131
3232 DeviceRegistration deviceRegistration = new DeviceRegistration ();
3333 deviceRegistration .setDeviceId ( Messaging .getDeviceId () );
34- deviceRegistration .setOs ( Messaging .OS );
35- deviceRegistration .setOsVersion ( Messaging .OS_VERSION );
34+ deviceRegistration .setOs ( Messaging .getOS () );
35+ deviceRegistration .setOsVersion ( Messaging .getOsVersion () );
3636 deviceRegistration .setDeviceToken ( deviceToken );
3737 deviceRegistration .setChannels ( channels );
3838 if ( expiration != 0 )
3939 deviceRegistration .setExpiration ( new Date ( expiration ) );
4040
41- return Invoker .invokeSync ( Messaging .DEVICE_REGISTRATION_MANAGER_SERVER_ALIAS , "registerDevice" , new Object [] { deviceRegistration } );
41+ return Invoker .invokeSync ( Messaging .getDeviceRegistrationManagerServerAlias () , "registerDevice" , new Object [] { deviceRegistration } );
4242 }
4343
4444 public void registerDeviceOnServer ( String deviceToken , final List <String > channels , final long expiration , final AsyncCallback <String > responder )
@@ -50,14 +50,14 @@ public void registerDeviceOnServer( String deviceToken, final List<String> chann
5050
5151 DeviceRegistration deviceRegistration = new DeviceRegistration ();
5252 deviceRegistration .setDeviceId ( Messaging .getDeviceId () );
53- deviceRegistration .setOs ( Messaging .OS );
54- deviceRegistration .setOsVersion ( Messaging .OS_VERSION );
53+ deviceRegistration .setOs ( Messaging .getOS () );
54+ deviceRegistration .setOsVersion ( Messaging .getOsVersion () );
5555 deviceRegistration .setDeviceToken ( deviceToken );
5656 deviceRegistration .setChannels ( channels );
5757 if ( expiration != 0 )
5858 deviceRegistration .setExpiration ( new Date ( expiration ) );
5959
60- Invoker .invokeAsync ( Messaging .DEVICE_REGISTRATION_MANAGER_SERVER_ALIAS , "registerDevice" , new Object [] { deviceRegistration }, new AsyncCallback <String >()
60+ Invoker .invokeAsync ( Messaging .getDeviceRegistrationManagerServerAlias () , "registerDevice" , new Object [] { deviceRegistration }, new AsyncCallback <String >()
6161 {
6262 @ Override
6363 public void handleResponse ( String response )
@@ -83,21 +83,21 @@ public void handleFault( BackendlessFault fault )
8383
8484 public boolean unregisterDeviceOnServer ()
8585 {
86- return (Boolean ) Invoker .invokeSync ( Messaging .DEVICE_REGISTRATION_MANAGER_SERVER_ALIAS , "unregisterDevice" , new Object [] { Messaging .getDeviceId () } );
86+ return (Boolean ) Invoker .invokeSync ( Messaging .getDeviceRegistrationManagerServerAlias () , "unregisterDevice" , new Object [] { Messaging .getDeviceId () } );
8787 }
8888
8989 public void unregisterDeviceOnServer ( final AsyncCallback <Boolean > responder )
9090 {
91- Invoker .invokeAsync ( Messaging .DEVICE_REGISTRATION_MANAGER_SERVER_ALIAS , "unregisterDevice" , new Object [] { Messaging .getDeviceId () }, responder );
91+ Invoker .invokeAsync ( Messaging .getDeviceRegistrationManagerServerAlias () , "unregisterDevice" , new Object [] { Messaging .getDeviceId () }, responder );
9292 }
9393
9494 public int unregisterDeviceOnServer ( List <String > channels )
9595 {
96- return (int ) Invoker .invokeSync ( Messaging .DEVICE_REGISTRATION_MANAGER_SERVER_ALIAS , "unregisterDevice" , new Object [] { Messaging .getDeviceId (), channels } );
96+ return (int ) Invoker .invokeSync ( Messaging .getDeviceRegistrationManagerServerAlias () , "unregisterDevice" , new Object [] { Messaging .getDeviceId (), channels } );
9797 }
9898
9999 public void unregisterDeviceOnServer ( List <String > channels , final AsyncCallback <Integer > responder )
100100 {
101- Invoker .invokeAsync ( Messaging .DEVICE_REGISTRATION_MANAGER_SERVER_ALIAS , "unregisterDevice" , new Object [] { Messaging .getDeviceId (), channels }, responder );
101+ Invoker .invokeAsync ( Messaging .getDeviceRegistrationManagerServerAlias () , "unregisterDevice" , new Object [] { Messaging .getDeviceId (), channels }, responder );
102102 }
103103}
0 commit comments