com.mocean.modules.message.Message_status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moceanapisdk Show documentation
Show all versions of moceanapisdk Show documentation
This is an Mocean SDK written in java. To use it you will need a mocean account. Signup for free at https://moceanapi.com
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