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

org.restcomm.connect.sms.smpp.SmppInboundMessageEntity Maven / Gradle / Ivy

There is a newer version: 8.4.0-227
Show newest version
package org.restcomm.connect.sms.smpp;

import com.cloudhopper.commons.charset.Charset;

public class SmppInboundMessageEntity {


    private final String smppTo;
    private final String smppFrom;
    private final String smppContent;
    private final Charset smppEncoding;



    public SmppInboundMessageEntity(String smppTo, String smppFrom, String smppContent, Charset smppEncoding){

        this.smppTo = smppTo;
        this.smppFrom = smppFrom;
        this.smppContent = smppContent;
        this.smppEncoding = smppEncoding;

    }



    public final String getSmppTo(){
        return smppTo;
    }

    public final String getSmppFrom(){
        return smppFrom;
    }
    public final String getSmppContent(){
        return smppContent;
    }
    public final Charset getSmppEncoding(){
        return smppEncoding;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();

        builder.append("SMPPInboundMessage[From=")
            .append(smppFrom)
            .append(",To")
            .append(smppTo)
            .append(",Content=")
            .append(smppContent)
            .append(",Encoding=")
            .append(smppEncoding);

        return super.toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy