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

cz.mmsparams.api.websocket.model.smsc.TlvModel Maven / Gradle / Ivy

The newest version!
package cz.mmsparams.api.websocket.model.smsc;

import java.io.Serializable;
import java.util.Arrays;

import cz.mmsparams.api.websocket.WebSocketModelBase;

public class TlvModel extends WebSocketModelBase implements Serializable
{
    private short tag;
    private byte[] value;     // length is stored in array
    private String tagName;      // short description of this tag
    private String valueString;

    public short getTag()
    {
        return tag;
    }

    public void setTag(short tag)
    {
        this.tag = tag;
    }

    public byte[] getValue()
    {
        return value;
    }

    public void setValue(byte[] value)
    {
        this.value = value;
    }

    public String getTagName()
    {
        return tagName;
    }

    public void setTagName(String tagName)
    {
        this.tagName = tagName;
    }

    public String getValueString()
    {
        return valueString;
    }

    public void setValueString(String valueString)
    {
        this.valueString = valueString;
    }

    @Override
    public String toString()
    {
        return "TlvModel{" +
                "tag=" + tag +
                ", value=" + Arrays.toString(value) +
                ", tagName='" + tagName + '\'' +
                ", valueString='" + valueString + '\'' +
                "} " + super.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy