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

com.mocean.modules.message.Message_status Maven / Gradle / Ivy

Go to download

This is an Mocean SDK written in java. To use it you will need a mocean account. Signup for free at https://moceanapi.com

There is a newer version: 1.1.5
Show newest version
package com.mocean.modules.message;
import com.mocean.system.Client;
import java.util.HashMap;
import com.mocean.modules.Transmitter;

public class Message_status extends com.mocean.modules.MoceanFactory{

	public Message_status(Client obj_auth)
	{
		super(obj_auth);
		this.required_fields = new String[]{"mocean-api-key","mocean-api-secret","mocean-msgid"};
		
	}
	
	public Message_status setMsgid(String param) 
	{
		this.params.put("mocean-msgid", param);
		return this;
	}
	
	public Message_status setRespFormat(String param)
	{
		this.params.put("mocean-resp-format", param);
		return this;
	}
	
	public String inquiry(HashMap params) throws Exception
	{
		super.create(params);
		return this.send();
	}
	
	public String inquiry() throws Exception
	{
		return this.send();
	}
	
	private String send() throws Exception
	{
		this.createFinalParams();
		this.isRequiredFieldsSet();
		Transmitter httpRequest = new Transmitter("/rest/1/report/message","get",this.params);
		return httpRequest.getResponse();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy