Esempio n. 1
0
 public static void SetMMSData()
 {
     MembershipManager._mmsData = SecurityWrapperService.Instance.MMSData;
     MembershipManager._hasAccess.InitializeByBitArray(MembershipManager._mmsData.FeatureFlags);
     MembershipManager.OnMMSUpdated();
     MembershipManager.SaveLastFlags();
 }
 private void ResetLicenseEndStartDiscovering()
 {
     this._licenseCheck      = 0f;
     this._isLicenseChecking = false;
     this._isLicenseChecked  = false;
     this._mmsDataCopy       = null;
     this._wrapper.Discover();
 }
Esempio n. 3
0
 static MembershipManager()
 {
     MembershipManager.OnMMSUpdated = () => {
     };
     MembershipManager._mmsData     = new SkyTrakSW.MMSData(IntPtr.Zero);
     MembershipManager._hasAccess   = new PermissionsSet();
     MembershipManager.InitializePermissions();
     MembershipManager._lastHistoryFlag = PlayerPrefs.GetInt("HistoryFlagKey", 0) > 0;
     MembershipManager._lastStatsFlag   = PlayerPrefs.GetInt("StatsFlagKey", 0) > 0;
 }
 private void OnMmsUpdated()
 {
     AppLog.Log("MMS was updated", true);
     try
     {
         this._mmsDataCopy = this._wrapper.CopyConnectedBoxMMSData();
         this.PrintMMS();
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         AppLog.Log(string.Concat("Copy MMS Exception: ", exception.Message), true);
         AppLog.Log(string.Concat("Stacktrace: ", exception.StackTrace), true);
     }
     this.OnMMSUpdatedAction();
 }
 private void OnConnected()
 {
     AppLog.Log("OnConnected EVENT", true);
     try
     {
         this._saveBoxParamsToLog = true;
         this._mmsDataCopy        = this._wrapper.CopyConnectedBoxMMSData();
         this.PrintMMS();
         if (this._isFWUpgradeAvailable)
         {
             this.UpgradeFirmware();
         }
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         AppLog.Log(string.Concat("Copy MMS Exception: ", exception.Message), true);
         AppLog.Log(string.Concat("Stacktrace: ", exception.StackTrace), true);
     }
     this._configWasChanged = false;
 }
 void Security.ISkyTrakSW.UpdateMMS()
 {
     if (this.GetNetworkState() != STSWNetworkStateType.STSW_NETWORK_VERIFIED_ONLINE)
     {
         return;
     }
     this._isLicenseChecked  = false;
     this._isLicenseChecking = false;
     this._mmsDataCopy       = null;
     if (this._wrapper != null)
     {
         try
         {
             this._wrapper.UpdateConnectedBoxMMSData();
         }
         catch (Exception exception1)
         {
             Exception exception = exception1;
             AppLog.Log(string.Concat("Exception during update MMS: ", exception.Message), true);
         }
     }
 }