Class GsonConfiguration

Object
ch.aaap.harvestclient.core.gson.GsonConfiguration

public class GsonConfiguration extends Object
Harvest specific Gson configuration
  • 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