Example usage for com.google.gson JsonSerializer interface-usage

List of usage examples for com.google.gson JsonSerializer interface-usage

Introduction

In this page you can find the example usage for com.google.gson JsonSerializer interface-usage.

Usage

From source file com.luan.thermospy.android.core.pojo.CameraControlActionDeserializer.java

/**
 * Created by ludde on 15-02-01.
 */
public class CameraControlActionDeserializer
        implements JsonDeserializer<CameraControlAction>, JsonSerializer<CameraControlAction> {
    @Override

From source file com.luan.thermospy.android.core.pojo.ServerStatusSerializer.java

/**
 * Created by ludde on 15-02-01.
 */
public class ServerStatusSerializer implements JsonDeserializer<ServerStatus>, JsonSerializer<ServerStatus> {
    @Override
    public ServerStatus deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)

From source file com.mallorcasoftware.debitoorapiclient.JSON.java

class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> {
    private final ApiClient apiClient;

    /**
     * Constructor for DateAdapter
     *

From source file com.mallorcasoftware.openweatherclient.JSON.java

class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> {
    private final ApiClient apiClient;

    /**
     * Constructor for DateAdapter
     *

From source file com.mallorcasoftware.radiococlient.JSON.java

class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> {
    private final ApiClient apiClient;

    /**
     * Constructor for DateAdapter
     *

From source file com.metinkale.prayerapp.vakit.times.gson.BooleanSerializer.java

public class BooleanSerializer implements JsonSerializer<Boolean>, JsonDeserializer<Boolean> {

    @Nullable
    @Override
    public JsonElement serialize(Boolean arg0, Type arg1, JsonSerializationContext arg2) {
        return arg0 ? new JsonPrimitive(1) : null;

From source file com.microsoft.aad.adal.DateTimeAdapter.java

public final class DateTimeAdapter implements JsonDeserializer<Date>, JsonSerializer<Date> {

    private static final String TAG = "DateTimeAdapter";

    private final DateFormat mEnUsFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT,
            Locale.US);

From source file com.microsoft.aad.adal.TokenCacheItemSerializationAdapater.java

/**
 * This TokenCacheItemAdapter class is a customized serializer for the family
 * token cache item into GSON where we are trying to keep a lightweight form of
 * tokenCacheItem by parsing the raw idToken, we can get all the claims in it,
 * including userInfo, and tenantId.
 */

From source file com.microsoft.azure.iot.service.sdk.DeviceSerializer.java

public class DeviceSerializer implements JsonSerializer<Device> {
    private class Authentication {
        private SymmetricKey symmetricKey;

        public Authentication(SymmetricKey symmetricKey) {
            this.symmetricKey = symmetricKey;

From source file com.microsoft.azure.sdk.iot.service.DeviceSerializer.java

public class DeviceSerializer implements JsonSerializer<Device> {
    private class Authentication {
        private SymmetricKey symmetricKey;

        public Authentication(SymmetricKey symmetricKey) {
            this.symmetricKey = symmetricKey;