com.smartdevicelink.proxy.rpc.GetInteriorVehicleDataConsent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdl_java_se Show documentation
Show all versions of sdl_java_se Show documentation
The app library component of SDL is meant to run on the end userâs smart-device from within SDL enabled apps, as an embedded app, or connected to the cloud. App libraries allow the apps to connect to SDL enabled head-units and hardware through bluetooth, USB, and TCP for Android, and cloud and embedded apps can connect through web sockets, Java Beans, and other custom transports. Once the library establishes a connection between the smart device and head-unit through the preferred method of transport, the two components are able to communicate using the SDL defined protocol. The app integrating this library project is then able to expose its functionality to the head-unit through text, media, and other interactive elements.
package com.smartdevicelink.proxy.rpc;
import androidx.annotation.NonNull;
import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.RPCRequest;
import com.smartdevicelink.proxy.rpc.enums.ModuleType;
import java.util.Hashtable;
import java.util.List;
public class GetInteriorVehicleDataConsent extends RPCRequest {
public static final String KEY_MODULE_TYPE = "moduleType";
public static final String KEY_MODULE_ID = "moduleIds";
public GetInteriorVehicleDataConsent() {
super(FunctionID.GET_INTERIOR_VEHICLE_DATA_CONSENT.toString());
}
public GetInteriorVehicleDataConsent(Hashtable hash) {
super(hash);
}
/**
* @param moduleType Sets the Module Type for this class
* @param moduleIds Sets the Module Ids for this class
*/
public GetInteriorVehicleDataConsent(@NonNull ModuleType moduleType, @NonNull List moduleIds) {
this();
setModuleType(moduleType);
setModuleIds(moduleIds);
}
/**
* Sets the Module Type for this class
*
* @param type the Module Type to be set
*/
public GetInteriorVehicleDataConsent setModuleType(@NonNull ModuleType type) {
setParameters(KEY_MODULE_TYPE, type);
return this;
}
/**
* Gets the Module Type of this class
*
* @return the Module Type of this class
*/
public ModuleType getModuleType() {
return (ModuleType) getObject(ModuleType.class, KEY_MODULE_TYPE);
}
/**
* Sets the Module Ids for this class
*
* @param ids the ids to be set
*/
public GetInteriorVehicleDataConsent setModuleIds(@NonNull List ids) {
setParameters(KEY_MODULE_ID, ids);
return this;
}
/**
* Gets the Module Ids of this class
*
* @return the Module Ids
*/
@SuppressWarnings("unchecked")
public List getModuleIds() {
return (List) getObject(String.class, KEY_MODULE_ID);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy