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; }
public RemoteNotificationPlayerData(string registrationId, string locale, RemoteNotificationProvider provider) { this.RegistrationId = registrationId; this.Locale = locale; this.Provider = provider; }