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

services.EventsInterface Maven / Gradle / Ivy

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

import models.Event;
import models.Events;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.PUT;

public interface EventsInterface {
    @GET("/events")
    Call getEvents(
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @GET("/events/{eventId}")
    Call getEvent(
            @Path("eventId") String eventId,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @PUT("/events/{eventId}")
    Call putEvent(
            @Path("eventId") String eventId,
            @Body Event event,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy