Package net.gini.android.models
Class Extraction
- java.lang.Object
-
- net.gini.android.models.Extraction
-
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
SpecificExtraction
public class Extraction extends java.lang.Object implements android.os.Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<Extraction>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
Extraction(android.os.Parcel in)
Extraction(java.lang.String value, java.lang.String entity, Box box)
Value object for an extraction from the Gini API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
Box
getBox()
java.lang.String
getEntity()
java.lang.String
getValue()
boolean
isDirty()
void
setBox(Box newBox)
void
setIsDirty(boolean isDirty)
void
setValue(java.lang.String newValue)
void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<Extraction> CREATOR
-
-
Constructor Detail
-
Extraction
public Extraction(java.lang.String value, java.lang.String entity, @Nullable Box box)
Value object for an extraction from the Gini API.- Parameters:
value
- The extraction's value. Changing this value marks the extraction as dirty.entity
- The extraction's entity.box
- Optional the box where the extraction is found. Only available on some extractions. Changing this value marks the extraction as dirty.
-
Extraction
protected Extraction(android.os.Parcel in)
-
-
Method Detail
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String newValue)
-
getEntity
public java.lang.String getEntity()
-
getBox
public Box getBox()
-
setBox
public void setBox(Box newBox)
-
isDirty
public boolean isDirty()
-
setIsDirty
public void setIsDirty(boolean isDirty)
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-