Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string GetStateDataAsString()
- {
- var Cookies = _httpRequestProcessor.HttpHandler.CookieContainer.GetCookies(new Uri(InstaApiConstants.INSTAGRAM_URL));
- var RawCookiesList = new List<Cookie>();
- foreach (Cookie cookie in Cookies)
- {
- RawCookiesList.Add(cookie);
- }
- var state = new StateData
- {
- DeviceInfo = _deviceInfo,
- IsAuthenticated = IsUserAuthenticated,
- UserSession = _user,
- Cookies = _httpRequestProcessor.HttpHandler.CookieContainer,
- RawCookies = RawCookiesList,
- InstaApiVersion = _apiVersionType
- };
- return SerializationHelper.SerializeToString(state);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement