private void ParseTargetList(XElement node) { var to = node.Element("target_object"); if (to == null) { return; } TargetList = TwitterList.FromNode(to); }
/// <summary> /// Get single list data /// </summary> /// <param name="provider">credential provider</param> /// <param name="userScreenName">list owner user's id</param> /// <param name="listSlug">list slug</param> public static TwitterList GetList(this CredentialProvider provider, string userScreenName, string listSlug) { var para = new List <KeyValuePair <string, string> >(); if (!String.IsNullOrEmpty(userScreenName)) { para.Add(new KeyValuePair <string, string>("owner_screen_name", userScreenName)); } if (!String.IsNullOrEmpty(listSlug)) { para.Add(new KeyValuePair <string, string>("slug", OAuth.UrlEncode(listSlug, Encoding.UTF8, true))); } var list = provider.RequestAPIv1("lists/show.json", CredentialProvider.RequestMethod.GET, para).Root; if (list != null) { return(TwitterList.FromNode(list)); } return(null); }