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

services.PreferencesInterface Maven / Gradle / Ivy

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

import models.Preference;
import models.UpdateResponseBody;
import models.Preferences;
import retrofit2.Call;
import retrofit2.http.*;

public interface PreferencesInterface {
    @GET("/preferences")
    Call getPreferences(
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @GET("/preferences/{recipientId}")
    Call getPreference(
            @Path("recipientId") String recipientId,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @PUT("/preferences/{recipientId}")
    Call putPreference(
            @Path("recipientId") String recipientId,
            @Body Preference preference,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy