// Path: app/src/main/java/com/ge/protein/data/ProteinAdapterFactory.java
// @GsonTypeAdapterFactory
// public abstract class ProteinAdapterFactory implements TypeAdapterFactory {
// 
//     public static TypeAdapterFactory create() {
//         return new AutoValueGson_ProteinAdapterFactory();
//     }
// }
// 
// Path: app/src/main/java/com/ge/protein/data/model/AccessToken.java
// @AutoValue
// public abstract class AccessToken {
// 
//     public abstract String access_token();
// 
//     public abstract String token_type();
// 
//     public abstract String scope();
// 
//     public static TypeAdapter<AccessToken> typeAdapter(Gson gson) {
//         return new AutoValue_AccessToken.GsonTypeAdapter(gson).nullSafe();
//     }
// }


import android.content.Context;
import com.facebook.stetho.okhttp3.StethoInterceptor;
import com.ge.protein.BuildConfig;
import com.ge.protein.data.ProteinAdapterFactory;
import com.ge.protein.data.model.AccessToken;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import okhttp3.Cache;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/*
 * Copyright 2017 Jiaheng Ge
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ge.protein.data.api;




public class ServiceGenerator {

    private static String lastToken;

    private static Gson gson = new GsonBuilder()
// Path: app/src/main/java/com/ge/protein/data/ProteinAdapterFactory.java
// @GsonTypeAdapterFactory
// public abstract class ProteinAdapterFactory implements TypeAdapterFactory {
// 
//     public static TypeAdapterFactory create() {
//         return new AutoValueGson_ProteinAdapterFactory();
//     }
// }
// 
// Path: app/src/main/java/com/ge/protein/data/model/AccessToken.java
// @AutoValue
// public abstract class AccessToken {
// 
//     public abstract String access_token();
// 
//     public abstract String token_type();
// 
//     public abstract String scope();
// 
//     public static TypeAdapter<AccessToken> typeAdapter(Gson gson) {
//         return new AutoValue_AccessToken.GsonTypeAdapter(gson).nullSafe();
//     }
// }


// Path: app/src/main/java/com/ge/protein/data/api/ServiceGenerator.java
import android.content.Context;
import com.facebook.stetho.okhttp3.StethoInterceptor;
import com.ge.protein.BuildConfig;
import com.ge.protein.data.ProteinAdapterFactory;
import com.ge.protein.data.model.AccessToken;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import okhttp3.Cache;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

/*
 * Copyright 2017 Jiaheng Ge
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ge.protein.data.api;




public class ServiceGenerator {

    private static String lastToken;

    private static Gson gson = new GsonBuilder()
            .registerTypeAdapterFactory(ProteinAdapterFactory.create())