summaryrefslogtreecommitdiff
path: root/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/StationIDNumber.java
blob: a8e926a2b8dec3e2596da9a8e8e7c804dac39869 (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
package com.smartdevicelink.proxy.rpc;

import com.smartdevicelink.proxy.RPCStruct;

import java.util.Hashtable;

public class StationIDNumber extends RPCStruct {
	public static final String KEY_COUNTRY_CODE = "countryCode";
	public static final String KEY_FCC_FACILITY_ID = "fccFacilityId";

	public StationIDNumber() {
	}

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

	/**
	 * Sets the countryCode portion of the StationIDNumber class
	 *
	 * @param countryCode Binary Representation of ITU Country Code. USA Code is 001.
	 */
	public void setCountryCode(Integer countryCode) {
		setValue(KEY_COUNTRY_CODE, countryCode);
	}

	/**
	 * Gets the countryCode portion of the StationIDNumber class
	 *
	 * @return Integer - Binary Representation of ITU Country Code. USA Code is 001.
	 */
	public Integer getCountryCode() {
		return getInteger(KEY_COUNTRY_CODE);
	}

	/**
	 * Sets the fccFacilityId portion of the StationIDNumber class
	 *
	 * @param fccFacilityId Binary representation  of unique facility ID assigned by the FCC; FCC controlled for U.S. territory.
	 */
	public void setFccFacilityId(Integer fccFacilityId) {
		setValue(KEY_FCC_FACILITY_ID, fccFacilityId);
	}

	/**
	 * Gets the fccFacilityId portion of the StationIDNumber class
	 *
	 * @return Integer - Binary representation  of unique facility ID assigned by the FCC; FCC controlled for U.S. territory.
	 */
	public Integer getFccFacilityId() {
		return getInteger(KEY_FCC_FACILITY_ID);
	}

}