package com.jyc.threegames.net.api; import com.jyc.threegames.bean.PageInfo; import com.jyc.threegames.bean.ScaleLog; import com.jyc.threegames.bean.result.ResGameInfo; import com.jyc.threegames.bean.result.ResGamePlayTime; import com.jyc.threegames.net.ResData; import java.util.List; import io.reactivex.Observable; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; import retrofit2.http.POST; public interface GameService { @FormUrlEncoded @POST("scale/log/list") Observable>> list(@Field("search") String search, @Field("page") int page, @Field("size") int size); @GET("push/log/needPlayGame") Observable> questNeedPlayGame(); @GET("scale/log/list/over_date") Observable>> listOverDate(); @FormUrlEncoded @POST("scale/log/add/new") Observable> addScale( @Field("gamePlayId") long gamePlayId, @Field("startDate") String startDate, @Field("endDate") String endDate, @Field("eventDate") String eventDate, @Field("contact") String contact, @Field("dinner") String dinner, @Field("getUp") String getUp, @Field("sleep") String sleep, @Field("work") String work, @Field("deviceId") String deviceId ); @FormUrlEncoded @POST("game/answer/add/real") Observable> addGameAnswer( @Field("gamePlayId") long gamePlayId, @Field("userId") long userId, @Field("realCorrectRate") float realCorrectRate, @Field("correctRate") float correctRate, @Field("confidence") float confidence, @Field("startTime") String startTime, @Field("endTime") String endTime, @Field("version") String version, @Field("selected") String selected, @Field("gameAnswer") String gameAnswer, @Field("deviceId") String deviceId); @FormUrlEncoded @POST("push/log/enter") Observable> enter(@Field("gamePlayTimeId") long gamePlayTimeId, @Field("deviceId") String deviceId, @Field("type") int type); @FormUrlEncoded @POST("push/log/delay/game") Observable> delayGame(@Field("gamePlayTimeId") long gamePlayId, @Field("gameConfigId") long gameConfigId, @Field("delayMin") int delayMin, @Field("deviceId") String deviceId); @FormUrlEncoded @POST("push/log/delay/scale") Observable> delayScale(@Field("gamePlayTimeId") long gamePlayId, @Field("delayMin") int delayMin, @Field("deviceId") String deviceId); }