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

com.fivefaces.cloud.workflow.function.SendSMS Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.fivefaces.cloud.workflow.function;

import org.json.JSONObject;
import org.springframework.boot.web.client.RestTemplateBuilder;

/**
 * This is just an example
 */
public class SendSMS extends Function{

    public static final String FUNCTION_NAME = "SEND_SMS";

    public SendSMS(RestTemplateBuilder restTemplateBuilder) {
        super(restTemplateBuilder);
    }

    @Override
    public void setup(JSONObject jsonObject) {

    }

    @Override
    public JSONObject process(JSONObject jsonObject) {
        System.out.println("Sending an SMS");
        return new JSONObject();
    }

    @Override
    public void cleanup(JSONObject jsonObject) {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy