Package com.suse.salt.netapi.parser
Class StartTimeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<StartTime>
-
- com.suse.salt.netapi.parser.StartTimeAdapter
-
public class StartTimeAdapter extends com.google.gson.TypeAdapter<StartTime>
Json adapter to handle the Job.StartTime date format given by netapi
-
-
Constructor Summary
Constructors Constructor Description StartTimeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StartTime
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter, StartTime date)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, StartTime date) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<StartTime>
- Throws:
IOException
-
read
public StartTime read(com.google.gson.stream.JsonReader jsonReader) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<StartTime>
- Throws:
IOException
-
-