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)); }
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)); }
public virtual AnimalType ParseAnimalType(HtmlNode node, string name, List <AnimalType> animalTypes, DocumentType docType) { var animalType = node.GetAttributeValue(name, "unknown"); return(ParserUtils.ConvertAnimalType(animalType, animalTypes)); }