コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }