// 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 com.ge.protein.data.model.AccessToken;
import io.reactivex.Observable;
import retrofit2.Response;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Url;
/*
 * 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.service;



public interface AccessTokenService {

    @POST
    @FormUrlEncoded
// 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/service/AccessTokenService.java
import com.ge.protein.data.model.AccessToken;
import io.reactivex.Observable;
import retrofit2.Response;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Url;

/*
 * 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.service;



public interface AccessTokenService {

    @POST
    @FormUrlEncoded
    Observable<Response<AccessToken>> getAccessToken(@Url String url,