package com.hainaos.vc.network.api;

import com.hainaos.vc.bean.BaseResponse;
import com.hainaos.vc.bean.PhotoInfo;
import com.hainaos.vc.bean.SpaceInfo;
import com.hainaos.vc.bean.VideoInfo;
import com.hainaos.vc.network.UrlAddress;

import java.util.ArrayList;
import java.util.List;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FileApi {
    @GET(UrlAddress.HOME_VIDEO)
    Observable<BaseResponse<List<VideoInfo>>> getHomeVideo(
            @Query("sn") String sn
    );

    @GET(UrlAddress.HOME_PHOTO)
    Observable<BaseResponse<ArrayList<PhotoInfo>>> getHomePhoto(
            @Query("sn") String sn
    );

    @GET(UrlAddress.GET_HOME_SPACE_INFO)
    Observable<BaseResponse<SpaceInfo>> getHomeSpaceInfo(
            @Query("sn") String sn
    );
}
