//public async Task<Stream> GetPhotoStream(string photoUri = null) //{ // if (!makeMeAvailablePosted) return null; // if (photoUri == null) // photoUri = this.Resource.GetEmbeddedResourceUri("photo"); // if (string.IsNullOrEmpty(photoUri)) // return null; // //var result = await Transport.GetResourceAsync(photoUri); // this.Photo = await GetPhotoStream(photoUri);//GetResource(photoUri); // return this.Photo ; //} public async Task <IEnumerable <UcwaAppPhoneLine> > GetPhoneLines(string uri = null) { this.Phones = await GetPhones(uri); List <UcwaAppPhoneLine> phoneList = new List <UcwaAppPhoneLine>(); foreach (var xElem in this.Phones.EmbeddedResourceElements) { var resPhone = new UcwaResource(xElem); var phoneType = resPhone.GetPropertyValue("type"); var phoneNumber = resPhone.GetPropertyValue("number"); var inConactCard = resPhone.GetPropertyValue("includeInContactCard"); phoneList.Add(new UcwaAppPhoneLine(phoneNumber, phoneType, inConactCard)); } return(phoneList.AsEnumerable()); }
public async Task <string> GetLocationCoordinates(string uri = null) { this.Location = await GetLocation(uri); return(Location.GetPropertyValue("location")); }