public virtual AniDBUDPResponseCode Process()
        {
            XmlDocument docAnime = AniDBHTTPHelper.GetVotesXMLFromAPI(username, password);

            //APIUtils.WriteToLog("AniDBHTTPCommand_GetFullAnime: " + xmlResult);
            if (docAnime != null)
            {
                myVotes = AniDBHTTPHelper.ProcessVotes(docAnime);
                return(AniDBUDPResponseCode.GotVotesHTTP);
            }

            return(AniDBUDPResponseCode.NoSuchAnime);
        }
Example #2
0
        public virtual enHelperActivityType Process()
        {
            XmlDocument docAnime = AniDBHTTPHelper.GetVotesXMLFromAPI(username, password, ref xmlResult);

            if (CheckForBan(xmlResult))
            {
                return(enHelperActivityType.NoSuchAnime);
            }

            //APIUtils.WriteToLog("AniDBHTTPCommand_GetFullAnime: " + xmlResult);
            if (docAnime != null)
            {
                myVotes = AniDBHTTPHelper.ProcessVotes(docAnime);
                return(enHelperActivityType.GotVotesHTTP);
            }

            return(enHelperActivityType.NoSuchAnime);
        }