summaryrefslogtreecommitdiff
path: root/base/src/main/java/com/smartdevicelink/proxy/rpc/ReleaseInteriorVehicleDataModule.java
blob: a45ec70b293914a4db7b0ea2c6c1b96b9678a826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.smartdevicelink.proxy.rpc;

import android.support.annotation.NonNull;

import com.smartdevicelink.protocol.enums.FunctionID;
import com.smartdevicelink.proxy.RPCRequest;
import com.smartdevicelink.proxy.rpc.enums.ModuleType;

import java.util.Hashtable;

public class ReleaseInteriorVehicleDataModule extends RPCRequest {
    public static final String KEY_MODULE_TYPE = "moduleType";
    public static final String KEY_MODULE_ID = "moduleId";

    public ReleaseInteriorVehicleDataModule() {
        super(FunctionID.RELEASE_INTERIOR_VEHICLE_MODULE.toString());
    }

    public ReleaseInteriorVehicleDataModule(Hashtable<String, Object> hash) {
        super(hash);
    }

    /**
     * @param moduleType Sets the Module Type for this class
     */
    public ReleaseInteriorVehicleDataModule(@NonNull ModuleType moduleType){
        this();
        setModuleType(moduleType);
    }

    /**
     * Sets the Module Type for this class
     * @param type the Module Type to be set
     */
    public void setModuleType(ModuleType type) {
        setParameters(KEY_MODULE_TYPE, type);
    }

    /**
     * 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 id the ids to be set
     */
    public void setModuleId(String id) {
        setParameters(KEY_MODULE_ID, id);
    }

    /**
     * Gets the Module Id of this class
     * @return the Module Ids
     */
    public String getModuleId() {
        return getString(KEY_MODULE_ID);
    }
}