// Path: app/src/main/java/ooo/oxo/excited/model/NewData.java
// public class NewData {
// 
//     public List<Channel> channels;
//     public List<Card> cards;
//     public List<Card> timeline;
//     public User user;
//     public VoteCard voteCard;
//     @SerializedName("setFollowState")
//     public Follow followState;
//     public Card card;
//     public PreviewCard previewCard;
//     @SerializedName("addWebCard")
//     public AddCard webCard;
//     @SerializedName("addImageCard")
//     public AddCard imageCard;
// 
// }


import ooo.oxo.excited.model.NewData;
import retrofit2.Response;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;
package ooo.oxo.excited.api;


/**
 * Created by seasonyuu on 2016/12/8.
 */

public interface QueryAPI {

    @POST("graphql")
    Observable<NewData> getData(@Query("query") String query);

    @POST("graphql")
// Path: app/src/main/java/ooo/oxo/excited/model/NewData.java
// public class NewData {
// 
//     public List<Channel> channels;
//     public List<Card> cards;
//     public List<Card> timeline;
//     public User user;
//     public VoteCard voteCard;
//     @SerializedName("setFollowState")
//     public Follow followState;
//     public Card card;
//     public PreviewCard previewCard;
//     @SerializedName("addWebCard")
//     public AddCard webCard;
//     @SerializedName("addImageCard")
//     public AddCard imageCard;
// 
// }


// Path: app/src/main/java/ooo/oxo/excited/api/QueryAPI.java
import ooo.oxo.excited.model.NewData;
import retrofit2.Response;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

package ooo.oxo.excited.api;


/**
 * Created by seasonyuu on 2016/12/8.
 */

public interface QueryAPI {

    @POST("graphql")
    Observable<NewData> getData(@Query("query") String query);

    @POST("graphql")
    Observable<Response<NewData>> loadData(@Query("query") String query);