summaryrefslogtreecommitdiff
path: root/base/src/main/java/com/smartdevicelink/proxy/rpc/SeatControlCapabilities.java
blob: cbb44fcdd297ae564d91bf045e3a62f568852e68 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
/*
 * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following
 * disclaimer in the documentation and/or other materials provided with the
 * distribution.
 *
 * Neither the name of the SmartDeviceLink Consortium, Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package com.smartdevicelink.proxy.rpc;

import androidx.annotation.NonNull;

import com.smartdevicelink.proxy.RPCStruct;

import java.util.Hashtable;

public class SeatControlCapabilities extends RPCStruct {
    public static final String KEY_MODULE_NAME = "moduleName";
    public static final String KEY_HEATING_ENABLED_AVAILABLE = "heatingEnabledAvailable";
    public static final String KEY_COOLING_ENABLED_AVAILABLE = "coolingEnabledAvailable";
    public static final String KEY_HEATING_LEVEL_AVAILABLE = "heatingLevelAvailable";
    public static final String KEY_COOLING_LEVEL_AVAILABLE = "coolingLevelAvailable";
    public static final String KEY_HORIZONTAL_POSITION_AVAILABLE = "horizontalPositionAvailable";
    public static final String KEY_VERTICAL_POSITION_AVAILABLE = "verticalPositionAvailable";
    public static final String KEY_FRONT_VERTICAL_POSITION_AVAILABLE = "frontVerticalPositionAvailable";
    public static final String KEY_BACK_VERTICAL_POSITION_AVAILABLE = "backVerticalPositionAvailable";
    public static final String KEY_BACK_TILT_ANGLE_AVAILABLE = "backTiltAngleAvailable";
    public static final String KEY_HEAD_SUPPORT_HORIZONTAL_POSITION_AVAILABLE = "headSupportHorizontalPositionAvailable";
    public static final String KEY_HEAD_SUPPORT_VERTICAL_POSITION_AVAILABLE = "headSupportVerticalPositionAvailable";
    public static final String KEY_MASSAGE_ENABLED_AVAILABLE = "massageEnabledAvailable";
    public static final String KEY_MASSAGE_MODE_AVAILABLE = "massageModeAvailable";
    public static final String KEY_MASSAGE_CUSHION_FIRMNESS_AVAILABLE = "massageCushionFirmnessAvailable";
    public static final String KEY_MEMORY_AVAILABLE = "memoryAvailable";
    public static final String KEY_MODULE_INFO = "moduleInfo";

    /**
     * Constructs a new SeatControlCapabilities object
     */
    public SeatControlCapabilities() {
    }

    /**
     * <p>Constructs a new SeatControlCapabilities object indicated by the Hashtable parameter
     * </p>
     *
     * @param hash The Hashtable to use
     */
    public SeatControlCapabilities(Hashtable<String, Object> hash) {
        super(hash);
    }

    /**
     * Constructs a newly allocated SeatControlCapabilities object
     *
     * @param moduleName short friendly name of the seat control module.
     */
    public SeatControlCapabilities(@NonNull String moduleName) {
        this();
        setModuleName(moduleName);
    }

    /**
     * Get the moduleName portion of the SeatControlCapabilities class
     *
     * @return String
     */
    public String getModuleName() {
        return getString(KEY_MODULE_NAME);
    }

    /**
     * Sets the moduleName portion of the SeatControlCapabilities class
     *
     * @param moduleName -  The short friendly name of the seat control module. It should not be used to identify a module by mobile application.
     */
    public SeatControlCapabilities setModuleName(@NonNull String moduleName) {
        setValue(KEY_MODULE_NAME, moduleName);
        return this;
    }

    /**
     * Sets the heatingEnabledAvailable portion of the SeatControlCapabilities class
     *
     * @param heatingEnabledAvailable
     */
    public SeatControlCapabilities setHeatingEnabledAvailable(Boolean heatingEnabledAvailable) {
        setValue(KEY_HEATING_ENABLED_AVAILABLE, heatingEnabledAvailable);
        return this;
    }

    /**
     * Gets the heatingEnabledAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getHeatingEnabledAvailable() {
        return getBoolean(KEY_HEATING_ENABLED_AVAILABLE);
    }

    /**
     * Sets the coolingEnabledAvailable portion of the SeatControlCapabilities class
     *
     * @param coolingEnabledAvailable
     */
    public SeatControlCapabilities setCoolingEnabledAvailable(Boolean coolingEnabledAvailable) {
        setValue(KEY_COOLING_ENABLED_AVAILABLE, coolingEnabledAvailable);
        return this;
    }

    /**
     * Gets the coolingEnabledAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getCoolingEnabledAvailable() {
        return getBoolean(KEY_COOLING_ENABLED_AVAILABLE);
    }

    /**
     * Sets the heatingLevelAvailable portion of the SeatControlCapabilities class
     *
     * @param heatingLevelAvailable
     */
    public SeatControlCapabilities setHeatingLevelAvailable(Boolean heatingLevelAvailable) {
        setValue(KEY_HEATING_LEVEL_AVAILABLE, heatingLevelAvailable);
        return this;
    }

    /**
     * Gets the heatingLevelAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getHeatingLevelAvailable() {
        return getBoolean(KEY_HEATING_LEVEL_AVAILABLE);
    }

    /**
     * Sets the coolingLevelAvailable portion of the SeatControlCapabilities class
     *
     * @param coolingLevelAvailable
     */
    public SeatControlCapabilities setCoolingLevelAvailable(Boolean coolingLevelAvailable) {
        setValue(KEY_COOLING_LEVEL_AVAILABLE, coolingLevelAvailable);
        return this;
    }

    /**
     * Gets the coolingLevelAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getCoolingLevelAvailable() {
        return getBoolean(KEY_COOLING_LEVEL_AVAILABLE);
    }

    /**
     * Sets the horizontalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @param horizontalPositionAvailable
     */
    public SeatControlCapabilities setHorizontalPositionAvailable(Boolean horizontalPositionAvailable) {
        setValue(KEY_HORIZONTAL_POSITION_AVAILABLE, horizontalPositionAvailable);
        return this;
    }

    /**
     * Gets the horizontalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getHorizontalPositionAvailable() {
        return getBoolean(KEY_HORIZONTAL_POSITION_AVAILABLE);
    }

    /**
     * Sets the verticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @param verticalPositionAvailable
     */
    public SeatControlCapabilities setVerticalPositionAvailable(Boolean verticalPositionAvailable) {
        setValue(KEY_VERTICAL_POSITION_AVAILABLE, verticalPositionAvailable);
        return this;
    }

    /**
     * Gets the verticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getVerticalPositionAvailable() {
        return getBoolean(KEY_VERTICAL_POSITION_AVAILABLE);
    }

    /**
     * Sets the frontVerticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @param frontVerticalPositionAvailable
     */
    public SeatControlCapabilities setFrontVerticalPositionAvailable(Boolean frontVerticalPositionAvailable) {
        setValue(KEY_FRONT_VERTICAL_POSITION_AVAILABLE, frontVerticalPositionAvailable);
        return this;
    }

    /**
     * Gets the frontVerticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getFrontVerticalPositionAvailable() {
        return getBoolean(KEY_FRONT_VERTICAL_POSITION_AVAILABLE);
    }

    /**
     * Sets the backVerticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @param backVerticalPositionAvailable
     */
    public SeatControlCapabilities setBackVerticalPositionAvailable(Boolean backVerticalPositionAvailable) {
        setValue(KEY_BACK_VERTICAL_POSITION_AVAILABLE, backVerticalPositionAvailable);
        return this;
    }

    /**
     * Gets the backVerticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getBackVerticalPositionAvailable() {
        return getBoolean(KEY_BACK_VERTICAL_POSITION_AVAILABLE);
    }

    /**
     * Sets the backTiltAngleAvailable portion of the SeatControlCapabilities class
     *
     * @param backTiltAngleAvailable
     */
    public SeatControlCapabilities setBackTiltAngleAvailable(Boolean backTiltAngleAvailable) {
        setValue(KEY_BACK_TILT_ANGLE_AVAILABLE, backTiltAngleAvailable);
        return this;
    }

    /**
     * Gets the backTiltAngleAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getBackTiltAngleAvailable() {
        return getBoolean(KEY_BACK_TILT_ANGLE_AVAILABLE);
    }

    /**
     * Sets the headSupportHorizontalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @param headSupportHorizontalPositionAvailable
     */
    public SeatControlCapabilities setHeadSupportHorizontalPositionAvailable(Boolean headSupportHorizontalPositionAvailable) {
        setValue(KEY_HEAD_SUPPORT_HORIZONTAL_POSITION_AVAILABLE, headSupportHorizontalPositionAvailable);
        return this;
    }

    /**
     * Gets the headSupportHorizontalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getHeadSupportHorizontalPositionAvailable() {
        return getBoolean(KEY_HEAD_SUPPORT_HORIZONTAL_POSITION_AVAILABLE);
    }

    /**
     * Sets the headSupportVerticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @param headSupportVerticalPositionAvailable
     */
    public SeatControlCapabilities setHeadSupportVerticalPositionAvailable(Boolean headSupportVerticalPositionAvailable) {
        setValue(KEY_HEAD_SUPPORT_VERTICAL_POSITION_AVAILABLE, headSupportVerticalPositionAvailable);
        return this;
    }

    /**
     * Gets the headSupportVerticalPositionAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getHeadSupportVerticalPositionAvailable() {
        return getBoolean(KEY_HEAD_SUPPORT_VERTICAL_POSITION_AVAILABLE);
    }

    /**
     * Sets the massageEnabledAvailable portion of the SeatControlCapabilities class
     *
     * @param massageEnabledAvailable
     */
    public SeatControlCapabilities setMassageEnabledAvailable(Boolean massageEnabledAvailable) {
        setValue(KEY_MASSAGE_ENABLED_AVAILABLE, massageEnabledAvailable);
        return this;
    }

    /**
     * Gets the massageEnabledAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getMassageEnabledAvailable() {
        return getBoolean(KEY_MASSAGE_ENABLED_AVAILABLE);
    }

    /**
     * Sets the massageModeAvailable portion of the SeatControlCapabilities class
     *
     * @param massageModeAvailable
     */
    public SeatControlCapabilities setMassageModeAvailable(Boolean massageModeAvailable) {
        setValue(KEY_MASSAGE_MODE_AVAILABLE, massageModeAvailable);
        return this;
    }

    /**
     * Gets the massageModeAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getMassageModeAvailable() {
        return getBoolean(KEY_MASSAGE_MODE_AVAILABLE);
    }

    /**
     * Sets the massageCushionFirmnessAvailable portion of the SeatControlCapabilities class
     *
     * @param massageCushionFirmnessAvailable
     */
    public SeatControlCapabilities setMassageCushionFirmnessAvailable(Boolean massageCushionFirmnessAvailable) {
        setValue(KEY_MASSAGE_CUSHION_FIRMNESS_AVAILABLE, massageCushionFirmnessAvailable);
        return this;
    }

    /**
     * Gets the massageCushionFirmnessAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getMassageCushionFirmnessAvailable() {
        return getBoolean(KEY_MASSAGE_CUSHION_FIRMNESS_AVAILABLE);
    }

    /**
     * Sets the memoryAvailable portion of the SeatControlCapabilities class
     *
     * @param memoryAvailable
     */
    public SeatControlCapabilities setMemoryAvailable(Boolean memoryAvailable) {
        setValue(KEY_MEMORY_AVAILABLE, memoryAvailable);
        return this;
    }

    /**
     * Gets the memoryAvailable portion of the SeatControlCapabilities class
     *
     * @return Boolean.
     */
    public Boolean getMemoryAvailable() {
        return getBoolean(KEY_MEMORY_AVAILABLE);
    }

    /**
     * Sets ModuleInfo for this capability
     *
     * @param info the ModuleInfo to be set
     */
    public SeatControlCapabilities setModuleInfo(ModuleInfo info) {
        setValue(KEY_MODULE_INFO, info);
        return this;
    }

    /**
     * Gets a ModuleInfo of this capability
     *
     * @return module info of this capability
     */
    public ModuleInfo getModuleInfo() {
        return (ModuleInfo) getObject(ModuleInfo.class, KEY_MODULE_INFO);
    }
}