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

pro.zackpollard.telegrambot.api.internal.chat.message.content.VenueContentImpl 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.VenueContent;
import pro.zackpollard.telegrambot.api.chat.message.content.type.Venue;
import pro.zackpollard.telegrambot.api.internal.chat.message.content.type.VenueImpl;

/**
 * @author zackp
 */
public class VenueContentImpl implements VenueContent {

    private final Venue content;

    private VenueContentImpl(JSONObject jsonObject) {

        this.content = VenueImpl.createVenue(jsonObject);
    }

    public static VenueContent createVenueContent(JSONObject jsonObject) {

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy