public void fromYiLong(ELongHotelAdapter hotel) { this.hotelId = hotel.Hotel_id; this.hotelName = hotel.Hotel_name; this.hotelNameEn = hotel.Hotel_name_en; this.addTime = ELongStaticClient.ParseDateTime(hotel.Addtime); this.delTime = ELongStaticClient.ParseDateTime(hotel.DelTime); this.modifyTime = ELongStaticClient.ParseDateTime(hotel.Modifytime); this.isreserve = ObjectUtil.Parse(hotel.Isreserve, RESERVE_DELETED); }
public void from(ELongHotelDetailAdapter adapter) { this.id = adapter.id; this.dateUpdated = ELongStaticClient.ParseDateTime(adapter.dateUpdated); this.name = adapter.name; this.address = adapter.address; this.zip = adapter.zip; this.category = ObjectUtil.ParseInt(adapter.category, 0); this.typology = adapter.typology; this.roomNumber = ObjectUtil.ParseInt(adapter.roomNumber, 0); this.availPolicy = adapter.availPolicy; this.activationDate = ELongStaticClient.ParseDateTime(adapter.activationDate); this.usersRating = ObjectUtil.ParseInt(adapter.usersRating, 0); this.elongRanking = ObjectUtil.ParseInt(adapter.elongRanking, 0); this.templateType = adapter.templateType; this.translations = adapter.translations; this.doublePriceMin = ObjectUtil.ParseDouble(adapter.doublePriceMin, 0); this.doublePriceMax = ObjectUtil.ParseDouble(adapter.doublePriceMax, 0); this.currency = adapter.currency; this.lat = ObjectUtil.ParseDouble(adapter.lat, 0); this.lon = ObjectUtil.ParseDouble(adapter.lon, 0); this.country = adapter.country; this.region = adapter.region; this.city = adapter.city; this.province = adapter.province; this.businessZone = adapter.businessZone; this.district = adapter.district; this.propertyUrl = adapter.propertyUrl; this.introEditor = adapter.introEditor; this.ccAccepted = adapter.ccAccepted; this.description = adapter.description; this.phone = adapter.Phone; this.fax = adapter.Fax; this.openingDate = ELongStaticClient.ParseDateTime(adapter.OpeningDate); this.renovationDate = ELongStaticClient.ParseDateTime(adapter.RenovationDate); this.star = ObjectUtil.ParseInt(adapter.star, 0); this.brandId = adapter.brandID; this.iseconomic = ObjectUtil.Parse(adapter.iseconomic, "0"); this.isapartment = ObjectUtil.Parse(adapter.Isapartment, "0"); this.trafficGuide = adapter.exTrafficGuide; this.trafficOverview = adapter.exTrafficOverview; this.generalOverview = adapter.exGeneralOverview; this.recreationOverview = adapter.exRecreationOverview; this.roomOverview = adapter.exRoomOverview; this.conferenceOverview = adapter.exConferenceOverview; this.dinnerOverview = adapter.exDinnerOverview; this.generalArray = adapter.exGeneranArray; this.recreationArray = adapter.exRecreationArray; this.roomArray = adapter.exRoomArray; this.conferenceArray = adapter.exConferenceArray; this.dinnerArray = adapter.exDinnerArray; }
public void from(ELongBrandAdapter brand) { this.brandID = brand.brandID; this.groupID = brand.groupId; this.brandName = brand.brandName; this.brandNameLong = brand.brandNameLong; this.brandFirstLetter = brand.brandFirstletter; this.brandPinYin = brand.brandPinYin; this.picURL = brand.picURL; this.brandURL = brand.brandURL; this.hotelCount = ObjectUtil.ParseInt(brand.hotelCount, 0); this.lastChangetime = ELongStaticClient.ParseDateTime(brand.lastChangetime); }