/// <summary> /// Downloads the pet attributs. /// </summary> /// <returns>The pet attributs.</returns> /// <param name="petID">Pet identifier.</param> public List <PetAttribute> DownloadPetAttributs(int petID) { List <PetAttribute> petAttributes = new List <PetAttribute>(); //get amount of pet attributes int amount = ServerHelper.DownloadAmountOfAttributs(petID).Size; //foreach attribute for (int i = 0; i < amount; i++) { //download attribute PetAttribute petAttribute = ServerHelper.DownloadAttribut(petID, i).PetAttribut; //if attribute isn't null if (petAttribute != null) { petAttributes.Add(petAttribute); } } return(petAttributes); }