private void HandleAccountNotify_AccountStateUpdated(RPCContext context)
        {
            if (context == null || context.Payload == null)
            {
                base.ApiLog.LogWarning("HandleAccountNotify_AccountStateUpdated invalid context!");
                return;
            }
            AccountStateNotification accountStateNotification = AccountStateNotification.ParseFrom(context.Payload);

            if (accountStateNotification == null || !accountStateNotification.IsInitialized)
            {
                base.ApiLog.LogWarning("HandleAccountNotify_AccountStateUpdated unable to parse response!");
                return;
            }
            if (!accountStateNotification.HasState)
            {
                base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated HasState=false, data={0}", new object[] { accountStateNotification });
                return;
            }
            AccountState state = accountStateNotification.State;

            if (!state.HasAccountLevelInfo)
            {
                base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated HasAccountLevelInfo=false, data={0}", new object[] { accountStateNotification });
                return;
            }
            if (!state.AccountLevelInfo.HasPreferredRegion)
            {
                base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated HasPreferredRegion=false, data={0}", new object[] { accountStateNotification });
                return;
            }
            base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated, data={0}", new object[] { accountStateNotification });
        }
 private void HandleAccountNotify_AccountStateUpdated(RPCContext context)
 {
     if ((context == null) || (context.Payload == null))
     {
         base.ApiLog.LogWarning("HandleAccountNotify_AccountStateUpdated invalid context!");
     }
     else
     {
         AccountStateNotification notification = AccountStateNotification.ParseFrom(context.Payload);
         if ((notification == null) || !notification.IsInitialized)
         {
             base.ApiLog.LogWarning("HandleAccountNotify_AccountStateUpdated unable to parse response!");
         }
         else if (!notification.HasState)
         {
             object[] args = new object[] { notification };
             base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated HasState=false, data={0}", args);
         }
         else
         {
             AccountState state = notification.State;
             if (!state.HasAccountLevelInfo)
             {
                 object[] objArray2 = new object[] { notification };
                 base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated HasAccountLevelInfo=false, data={0}", objArray2);
             }
             else if (!state.AccountLevelInfo.HasPreferredRegion)
             {
                 object[] objArray3 = new object[] { notification };
                 base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated HasPreferredRegion=false, data={0}", objArray3);
             }
             else
             {
                 object[] objArray4 = new object[] { notification };
                 base.ApiLog.LogDebug("HandleAccountNotify_AccountStateUpdated, data={0}", objArray4);
             }
         }
     }
 }