public Appointment(string _name, string _email, string _phoneNumber, DateTime _requestedDate, Pet _pet) { this.user_name = _name; this.user_email = _email; this.user_phoneNumber = _phoneNumber; this.requested_date = _requestedDate; this.appointment_pet = _pet; }
public static Pet createPet( Generic_RandomPet random, Generic_PetDetails details) { Pet currentPet = new Pet(// Pet Creation check_pet_id(random.genericPet.data.video.pet_id), check_pet_name(random.genericPet.data.video.pet.name), check_pet_race(details.genericPetDetails.data.pet.race_name), check_pet_specie(details.genericPetDetails.data.pet.species_name), check_pet_description(random.genericPet.data.video.pet.description), check_pet_nextCounts(random.genericPet.data.video.pet.next_count), check_pet_birthDate(random.genericPet.data.video.pet.date_of_birth), check_pet_createdDate(random.genericPet.data.video.pet.created_datetime), check_pet_availableUntilDate(details.genericPetDetails.data.pet.available_until), check_pet_currentVideo(random.genericPet.data.video.video_link, random.genericPet.data.video.title) ); currentPet.setDetails(// Pet details fill check_shelter_id(details.genericPetDetails.data.pet.organization_id), check_shelter_phoneNumber(details.genericPetDetails.data.pet.organization.contact_number), check_shelter_name(details.genericPetDetails.data.pet.organization.name), check_shelter_adress(details.genericPetDetails.data.pet.organization.address), check_shelter_email(details.genericPetDetails.data.pet.organization.email), check_shelter_creationDate(details.genericPetDetails.data.pet.organization.created_datetime), check_pet_videoList(details.genericPetDetails.data.pet.videos)); return currentPet; }
public videoCollection(Pet _pet) { pet = _pet; var list = new List<Video>(); list = pet.pet_videoList; //var oc = new ObservableCollection<Video>(); foreach (Video v in list) { //v.video_thumbnail = "http://img.youtube.com/vi/FMVVDm1mwvM/0.jpg"; _videos.Add(v); } }