public static Android.Runtime.JavaList ToJavaList(this JArray array) { Android.Runtime.JavaList list = new Android.Runtime.JavaList(); foreach (JToken token in array.ToList()) { list.Add(ProcessArrayEntry2(token.ToObject <object>())); } return(list); }
public void SaveFromResponse(HttpUrl url, IList <Cookie> cookies) { var cookieStrings = new Android.Runtime.JavaList <string>(); foreach (var cookie in cookies) { cookieStrings.Add(CookieToString(cookie)); } var map = new Android.Runtime.JavaDictionary <string, IList <string> > { { "Set-Cookie", cookieStrings } }; _cookieManager.Put(url.Uri(), map); }