package ai.pai.lensman.box;

import java.util.List;

import ai.pai.lensman.bean.PhotoBean;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface ApiService {


    @POST("session_start")
    @FormUrlEncoded
    Call<String> startNewSession(@Field("session") String sessionId ,@Field("lensman") String lensmanId);

    @POST("session_end")
    @FormUrlEncoded
    Call<String> endSession(@Field("session") String sessionId, @Field("lensman") String lensmanId);

    @POST("fetch_thumbnail")
    @FormUrlEncoded
    Call<List<PhotoBean>> fetchSessionThumbnails(@Field("session") String sessionId, @Field("lensman") String lensmanId);

    @POST("fetch_origin")
    @FormUrlEncoded
    Call<String> fetchSessionOriginPhoto(@Field("session") String sessionId, @Field("lensman") String lensmanId, @Field("name") String name);


}
