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

pro.zackpollard.telegrambot.api.internal.chat.message.content.StickerContentImpl Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version
package pro.zackpollard.telegrambot.api.internal.chat.message.content;

import org.json.JSONObject;
import pro.zackpollard.telegrambot.api.chat.message.content.StickerContent;
import pro.zackpollard.telegrambot.api.chat.message.content.type.Sticker;
import pro.zackpollard.telegrambot.api.internal.chat.message.content.type.StickerImpl;

/**
 * @author Zack Pollard
 */
public class StickerContentImpl implements StickerContent {

	private final Sticker content;

	private StickerContentImpl(JSONObject jsonObject) {

		this.content = StickerImpl.createSticker(jsonObject);
	}

	public static StickerContent createStickerContent(JSONObject jsonObject) {

		return jsonObject != null ? new StickerContentImpl(jsonObject) : null;
	}

	@Override
	public Sticker getContent() {
		return content;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy