Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
GetFileResponse

Class GetFileResponse

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct
         com.smartdevicelink.proxy.RPCMessage
             com.smartdevicelink.proxy.RPCResponse

Package
com.smartdevicelink.proxy.rpc

Fields

KEY_OFFSET

public static final java.lang.String KEY_OFFSET
Constant Value
"offset"

KEY_LENGTH

public static final java.lang.String KEY_LENGTH
Constant Value
"length"

KEY_FILE_TYPE

public static final java.lang.String KEY_FILE_TYPE
Constant Value
"fileType"

KEY_CRC

public static final java.lang.String KEY_CRC
Constant Value
"crc"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCResponse KEY_SUCCESS, KEY_INFO, KEY_RESULT_CODE
com.smartdevicelink.proxy.RPCMessage KEY_REQUEST, KEY_RESPONSE, KEY_NOTIFICATION, KEY_FUNCTION_NAME, KEY_PARAMETERS, KEY_CORRELATION_ID, messageType, parameters, function
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

GetFileResponse()

Constructs a new PublishAppServiceResponse object

public GetFileResponse()

GetFileResponse( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

public GetFileResponse(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Constructor Parameters

hash

GetFileResponse( Boolean success, Result resultCode )

Constructs a new PublishAppServiceResponse object

public GetFileResponse(Boolean success,Result resultCode)

Constructor Parameters

success
whether the request is successfully processed
resultCode
whether the request is successfully processed

Methods

setFileType( FileType fileType )

File type that is being sent in response

public com.smartdevicelink.proxy.rpc.GetFileResponse setFileType(FileType fileType)

Method Parameters

fileType
-

getFileType()

File type that is being sent in response

public com.smartdevicelink.proxy.rpc.enums.FileType getFileType()

setOffset( Integer offset )

Optional offset in bytes for resuming partial data chunks minvalue="0" maxvalue="2000000000"

public com.smartdevicelink.proxy.rpc.GetFileResponse setOffset(Integer offset)

Method Parameters

offset
-

getOffset()

Optional offset in bytes for resuming partial data chunks minvalue="0" maxvalue="2000000000"

public java.lang.Integer getOffset()

setLength( Integer length )

Optional length in bytes for resuming partial data chunks if offset is set to 0, then length is the total length of the file to be downloaded minvalue="0" maxvalue="2000000000"

public com.smartdevicelink.proxy.rpc.GetFileResponse setLength(Integer length)

Method Parameters

length
-

getLength()

Optional length in bytes for resuming partial data chunks if offset is set to 0, then length is the total length of the file to be downloaded minvalue="0" maxvalue="2000000000"

public java.lang.Integer getLength()

setCRC( Integer crc )

Additional CRC32 checksum to protect data integrity up to 512 Mbits minvalue="0" maxvalue="4294967295"

public com.smartdevicelink.proxy.rpc.GetFileResponse setCRC(Integer crc)

Method Parameters

crc
-

getCRC()

Additional CRC32 checksum to protect data integrity up to 512 Mbits minvalue="0" maxvalue="4294967295"

public java.lang.Integer getCRC()

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCResponse getCorrelationID, setCorrelationID, getSuccess, setSuccess, getResultCode, setResultCode, getInfo, setInfo
com.smartdevicelink.proxy.RPCMessage getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section