SHARE
TWEET

Untitled

Harakter Aug 23rd, 2019 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public void LoadStateDataFromString(string json)
  2.         {
  3.             var data = SerializationHelper.DeserializeFromString<StateData>(json);
  4.             if (!IsCustomDeviceSet)
  5.                 _deviceInfo = data.DeviceInfo;
  6.             _user = data.UserSession;
  7.  
  8.             //Load Stream Edit
  9.             _httpRequestProcessor.RequestMessage.Username = data.UserSession.UserName;
  10.             _httpRequestProcessor.RequestMessage.Password = data.UserSession.Password;
  11.  
  12.             _httpRequestProcessor.RequestMessage.DeviceId = data.DeviceInfo.DeviceId;
  13.             _httpRequestProcessor.RequestMessage.PhoneId = data.DeviceInfo.PhoneGuid.ToString();
  14.             _httpRequestProcessor.RequestMessage.Guid = data.DeviceInfo.DeviceGuid;
  15.             _httpRequestProcessor.RequestMessage.AdId = data.DeviceInfo.AdId.ToString();
  16.  
  17.             foreach (var cookie in data.RawCookies)
  18.             {
  19.                 _httpRequestProcessor.HttpHandler.CookieContainer.Add(new Uri(InstaApiConstants.INSTAGRAM_URL), cookie);
  20.             }
  21.  
  22.             if (data.InstaApiVersion == null)
  23.                 data.InstaApiVersion = InstaApiVersionType.Version86;
  24.             _apiVersionType = data.InstaApiVersion.Value;
  25.             _apiVersion = InstaApiVersionList.GetApiVersionList().GetApiVersion(_apiVersionType);
  26.             _httpHelper = new HttpHelper(_apiVersion);
  27.  
  28.             IsUserAuthenticated = data.IsAuthenticated;
  29.             InvalidateProcessors();
  30.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top