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

services.SendInterface Maven / Gradle / Ivy

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

import models.SendEnhancedRequestBody;
import models.SendEnhancedResponseBody;
import models.SendListRequestBody;
import models.SendRequestBody;
import models.SendResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;

public interface SendInterface {
    @POST("/send")
    Call send(
            @Body SendRequestBody sendRequestBody,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @POST("/send")
    Call sendIdempotent(
            @Body SendRequestBody sendRequestBody,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent,
            @Header("Idempotency-Key") String idempotencyKey
    );

    @POST("/send/list")
    Call sendToList(
            @Body SendListRequestBody sendListRequestBody,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @POST("/send")
    Call sendEnhanced(
            @Body SendEnhancedRequestBody sendEnhancedRequestBody,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent
    );

    @POST("/send")
    Call sendEnhancedIdempotent(
            @Body SendEnhancedRequestBody sendEnhancedRequestBody,
            @Header("Authorization") String authorization,
            @Header("User-Agent") String userAgent,
            @Header("Idempotency-Key") String idempotencyKey
    );
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy