All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.octo.android.robospice.persistence.retrofit.GsonRetrofitObjectPersisterFactory Maven / Gradle / Ivy

package com.octo.android.robospice.persistence.retrofit;

import java.io.File;
import java.util.List;

import retrofit.converter.Converter;
import retrofit.converter.GsonConverter;
import android.app.Application;

import com.google.gson.Gson;
import com.octo.android.robospice.persistence.exception.CacheCreationException;

public class GsonRetrofitObjectPersisterFactory extends RetrofitObjectPersisterFactory {

    // ============================================================================================
    // CONSTRUCTOR
    // ============================================================================================
    
    public GsonRetrofitObjectPersisterFactory(Application application, Converter converter, File cacheFolder)
        throws CacheCreationException {
        super(application, converter, cacheFolder);
    }

    public GsonRetrofitObjectPersisterFactory(Application application, File cacheFolder) throws CacheCreationException {
        super(application, new GsonConverter(new Gson()), cacheFolder);
    }

    public GsonRetrofitObjectPersisterFactory(Application application, List> listHandledClasses,
        File cacheFolder) throws CacheCreationException {
        super(application, new GsonConverter(new Gson()), listHandledClasses, cacheFolder);
    }

    public GsonRetrofitObjectPersisterFactory(Application application, List> listHandledClasses)
        throws CacheCreationException {
        super(application, new GsonConverter(new Gson()), listHandledClasses);
    }

    public GsonRetrofitObjectPersisterFactory(Application application) throws CacheCreationException {
        super(application, new GsonConverter(new Gson()));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy