BarInsta/app/src/main/java/awais/instagrabber/repositories/ProfileRepository.java

41 lines
1.6 KiB
Java
Raw Normal View History

package awais.instagrabber.repositories;
import java.util.Map;
2021-01-23 04:33:36 +00:00
import awais.instagrabber.repositories.responses.WrappedFeedResponse;
import awais.instagrabber.repositories.responses.saved.CollectionsListResponse;
import awais.instagrabber.repositories.responses.UserFeedResponse;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
public interface ProfileRepository {
2020-12-20 18:35:16 +00:00
@GET("/api/v1/feed/user/{uid}/")
Call<UserFeedResponse> fetch(@Path("uid") final long uid, @QueryMap Map<String, String> queryParams);
2020-11-02 13:00:07 +00:00
@GET("/api/v1/feed/saved/")
2021-01-23 04:33:36 +00:00
Call<WrappedFeedResponse> fetchSaved(@QueryMap Map<String, String> queryParams);
2020-11-02 13:00:07 +00:00
@GET("/api/v1/feed/collection/{collectionId}/")
2021-01-23 04:33:36 +00:00
Call<WrappedFeedResponse> fetchSavedCollection(@Path("collectionId") final String collectionId,
@QueryMap Map<String, String> queryParams);
2020-11-02 13:00:07 +00:00
@GET("/api/v1/feed/liked/")
Call<UserFeedResponse> fetchLiked(@QueryMap Map<String, String> queryParams);
2020-12-20 18:35:16 +00:00
@GET("/api/v1/usertags/{profileId}/feed/")
Call<UserFeedResponse> fetchTagged(@Path("profileId") final long profileId, @QueryMap Map<String, String> queryParams);
@GET("/api/v1/collections/list/")
Call<CollectionsListResponse> fetchCollections(@QueryMap Map<String, String> queryParams);
@FormUrlEncoded
@POST("/api/v1/collections/create/")
Call<String> createCollection(@FieldMap Map<String, String> signedForm);
}