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

esendex.sdk.java.service.resource.message.DeleteInboxMessageResource Maven / Gradle / Ivy

Go to download

The Esendex Java SDK is an easy to use client for our REST API that you can use to integrate SMS and Voice messaging into your Java application.

The newest version!

package esendex.sdk.java.service.resource.message;

import esendex.sdk.java.http.HttpRequestMethod;
import esendex.sdk.java.service.auth.Authenticator;
import esendex.sdk.java.service.resource.base.Resource;

/**
 * This operation will remove an individual message from an Inbox. 
 * As the message is identified by its GUID there is no additional need 
 * to specify which Account the message belongs to.
 * 
 * @author Mike Whittaker
 */
public class DeleteInboxMessageResource extends Resource {

	/**
	 * Instantiates a new delete inbox message resource.
	 * @param auth the authenticator
	 * @param id the id
	 */
	public DeleteInboxMessageResource(Authenticator auth, String id) {
		super(auth, null, id, null);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected String getEndpointChild() {
		return "inbox/messages/" + getId();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected HttpRequestMethod getRequestMethod() {
		return HttpRequestMethod.DELETE;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy