public enum Version extends Enum<Version>
Enum Constant and Description |
---|
LATEST
convenience enum to provide simple access to the latest supported Graph API Version.
|
UNVERSIONED
unversiond api
|
VERSION_1_0
Deprecated.
use
VERSION_2_2 instead |
VERSION_2_0
Deprecated.
use
VERSION_2_2 instead |
VERSION_2_1
Deprecated.
use
VERSION_2_2 instead |
VERSION_2_2
Graph API 2.2, available until March 25, 2017
|
VERSION_2_3
Graph API 2.3, available until July 8, 2017
|
VERSION_2_4
Graph API 2.4, available until October 7, 2017
|
VERSION_2_5
Graph API 2.5, available until April 12, 2018
|
VERSION_2_6
Graph API 2.6, available until July 13, 2018
|
VERSION_2_7
Graph API 2.7, available until October 5, 2018
|
VERSION_2_8
Graph API 2.8, available at least until October 2018
|
Modifier and Type | Method and Description |
---|---|
String |
getUrlElement() |
static Version |
getVersionFromString(String urlElement)
converts a String (for example the url paramter) into a Version object
|
boolean |
isNewDeviceTokenMethod() |
boolean |
isUrlElementRequired() |
static Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Version UNVERSIONED
@Deprecated public static final Version VERSION_1_0
VERSION_2_2
instead@Deprecated public static final Version VERSION_2_0
VERSION_2_2
instead@Deprecated public static final Version VERSION_2_1
VERSION_2_2
insteadpublic static final Version VERSION_2_2
public static final Version VERSION_2_3
public static final Version VERSION_2_4
public static final Version VERSION_2_5
public static final Version VERSION_2_6
public static final Version VERSION_2_7
public static final Version VERSION_2_8
public static Version[] values()
for (Version c : Version.values()) System.out.println(c);
public static Version valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getUrlElement()
public boolean isNewDeviceTokenMethod()
public boolean isUrlElementRequired()
public static Version getVersionFromString(String urlElement)
urlElement
- String that shouldRestFB 1.38.0. Copyright © 2010-2015 Mark Allen. All Rights Reserved.