List of usage examples for android.os Parcel readInt
public final int readInt()
From source file:com.codebutler.farebot.transit.suica.SuicaTrip.java
private SuicaTrip(Parcel parcel) { mBalance = parcel.readLong();/*from w w w . j a v a2 s . co m*/ mConsoleType = parcel.readInt(); mProcessType = parcel.readInt(); mIsProductSale = (parcel.readInt() == 1); mIsBus = (parcel.readInt() == 1); mIsCharge = (parcel.readInt() == 1); mFare = parcel.readLong(); mTimestamp = new Date(parcel.readLong()); mRegionCode = parcel.readInt(); mRailEntranceLineCode = parcel.readInt(); mRailEntranceStationCode = parcel.readInt(); mRailExitLineCode = parcel.readInt(); mRailExitStationCode = parcel.readInt(); mBusLineCode = parcel.readInt(); mBusStopCode = parcel.readInt(); if (parcel.readInt() == 1) { mStartStation = parcel.readParcelable(Station.class.getClassLoader()); } if (parcel.readInt() == 1) { mEndStation = parcel.readParcelable(Station.class.getClassLoader()); } }
From source file:cl.smartcities.isci.transportinspector.backend.Bus.java
/** * Allows to recreate a bus from a Parcel *//* www . j a va2s .com*/ protected Bus(Parcel in) { valid = in.readInt(); service = in.readString(); licensePlate = in.readString(); time = in.readString(); distance = in.readString(); latitude = in.readDouble(); longitude = in.readDouble(); passengerNumber = in.readInt(); busIcon = in.readInt(); defaultMapBusIcon = in.readInt(); activeMapBusIcon = in.readInt(); direction = in.readString(); descriptionError = in.readString(); destination = in.readString(); origin = in.readString(); color = in.readInt(); realDistance = in.readInt(); }
From source file:it.scoppelletti.mobilepower.types.SimpleDate.java
/** * Costruttore. * * @param in Flusso di lettura. */ private SimpleDate(Parcel in) { myYear = in.readInt(); myMonth = in.readInt(); myDay = in.readInt(); }
From source file:com.fanfou.app.opensource.api.bean.User.java
public User(final Parcel in) { this.id = in.readString(); this.ownerId = in.readString(); this.createdAt = new Date(in.readLong()); this.type = in.readInt(); this.screenName = in.readString(); this.location = in.readString(); this.gender = in.readString(); this.birthday = in.readString(); this.description = in.readString(); this.profileImageUrl = in.readString(); this.url = in.readString(); this.protect = in.readInt() == 0 ? false : true; this.followersCount = in.readInt(); this.friendsCount = in.readInt(); this.favouritesCount = in.readInt(); this.statusesCount = in.readInt(); this.following = in.readInt() == 0 ? false : true; }
From source file:com.marianhello.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt()); setDesiredAccuracy(in.readInt());/*from w w w .j a va2s . c om*/ setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setLocationProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setStopOnStillActivity((Boolean) in.readValue(null)); setUrl(in.readString()); setSyncUrl(in.readString()); setSyncThreshold(in.readInt()); setMaxLocations(in.readInt()); Bundle bundle = in.readBundle(); setHttpHeaders((HashMap<String, String>) bundle.getSerializable("httpHeaders")); }
From source file:com.cas.model.SiteInfo.java
private SiteInfo(Parcel in) { this.sitename = in.readString(); this.username = in.readString(); this.firstname = in.readString(); this.lastname = in.readString(); this.fullname = in.readString(); this.userid = in.readInt(); this.siteurl = in.readString(); this.userpictureurl = in.readString(); this.downloadfiles = in.readByte() == 1; int count = in.readInt(); for (int i = 0; i < count; i++) { this.addFunction(in.readString(), in.readString()); }/*ww w. ja v a2 s.c om*/ }
From source file:com.liferay.alerts.model.Alert.java
private Alert(Parcel parcel) { _id = parcel.readLong();/*from w w w .j av a2 s. c om*/ _user = parcel.readParcelable(User.class.getClassLoader()); _userId = _user.getId(); try { _payload = new JSONObject(parcel.readString()); } catch (JSONException je) { } _read = (parcel.readInt() == 1); _timestamp = parcel.readLong(); }
From source file:com.nextgis.firereporter.ScanexNotificationItem.java
private ScanexNotificationItem(Parcel in) { dt = (Date) in.readSerializable(); X = in.readDouble();/*from ww w . j a v a 2s. co m*/ Y = in.readDouble(); nIconId = in.readInt(); nID = in.readLong(); nConfidence = in.readInt(); nPower = in.readInt(); sURL1 = in.readString(); sURL2 = in.readString(); sType = in.readString(); sPlace = in.readString(); sMap = in.readString(); mbWatched = in.readInt() == 1 ? true : false; // nFormat = in.readInt(); sCoordLat = in.readString(); sCoordLon = in.readString(); sN = in.readString(); sS = in.readString(); sW = in.readString(); sE = in.readString(); }
From source file:com.lugia.timetable.Subject.java
/** * Constructor for Parcelable./*w w w . j a v a 2 s . c om*/ * * @param parcel the parcel. */ private Subject(Parcel parcel) { mSubjectCode = parcel.readString(); mSubjectDescription = parcel.readString(); mLectureSection = parcel.readString(); mTutorialSection = parcel.readString(); mCreditHours = parcel.readInt(); mColor = parcel.readInt(); parcel.readTypedList(mSchedule = new ArrayList<Schedule>(), Schedule.CREATOR); parcel.readTypedList(mEvent = new ArrayList<Event>(), Event.CREATOR); }
From source file:com.marianhello.cordova.bgloc.Config.java
private Config(Parcel in) { setStationaryRadius(in.readFloat()); setDistanceFilter(in.readInt()); setDesiredAccuracy(in.readInt());/* w ww. jav a 2 s.c o m*/ setDebugging((Boolean) in.readValue(null)); setNotificationTitle(in.readString()); setNotificationText(in.readString()); setLargeNotificationIcon(in.readString()); setSmallNotificationIcon(in.readString()); setNotificationIconColor(in.readString()); setStopOnTerminate((Boolean) in.readValue(null)); setStartOnBoot((Boolean) in.readValue(null)); setStartForeground((Boolean) in.readValue(null)); setServiceProvider(in.readInt()); setInterval(in.readInt()); setFastestInterval(in.readInt()); setActivitiesInterval(in.readInt()); setUrl(in.readString()); setMethod(in.readString()); setHeaders((HashMap<String, String>) in.readSerializable()); setParams((HashMap<String, String>) in.readSerializable()); }