Exemplo n.º 1
0
        private void onReceiveNotificationRegistrationId(string providerName, string registrationId)
        {
            Debug.Log(string.Format("UTNotification Registration Succesful, provider: {0} registration: {1}", providerName, registrationId));
            RemoteNotificationProvider provider = (RemoteNotificationProvider)((int)Enum.Parse(typeof(RemoteNotificationProvider), providerName));
            Player player = GameLogic.Binder.GameState.Player;

            player.RemoteNotificationPlayerData.RegistrationId = registrationId;
            player.RemoteNotificationPlayerData.Locale         = App.Binder.LocaSystem.DisplayLanguage;
            player.RemoteNotificationPlayerData.Provider       = provider;
            player.RemoteNotificationPlayerData.HasLoggedInSinceLastNotification = true;
        }
Exemplo n.º 2
0
 public RemoteNotificationPlayerData(string registrationId, string locale, RemoteNotificationProvider provider)
 {
     this.RegistrationId = registrationId;
     this.Locale         = locale;
     this.Provider       = provider;
 }