Ejemplo n.º 1
0
        public static ProfileObject ConvertToProfileObject(MSProfileObject mspo)
        {
            ProfileObject po = new ProfileObject();

            po.Id          = mspo.id;
            po.Name        = mspo.name;
            po.PhoneNumber = mspo.phone_number;
            po.Email       = mspo.email;
            return(po);
        }
Ejemplo n.º 2
0
        public async Task <bool> PutProfileObjectAsync(ProfileObject po)
        {
            try
            {
                MSProfileObject mspo = po.ToMSObject();
                mspo.spot_id = this.Id;
                await App.MobileService.GetTable <MSProfileObject>().InsertAsync(mspo);

                return(true);
            }
            catch
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
 public static ProfileObject ConvertToProfileObject(MSProfileObject mspo)
 {
     ProfileObject po = new ProfileObject();
     po.Id = mspo.id;
     po.Name = mspo.name;
     po.PhoneNumber = mspo.phone_number;
     po.Email = mspo.email;
     return po;
 }