예제 #1
0
        public override AnimalType ParseAnimalType(HtmlNode node, string name, List <AnimalType> animalTypes, DocumentType docType)
        {
            // Rehovot API have 'dogs' stated within the url
            var animalType = "כלב";

            return(ParserUtils.ConvertAnimalType(animalType, animalTypes));
        }
예제 #2
0
        public override AnimalType ParseAnimalType(HtmlNode node, string name, List <AnimalType> animalTypes, DocumentType docType)
        {
            string animalType = string.Empty;

            if (docType == DocumentType.DOC_CATS)
            {
                animalType = "חתול";
            }
            if (docType == DocumentType.DOC_DOGS)
            {
                animalType = "כלב";
            }

            return(ParserUtils.ConvertAnimalType(animalType, animalTypes));
        }
예제 #3
0
        public virtual AnimalType ParseAnimalType(HtmlNode node, string name, List <AnimalType> animalTypes, DocumentType docType)
        {
            var animalType = node.GetAttributeValue(name, "unknown");

            return(ParserUtils.ConvertAnimalType(animalType, animalTypes));
        }