Package ch.aaap.harvestclient.core.gson
Class GsonConfiguration
Object
ch.aaap.harvestclient.core.gson.GsonConfiguration
Harvest specific Gson configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.Gson
getConfiguration
(boolean use12HoursFormat) Configure the GSON JSON parser for the specific formats used by Harvest
-
Constructor Details
-
GsonConfiguration
public GsonConfiguration()
-
-
Method Details
-
getConfiguration
public static com.google.gson.Gson getConfiguration(boolean use12HoursFormat) Configure the GSON JSON parser for the specific formats used by Harvest- Parameters:
use12HoursFormat
- if true, convert LocalTime objects with '1:02pm' format- Returns:
- the global Gson configuration
-