public class ZendriveShiftDetail extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ZendriveShiftDetail> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ZendriveShiftDetail(ArrayList<ZendriveShiftInterval> shiftIntervals,
String timezone,
String shiftId,
String shiftName)
Creates a
ZendriveShiftDetail object with given list of ZendriveShiftInterval ,
timezone, shift id and shift name (optional). |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getShiftId()
Get the unique id for the shift set by the fleet manager.
|
ArrayList<ZendriveShiftInterval> |
getShiftIntervals()
Get the list of
ZendriveShiftInterval objects. |
String |
getShiftName()
Get the shift name set by the fleet manager.
|
String |
getTimezone()
Get the timezone set by the fleet manager.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<ZendriveShiftDetail> CREATOR
public ZendriveShiftDetail(@NonNull ArrayList<ZendriveShiftInterval> shiftIntervals, @NonNull String timezone, @NonNull String shiftId, String shiftName)
ZendriveShiftDetail
object with given list of ZendriveShiftInterval
,
timezone, shift id and shift name (optional).shiftIntervals
- List of ZendriveShiftInterval
objects. Each element of the
list represents a single shift interval with start and end time.timezone
- Timezone as set by the fleet manager.shiftId
- Shift id as set by the fleet manager.shiftName
- Shift name as set by the fleet manager.public ArrayList<ZendriveShiftInterval> getShiftIntervals()
ZendriveShiftInterval
objects.public String getTimezone()
public String getShiftId()
public String getShiftName()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable