public SearchResult(Parcel in) { type = in.readInt(); title = in.readString(); double latitude = in.readDouble(); double longitude = in.readDouble(); coordinates = getPoint(latitude, longitude); }
private void readFromParcel(Parcel in) { this.id = in.readInt(); this.name = in.readString(); this.lon = in.readDouble(); this.lat = in.readDouble(); this.mapZoom = in.readDouble(); }
private Venue(Parcel in) { this.name = in.readString(); this.description = in.readString(); this.latitude = in.readDouble(); this.longitude = in.readDouble(); this.type = in.readString(); this.address = in.readString(); }
public Place(Parcel in) { name = in.readString(); description = in.readString(); imageID = in.readInt(); latitude = in.readDouble(); longitude = in.readDouble(); category = in.readInt(); }
/** * Create a Location model object from a Parcel. This function is called via the Parcelable * creator. * * @param p The Parcel used to populate the Model fields. */ public Location(Parcel p) { // TODO - fill in here this.name = p.readString(); this.address = p.readString(); this.longitude = p.readDouble(); this.latitude = p.readDouble(); }
public Passenger(Parcel source) { entry_lat = source.readDouble(); entry_lon = source.readDouble(); entry_time = source.readString(); exit_lat = source.readDouble(); exit_lon = source.readDouble(); exit_time = source.readString(); }
public MedicationPlan createFromParcel(Parcel source) { MedicationPlan mMedicationPlan = new MedicationPlan(); mMedicationPlan.applied_dose_morning = source.readDouble(); mMedicationPlan.applied_dose_noon = source.readDouble(); mMedicationPlan.applied_dose_evening = source.readDouble(); mMedicationPlan.applied_dose_night = source.readDouble(); return mMedicationPlan; }
private Loan(Parcel in) { this.amountLoan = in.readDouble(); this.interestRatePerAnnum = in.readDouble(); this.lifeTime = in.readInt(); this.mode = (RepaymentMode) in.readSerializable(); this.time = (RepaymentPeriod) in.readSerializable(); this.processingFee = in.readDouble(); this.activityCharge = in.readInt(); }
/** * A constructor for implementing the Driver as a Parcelable. * * @param source The source Parcel */ public Driver(Parcel source) { id = source.readInt(); fee = source.readDouble(); licenseId = source.readString(); insuranceId = source.readString(); balance = source.readDouble(); active = source.readByte() != 0; source.readList(requests, Request.class.getClassLoader()); }
private Coupon(Parcel p) { this.id = p.readInt(); this.couponType = p.readString(); this.alcoholType = p.readString(); this.alcoholSpecifics = p.readString(); this.originalPrice = p.readDouble(); this.newPrice = p.readDouble(); this.numRemaining = p.readInt(); this.timeRemaining = p.readInt(); }
public MovieItem(Parcel in) { id = in.readInt(); poster = in.readString(); backdrop = in.readString(); title = in.readString(); overview = in.readString(); voteAverage = in.readDouble(); popularity = in.readDouble(); releaseDate = in.readString(); // isFavorite = in.readByte() != 0; //myBoolean == true if byte != 0 }
public PointOfInterest(Parcel in) { this.name = in.readString(); this.id = in.readString(); this.latLng = new LatLng(in.readDouble(), in.readDouble()); this.distance = in.readFloat(); this.address = in.readString(); this.phonenumber = in.readString(); this.websiteUri = Uri.parse(in.readString()); this.wikiLink = ""; this.placeTypes = in.readArrayList(Integer.class.getClassLoader()); this.img = in.readInt(); }
@Override public RoomLocationEntry createFromParcel(Parcel source) { RoomLocationEntry mEntry = new RoomLocationEntry(); mEntry.setLatitude(source.readDouble()); mEntry.setLongitude(source.readDouble()); mEntry.setBuildingName(source.readString()); mEntry.setRoomName(source.readString()); mEntry.setProductivity(source.readInt()); mEntry.setCapacity(source.readInt()); mEntry.setAglCrowd(source.readInt()); mEntry.setLocal(source.readByte() == (byte) 1); return mEntry; }
protected PersonKnown(Parcel in) { this.adult = in.readByte() != 0; this.backdropPath = in.readString(); this.id = in.readLong(); this.originalTitle = in.readString(); this.releaseDate = in.readString(); this.posterPath = in.readString(); this.popularity = in.readDouble(); this.title = in.readString(); this.voteAverage = in.readDouble(); this.voteCount = in.readLong(); this.mediaType = in.readString(); }
public Observation(Parcel parcel) { id = parcel.readInt(); publidate = parcel.readLong(); lat = parcel.readDouble(); lng = parcel.readDouble(); distance = parcel.readDouble(); nom = parcel.readString(); description = parcel.readString(); nb_commentaires = parcel.readInt(); observateur = parcel.readParcelable(Observateur.class.getClassLoader()); notes = parcel.readParcelable(Notes.class.getClassLoader()); photos = new ArrayList<>(); parcel.readList(photos, getClass().getClassLoader()); }
private Departure(Parcel in) { this.Actual = in.readByte() != 0; this.BlockNumber = in.readInt(); this.DepartureText = in.readString(); this.DepartureTime = new Date(in.readLong()); this.Description = in.readString(); this.Gate = in.readString(); this.Route = in.readString(); this.RouteDirection = Direction.fromValue(in.readInt()); this.Terminal = in.readString(); this.VehicleHeading = in.readInt(); this.VehicleLatitude = in.readDouble(); this.VehicleLongitude = in.readDouble(); }
/** * Private constructor provided for the CREATOR interface, which is used to de-marshal an * WeatherData from the Parcel of data. * * <p>The order of reading in variables HAS TO MATCH the order in writeToParcel(Parcel, int) * * @param in */ private WeatherData(Parcel in) { mMessage = in.readString(); mName = in.readString(); mDate = in.readLong(); mCod = in.readLong(); mWeathers.add(new Weather(in.readLong(), in.readString(), in.readString(), in.readString())); mSys = new Sys(in.readLong(), in.readLong(), in.readString()); mMain = new Main(in.readDouble(), in.readLong(), in.readDouble()); mWind = new Wind(in.readDouble(), in.readDouble()); }
protected ModelMovie(Parcel in) { _id = in.readInt(); backdropPath = in.readString(); movieId = in.readString(); movieTitle = in.readString(); originalLanguage = in.readString(); overview = in.readString(); releaseDate = in.readString(); posterPath = in.readString(); moviePopularity = in.readDouble(); averageVote = in.readDouble(); voteCount = in.readInt(); postingTime = in.readLong(); sortGroup = in.readString(); }
private ForecastBundle(Parcel parcel) { startTime = parcel.readString(); endTime = parcel.readString(); startDate = parcel.readString(); endDate = parcel.readString(); weather_code = parcel.readInt(); period_code = parcel.readInt(); weather_name = parcel.readString(); wind_direction = parcel.readString(); direction_name = parcel.readString(); rain = parcel.readDouble(); wind_speed = parcel.readDouble(); speed_name = parcel.readString(); temperature = parcel.readInt(); }
@Override public Cinema createFromParcel(Parcel source) { Cinema cinema = new Cinema(); cinema.id = source.readString(); cinema.cityName = source.readString(); cinema.cinemaName = source.readString(); cinema.address = source.readString(); cinema.telephone = source.readString(); cinema.latitude = source.readDouble(); cinema.longitude = source.readDouble(); cinema.trafficRoutes = source.readString(); cinema.distance = source.readString(); return cinema; }
private HourWeather(Parcel in) { time = in.readLong(); summary = in.readString(); temperature = in.readDouble(); icon = in.readString(); timezone = in.readString(); }
private Day(Parcel in) { mTime = in.readLong(); mSummary = in.readString(); mTemperatureMax = in.readDouble(); mIcon = in.readString(); mTimeZone = in.readString(); }
/** * Required for making Beacon parcelable * * @param in parcel */ protected Beacon(Parcel in) { int size = in.readInt(); this.mIdentifiers = new ArrayList<Identifier>(size); for (int i = 0; i < size; i++) { mIdentifiers.add(Identifier.parse(in.readString())); } mDistance = in.readDouble(); mRssi = in.readInt(); mTxPower = in.readInt(); mBluetoothAddress = in.readString(); mBeaconTypeCode = in.readInt(); mServiceUuid = in.readInt(); int dataSize = in.readInt(); this.mDataFields = new ArrayList<Long>(dataSize); for (int i = 0; i < dataSize; i++) { mDataFields.add(in.readLong()); } int extraDataSize = in.readInt(); if (LogManager.isVerboseLoggingEnabled()) { LogManager.d(TAG, "reading " + extraDataSize + " extra data fields from parcel"); } this.mExtraDataFields = new ArrayList<Long>(extraDataSize); for (int i = 0; i < extraDataSize; i++) { mExtraDataFields.add(in.readLong()); } mManufacturer = in.readInt(); mBluetoothName = in.readString(); }
private Quiz(Parcel in) { this.id = in.readLong(); this.title = in.readString(); this.mobile_url = in.readString(); this.html_url = in.readString(); this.description = in.readString(); this.quiz_type = in.readString(); this.lock_info = in.readParcelable(LockInfo.class.getClassLoader()); this.assignment = in.readParcelable(Assignment.class.getClassLoader()); this.permissions = in.readParcelable(QuizPermission.class.getClassLoader()); this.allowed_attempts = in.readInt(); this.question_count = in.readInt(); this.points_possible = in.readDouble(); this.due_at = in.readString(); this.time_limit = in.readInt(); this.access_code = in.readString(); this.ip_filter = in.readString(); this.locked_for_user = in.readByte() != 0; this.lock_explanation = in.readString(); this.hide_results = in.readString(); this.unlock_at = in.readString(); this.one_time_results = in.readByte() != 0; this.lock_at = in.readString(); in.readStringArray(this.question_types); this.has_access_code = in.readByte() != 0; }
private Hour(Parcel parcel) { mTemperature = parcel.readDouble(); mTime = parcel.readLong(); mTimezone = parcel.readString(); mIcon = parcel.readString(); mSummary = parcel.readString(); }
protected DiscoverResultMovie(Parcel in) { this.adult = in.readByte() != 0; this.backdrop_path = in.readString(); this.genre_ids = new ArrayList<Integer>(); in.readList(this.genre_ids, List.class.getClassLoader()); this.id = in.readDouble(); this.original_language = in.readString(); this.original_title = in.readString(); this.overview = in.readString(); this.poster_path = in.readString(); this.release_date = in.readString(); this.title = in.readString(); this.video = in.readByte() != 0; this.vote_average = in.readDouble(); this.vote_count = in.readDouble(); }
public void readToParcel(Parcel source) { setSplitTransId(source.readInt()); setTransId(source.readInt()); setCategId(source.readInt()); setSubCategId(source.readInt()); setSplitTransAmount(source.readDouble()); }
private Hour(Parcel in) { mTime = in.readLong(); mTemperature = in.readDouble(); mSummary = in.readString(); mIcon = in.readString(); mTimezone = in.readString(); }
/** Private constructor for Parcelable. */ private Station(Parcel in) { stationid = in.readString(); stationname = in.readString(); stationlatitude = in.readDouble(); stationlongitude = in.readDouble(); stationaltitude = in.readDouble(); streetadress = in.readString(); zipcode = in.readString(); city = in.readString(); areatype = in.readString(); stationtype = in.readString(); remark = in.readString(); firstmeasurement = in.readString(); lastemeasurement = in.readString(); active = in.readInt(); }
// Parcelable management private Phone(final Parcel in) { serverId = in.readLong(); name = in.readString(); manufacturer = in.readString(); androidVersion = in.readString(); screenSize = in.readDouble(); price = in.readInt(); }