-
- All Implemented Interfaces:
-
android.os.Parcelable
public class Document implements Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumDocument.ProcessingStateThe possible processing states of a document.
public enumDocument.SourceClassification
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<Document>CREATORpublic final static intCONTENTS_FILE_DESCRIPTORpublic final static intPARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and Type Method Description StringgetId()The document's unique identifier. Document.ProcessingStategetState()The document's processing state. intgetPageCount()The number of pages. StringgetFilename()The document's filename (as stated on upload). DategetCreationDate()The document's creation date. UrigetUri()List<Uri>getCompositeDocuments()List<Uri>getPartialDocuments()Document.SourceClassificationgetSourceClassification()Classification of the source file. static DocumentfromApiResponse(JSONObject responseData)Creates a new document instance from the JSON data usually returned by the Gini API. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)-
-
Method Detail
-
getState
Document.ProcessingState getState()
The document's processing state.
-
getPageCount
int getPageCount()
The number of pages.
-
getFilename
String getFilename()
The document's filename (as stated on upload).
-
getCreationDate
Date getCreationDate()
The document's creation date.
-
getCompositeDocuments
List<Uri> getCompositeDocuments()
-
getPartialDocuments
List<Uri> getPartialDocuments()
-
getSourceClassification
Document.SourceClassification getSourceClassification()
Classification of the source file.
-
fromApiResponse
static Document fromApiResponse(JSONObject responseData)
Creates a new document instance from the JSON data usually returned by the Gini API.
- Parameters:
responseData- The response data.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-