blob: c3c68a82cf493c0f63fa024e3d890bb291d4ea00 (
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
|
package com.smartdevicelink.transport.enums;
/**
* Defines available types of the transports.
*/
public enum TransportType {
/**
* Transport type will be anything the multiplexing service connects to.
*/
MULTIPLEX,
/**
* Transport type is Bluetooth.
*/
BLUETOOTH,
/**
* Transport type is TCP.
*/
TCP,
USB,
/**
* Used for cloud and embedded
*/
WEB_SOCKET_SERVER,
/**
* This transport is setup to be essentially a proxy to a different transport. It allows a developer to create a
* custom transport without much effort.
*/
CUSTOM,
;
public static TransportType valueForString(String value) {
try{
return valueOf(value);
}catch(Exception e){
return null;
}
}
}
|