com.pengrad.telegrambot.model.request.InlineQueryResultLocation 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 InlineQueryResultLocation extends InlineQueryResult implements Serializable {
private final static long serialVersionUID = 0L;
private float latitude;
private float longitude;
private String title;
private Float horizontal_accuracy;
private Integer live_period;
private Integer heading;
private Integer proximity_alert_radius;
private String thumb_url;
private Integer thumb_width;
private Integer thumb_height;
public InlineQueryResultLocation(String id, float latitude, float longitude, String title) {
super("location", id);
this.latitude = latitude;
this.longitude = longitude;
this.title = title;
}
public InlineQueryResultLocation horizontalAccuracy(float horizontalAccuracy) {
horizontal_accuracy = horizontalAccuracy;
return this;
}
public InlineQueryResultLocation livePeriod(Integer livePeriod) {
live_period = livePeriod;
return this;
}
public InlineQueryResultLocation heading(int heading) {
this.heading = heading;
return this;
}
public InlineQueryResultLocation proximityAlertRadius(int proximityAlertRadius) {
proximity_alert_radius = proximityAlertRadius;
return this;
}
public InlineQueryResultLocation thumbUrl(String thumbUrl) {
this.thumb_url = thumbUrl;
return this;
}
public InlineQueryResultLocation thumbWidth(Integer thumbWidth) {
this.thumb_width = thumbWidth;
return this;
}
public InlineQueryResultLocation thumbHeight(Integer thumbHeight) {
this.thumb_height = thumbHeight;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy