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

org.telegram.telegraph.api.objects.NodeText Maven / Gradle / Ivy

The newest version!
package org.telegram.telegraph.api.objects;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.telegram.telegraph.jsonutilities.NodeTextSerializer;

/**
 * @author Ruben Bermudez
 * @version 1.0
 */
@JsonSerialize(using = NodeTextSerializer.class)
public class NodeText extends Node {
    private String content;

    public NodeText(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public NodeText setContent(String content) {
        this.content = content;
        return this;
    }

    @Override
    public String toString() {
        return "NodeText{" +
                "content='" + content + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy