Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class SdlMsgVersion

Hierarchy

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

Package
com.smartdevicelink.proxy.rpc

Overview

Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using.

Parameter List

Name Type Description SmartDeviceLink Ver. Available
majorVersion Integer
  • minvalue="1"
  • maxvalue="10"
SmartDeviceLink 1.0
minorVersion Integer
  • minvalue="0"
  • maxvalue="1000"
SmartDeviceLink 1.0

Fields

KEY_MAJOR_VERSION

public static final java.lang.String KEY_MAJOR_VERSION
Constant Value
"majorVersion"

KEY_MINOR_VERSION

public static final java.lang.String KEY_MINOR_VERSION
Constant Value
"minorVersion"

KEY_PATCH_VERSION

public static final java.lang.String KEY_PATCH_VERSION
Constant Value
"patchVersion"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

SdlMsgVersion()

Constructs a newly allocated SdlMsgVersion object

public SdlMsgVersion()

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

Constructs a newly allocated SdlMsgVersion object indicated by the Hashtable parameter

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

Parameters

hash
The Hashtable to use

SdlMsgVersion( Integer majorVersion, Integer minorVersion )

Constructs a newly allocated SdlMsgVersion object

public SdlMsgVersion(Integer majorVersion,Integer minorVersion)

Parameters

majorVersion
minvalue="1" and maxvalue="10"
minorVersion
min: 0; max: 1000

Methods

format( Version rpcVersion, boolean formatParams )

public void format(Version rpcVersion,boolean formatParams)

Parameters

rpcVersion
formatParams

getMajorVersion()

public java.lang.Integer getMajorVersion()

setMajorVersion( Integer majorVersion )

Set major version

  • minvalue="1"
  • maxvalue="10"

public void setMajorVersion(Integer majorVersion)

Parameters

majorVersion
minvalue="1" and maxvalue="10"

getMinorVersion()

Get minor version

  • minvalue="0"
  • maxvalue="1000"

public java.lang.Integer getMinorVersion()

setMinorVersion( Integer minorVersion )

Set minor version

  • minvalue="0"
  • maxvalue="1000"

public void setMinorVersion(Integer minorVersion)

Parameters

minorVersion
min: 0; max: 1000

getPatchVersion()

Get patch version

  • minvalue="0"
  • maxvalue="1000"

public java.lang.Integer getPatchVersion()

setPatchVersion( Integer patchVersion )

Set patch version

  • minvalue="0"
  • maxvalue="1000"

public void setPatchVersion(Integer patchVersion)

Parameters

patchVersion
min: 0; max: 1000

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section