Exemplo n.º 1
0
		public ShippingDetailsFragment(User user)
		{
			this.user = user;
		}
Exemplo n.º 2
0
        public string GetJson(User user)
        {
            #if __IOS__
            DeviceType = "iOS";
            #elif __ANDROID__
            DeviceType = "Android";
            #endif
            ShippingName = string.Format ("{0} {1}",user.FirstName, user.LastName);
            SsoToken = user.Token;
            Email = user.Email;
            Address1 = user.Address;
            Address2 = user.Address2;
            City = user.City;
            State = user.State;
            ZipCode = user.ZipCode;
            Phone = user.Phone;
            Country = user.Country;

            return Newtonsoft.Json.JsonConvert.SerializeObject (this);
        }