Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public string GetStateDataAsString()
  2. {
  3.  
  4. var Cookies = _httpRequestProcessor.HttpHandler.CookieContainer.GetCookies(new Uri(InstaApiConstants.INSTAGRAM_URL));
  5. var RawCookiesList = new List<Cookie>();
  6. foreach (Cookie cookie in Cookies)
  7. {
  8. RawCookiesList.Add(cookie);
  9. }
  10.  
  11. var state = new StateData
  12. {
  13. DeviceInfo = _deviceInfo,
  14. IsAuthenticated = IsUserAuthenticated,
  15. UserSession = _user,
  16. Cookies = _httpRequestProcessor.HttpHandler.CookieContainer,
  17. RawCookies = RawCookiesList,
  18. InstaApiVersion = _apiVersionType
  19. };
  20. return SerializationHelper.SerializeToString(state);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement