com.pengrad.telegrambot.model.request.InlineQueryResultVenue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.model.request;
import java.io.Serializable;
/**
* Stas Parshin
* 06 May 2016
*/
public class InlineQueryResultVenue extends InlineQueryResult implements Serializable {
private final static long serialVersionUID = 0L;
private float latitude;
private float longitude;
private String title;
private String address;
private String foursquare_id;
private String foursquare_type;
private String google_place_id;
private String google_place_type;
private String thumb_url;
private Integer thumb_width;
private Integer thumb_height;
public InlineQueryResultVenue(String id, float latitude, float longitude, String title, String address) {
super("venue", id);
this.latitude = latitude;
this.longitude = longitude;
this.title = title;
this.address = address;
}
public InlineQueryResultVenue foursquareId(String foursquareId) {
this.foursquare_id = foursquareId;
return this;
}
public InlineQueryResultVenue foursquareType(String foursquareType) {
this.foursquare_type = foursquareType;
return this;
}
public InlineQueryResultVenue googlePlaceId(String googlePlaceId) {
this.google_place_id = googlePlaceId;
return this;
}
public InlineQueryResultVenue googlePlaceType(String googlePlaceType) {
this.google_place_type = googlePlaceType;
return this;
}
public InlineQueryResultVenue thumbUrl(String thumbUrl) {
this.thumb_url = thumbUrl;
return this;
}
public InlineQueryResultVenue thumbWidth(Integer thumbWidth) {
this.thumb_width = thumbWidth;
return this;
}
public InlineQueryResultVenue thumbHeight(Integer thumbHeight) {
this.thumb_height = thumbHeight;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy