Document

public class Document implements Parcelable

Constructors

Document
Link copied to clipboard
void Document(String id, Document.ProcessingState state, String filename, Integer pageCount, Date creationDate, Document.SourceClassification sourceClassification, Uri uri, List<Uri> compositeDocuments, List<Uri> partialDocuments)

Types

ProcessingState
Link copied to clipboard
public enum ProcessingState
The possible processing states of a document.
SourceClassification
Link copied to clipboard
public enum SourceClassification

Functions

describeContents
Link copied to clipboard
int describeContents()
fromApiResponse
Link copied to clipboard
static Document fromApiResponse(JSONObject responseData)
Creates a new document instance from the JSON data usually returned by the Gini API.
getCompositeDocuments
Link copied to clipboard
List<UrigetCompositeDocuments()
getCreationDate
Link copied to clipboard
Date getCreationDate()
The document's creation date.
getFilename
Link copied to clipboard
String getFilename()
The document's filename (as stated on upload).
getId
Link copied to clipboard
String getId()
The document's unique identifier.
getPageCount
Link copied to clipboard
int getPageCount()
The number of pages.
getPartialDocuments
Link copied to clipboard
List<UrigetPartialDocuments()
getSourceClassification
Link copied to clipboard
Classification of the source file.
getState
Link copied to clipboard
Document.ProcessingState getState()
The document's processing state.
getUri
Link copied to clipboard
Uri getUri()
writeToParcel
Link copied to clipboard
void writeToParcel(Parcel dest, int flags)

Properties

CREATOR
Link copied to clipboard
public final static Parcelable.Creator<DocumentCREATOR