Class DocumentData
java.lang.Object
com.exxothermic.audioeverywheresdk.business.model.DocumentData
Created by Cecropia on 9/12/14.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<DocumentData>
getDocumentsForCategoryResourceId
(int resourceId, android.content.Context appContext) static String
getUrlFromResourceIdOnCacheDir
(int resourceId, android.content.Context appContext) Method taht will write a file from the resources directory into the cache directory for the current device.void
setDocumentExpirationDate
(String mDocumentExpirationDate) void
setDocumentId
(String mDocumentId) void
setDocumentName
(String mDocumentName) void
setDocumentUrl
(String mDocumentUrl) toString()
-
Constructor Details
-
DocumentData
public DocumentData()
-
-
Method Details
-
toString
-
getDocumentUrl
-
setDocumentUrl
-
getDocumentName
-
setDocumentName
-
getDocumentId
-
setDocumentId
-
getDocumentExpirationDate
-
setDocumentExpirationDate
-
getDocumentsForCategoryResourceId
public static List<DocumentData> getDocumentsForCategoryResourceId(int resourceId, android.content.Context appContext) -
getUrlFromResourceIdOnCacheDir
public static String getUrlFromResourceIdOnCacheDir(int resourceId, android.content.Context appContext) Method taht will write a file from the resources directory into the cache directory for the current device. This method will return a null URL if the write fails for any reason.- Parameters:
resourceId
- the resource ID taht will be writtenappContext
- the app context that will be used to retrieve the file- Returns:
- an URL for the file written on the system memory, or null if the process fails.
-