All Downloads are FREE. Search and download functionalities are using the official Maven repository.

services.ProfilesInterface Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package services;

import models.PatchRequestBody;
import models.Profile;
import models.ProfileLists;
import models.UpdateResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

public interface ProfilesInterface {
    @GET("/profiles/{recipientId}")
    Call getProfile(
            @Path("recipientId") String recipientId,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @POST("/profiles/{recipientId}")
    Call postProfile(
            @Path("recipientId") String recipientId,
            @Body Profile profile,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @PATCH("/profiles/{recipientId}")
    Call patchProfile(
            @Path("recipientId") String recipientId,
            @Body PatchRequestBody patchRequestBody,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @PUT("/profiles/{recipientId}")
    Call putProfile(
            @Path("recipientId") String recipientId,
            @Body Profile profile,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @GET("/profiles/{recipientId}/lists")
    Call getProfileLists(
            @Path("recipientId") String recipientId,
            @Query("cursor") String cursor,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy