public virtual enHelperActivityType Process() { ShokoService.LastAniDBMessage = DateTime.Now; ShokoService.LastAniDBHTTPMessage = DateTime.Now; XmlDocument docAnime = AniDBHTTPHelper.GetMyListXMLFromAPI(username, password, ref xmlResult); //XmlDocument docAnime = LoadAnimeMyListFromFile(); //APIUtils.WriteToLog("AniDBHTTPCommand_GetFullAnime: " + xmlResult); if (xmlResult.Trim().Length > 0) { WriteAnimeMyListToFile(xmlResult); } if (CheckForBan(xmlResult)) { return(enHelperActivityType.NoSuchAnime); } if (docAnime != null) { myListItems = AniDBHTTPHelper.ProcessMyList(docAnime); return(enHelperActivityType.GotMyListHTTP); } else { return(enHelperActivityType.NoSuchAnime); } }
public virtual enHelperActivityType Process() { string xmlResult = AniDBHTTPHelper.GetMyListXMLFromAPI(username, password); XmlDocument docAnime = null; if (0 < xmlResult.Trim().Length) { WriteAnimeMyListToFile(xmlResult); docAnime = new XmlDocument(); docAnime.LoadXml(xmlResult); } if (docAnime != null) { myListItems = AniDBHTTPHelper.ProcessMyList(docAnime); if (myListItems != null) { return(enHelperActivityType.GotMyListHTTP); } } return(enHelperActivityType.NoSuchAnime); }