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

services.MessagesInterface Maven / Gradle / Ivy

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

import models.Message;
import models.MessageHistory;
import models.Messages;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface MessagesInterface {
    @GET("/messages")
    Call getMessages(
            @Query("cursor") String cursor,
            @Query("event") String event,
            @Query("list") String list,
            @Query("messageId") String messageId,
            @Query("notification") String notification,
            @Query("recipient") String recipient,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @GET("/messages/{messageId}")
    Call getMessage(
            @Path("messageId") String messageId,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @GET("/messages/{messageId}/history")
    Call getMessageHistory(
            @Path("messageId") String messageId,
            @Query("type") String type,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy