Speedify SDK for Android
14.6.1
|
Information about a server.
Public Member Functions | |
ServerInformation (String country, String city, int num, boolean isPrivate) | |
String | toString () |
Static Public Member Functions | |
static String | GetCountryName (String country) |
Get country name string from country code. More... | |
static String | GetCityName (String city) |
Get city name string from city code. More... | |
Public Attributes | |
String | country |
2-character ISO country code, ie: 'us'. More... | |
String | city |
City code, ie: 'atlanta'. More... | |
int | num |
Server number. More... | |
boolean | isPrivate |
Whether this is a private or public server. More... | |
boolean | isPremium |
Whether this is a premium-only server. More... | |
boolean | torrentAllowed |
Whether this server allows bittorrent/P2P. More... | |
String | dataCenter |
Data center the server is in. More... | |
List< String > | publicIP |
Public IP addresses of this server Only available on connected server calls. More... | |
com.speedify.speedifysdk.Types.ServerInformation.ServerInformation | ( | String | country, |
String | city, | ||
int | num, | ||
boolean | isPrivate | ||
) |
country | 2-character ISO country code |
city | city name |
num | server number |
isPrivate | if this server is a private, dedicated server |
|
static |
Get city name string from city code.
Returns null if city is a city-state
city | city code |
|
static |
Get country name string from country code.
country | 2-char ISO country code |
String com.speedify.speedifysdk.Types.ServerInformation.toString | ( | ) |
String com.speedify.speedifysdk.Types.ServerInformation.city |
City code, ie: 'atlanta'.
String com.speedify.speedifysdk.Types.ServerInformation.country |
2-character ISO country code, ie: 'us'.
String com.speedify.speedifysdk.Types.ServerInformation.dataCenter |
Data center the server is in.
boolean com.speedify.speedifysdk.Types.ServerInformation.isPremium |
Whether this is a premium-only server.
boolean com.speedify.speedifysdk.Types.ServerInformation.isPrivate |
Whether this is a private or public server.
int com.speedify.speedifysdk.Types.ServerInformation.num |
Server number.
Each specific server in an area is given a number unique to that region, as in "us-atlanta-3"
List<String> com.speedify.speedifysdk.Types.ServerInformation.publicIP |
Public IP addresses of this server Only available on connected server calls.
boolean com.speedify.speedifysdk.Types.ServerInformation.torrentAllowed |
Whether this server allows bittorrent/P2P.