// Path: github-api/src/main/java/com/dmitrymalkovich/android/githubapi/core/data/AccessToken.java
// @SuppressWarnings("all")
// public class AccessToken {
// 
//     @SerializedName("access_token")
//     private String mAccessToken;
//     @SerializedName("token_type")
//     private String mTokenType;
// 
//     public String getToken() {
//         return mAccessToken;
//     }
// 
//     public String getTokenType() {
//         return mTokenType;
//     }
// 
//     public void setTokenType(String tokenType) {
//         this.mTokenType = tokenType;
//     }
// 
//     public void setAccessToken(String accessToken) {
//         this.mAccessToken = accessToken;
//     }
// }
// 
// Path: github-api/src/main/java/com/dmitrymalkovich/android/githubapi/core/data/Star.java
// @SuppressWarnings("all")
// public class Star {
// 
//     @SerializedName("user")
//     public User mUser;
//     @SerializedName("starred_at")
//     private String mStarredAt;
// 
//     public String getStarredAt() {
//         return mStarredAt;
//     }
// 
//     private class User {
//         @SerializedName("id")
//         private long mId;
// 
//         @SerializedName("login")
//         private String mLogin;
// 
//         @SerializedName("url")
//         private String mUrl;
// 
//         public long getId() {
//             return mId;
//         }
// 
//         public String getLogin() {
//             return mLogin;
//         }
// 
//         public String getUrl() {
//             return mUrl;
//         }
//     }
// }


import retrofit2.Converter;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import android.support.annotation.NonNull;
import com.dmitrymalkovich.android.githubapi.core.data.AccessToken;
import com.dmitrymalkovich.android.githubapi.core.data.Star;
import com.google.gson.annotations.SerializedName;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.List;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.ResponseBody;
import okhttp3.logging.HttpLoggingInterceptor;
/*
 * Copyright 2017.  Dmitry Malkovich
 *
 * 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.dmitrymalkovich.android.githubapi.core;





/**
 * Credit to https://futurestud.io/tutorials/oauth-2-on-android-with-retrofit
 * <p>
 * OAuth GitHub API: https://developer.github.com/v3/oauth/
 */
public class Service {
    public static final String API_URL_AUTH = "https://github.com/login/oauth/authorize/";
    static final String API_HTTPS_BASE_URL = "https://api.github.com/";
    private static final String API_BASE_URL = "https://github.com/";
    private static OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
// Path: github-api/src/main/java/com/dmitrymalkovich/android/githubapi/core/data/AccessToken.java
// @SuppressWarnings("all")
// public class AccessToken {
// 
//     @SerializedName("access_token")
//     private String mAccessToken;
//     @SerializedName("token_type")
//     private String mTokenType;
// 
//     public String getToken() {
//         return mAccessToken;
//     }
// 
//     public String getTokenType() {
//         return mTokenType;
//     }
// 
//     public void setTokenType(String tokenType) {
//         this.mTokenType = tokenType;
//     }
// 
//     public void setAccessToken(String accessToken) {
//         this.mAccessToken = accessToken;
//     }
// }
// 
// Path: github-api/src/main/java/com/dmitrymalkovich/android/githubapi/core/data/Star.java
// @SuppressWarnings("all")
// public class Star {
// 
//     @SerializedName("user")
//     public User mUser;
//     @SerializedName("starred_at")
//     private String mStarredAt;
// 
//     public String getStarredAt() {
//         return mStarredAt;
//     }
// 
//     private class User {
//         @SerializedName("id")
//         private long mId;
// 
//         @SerializedName("login")
//         private String mLogin;
// 
//         @SerializedName("url")
//         private String mUrl;
// 
//         public long getId() {
//             return mId;
//         }
// 
//         public String getLogin() {
//             return mLogin;
//         }
// 
//         public String getUrl() {
//             return mUrl;
//         }
//     }
// }


// Path: github-api/src/main/java/com/dmitrymalkovich/android/githubapi/core/Service.java
import retrofit2.Converter;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import android.support.annotation.NonNull;
import com.dmitrymalkovich.android.githubapi.core.data.AccessToken;
import com.dmitrymalkovich.android.githubapi.core.data.Star;
import com.google.gson.annotations.SerializedName;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.List;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.ResponseBody;
import okhttp3.logging.HttpLoggingInterceptor;

/*
 * Copyright 2017.  Dmitry Malkovich
 *
 * 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.dmitrymalkovich.android.githubapi.core;





/**
 * Credit to https://futurestud.io/tutorials/oauth-2-on-android-with-retrofit
 * <p>
 * OAuth GitHub API: https://developer.github.com/v3/oauth/
 */
public class Service {
    public static final String API_URL_AUTH = "https://github.com/login/oauth/authorize/";
    static final String API_HTTPS_BASE_URL = "https://api.github.com/";
    private static final String API_BASE_URL = "https://github.com/";
    private static OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
    private AccessToken mAccessToken = new AccessToken();