2018-07-08 01:41:21 +02:00
|
|
|
package org.telegram.telegrambots.meta.api.objects;
|
2016-04-11 02:53:53 +02:00
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
2020-11-01 23:46:36 +01:00
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import lombok.Getter;
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import lombok.Setter;
|
|
|
|
import lombok.ToString;
|
2018-07-08 01:41:21 +02:00
|
|
|
import org.telegram.telegrambots.meta.api.interfaces.BotApiObject;
|
2016-04-11 02:53:53 +02:00
|
|
|
|
|
|
|
/**
|
2022-11-04 17:23:27 +01:00
|
|
|
* This object represents a venue.
|
2016-04-11 02:53:53 +02:00
|
|
|
* @author Ruben Bermudez
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
2020-11-01 23:46:36 +01:00
|
|
|
@EqualsAndHashCode(callSuper = false)
|
|
|
|
@Getter
|
|
|
|
@Setter
|
|
|
|
@ToString
|
|
|
|
@NoArgsConstructor
|
|
|
|
@AllArgsConstructor
|
2016-11-17 02:41:12 +01:00
|
|
|
public class Venue implements BotApiObject {
|
2016-04-11 02:53:53 +02:00
|
|
|
private static final String LOCATION_FIELD = "location";
|
|
|
|
private static final String TITLE_FIELD = "title";
|
|
|
|
private static final String ADDRESS_FIELD = "address";
|
2018-07-27 00:27:26 +02:00
|
|
|
private static final String FOURSQUAREID_FIELD = "foursquare_id";
|
|
|
|
private static final String FOURSQUARETYPE_FIELD = "foursquare_type";
|
2020-11-01 23:46:36 +01:00
|
|
|
private static final String GOOGLEPLACEID_FIELD = "google_place_id";
|
|
|
|
private static final String GOOGLEPLACETYPE_FIELD = "google_place_type";
|
2016-04-11 02:53:53 +02:00
|
|
|
|
2022-11-04 17:23:27 +01:00
|
|
|
/**
|
|
|
|
* Venue location
|
|
|
|
*/
|
2016-04-11 02:53:53 +02:00
|
|
|
@JsonProperty(LOCATION_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private Location location;
|
|
|
|
/**
|
|
|
|
* Name of the venue
|
|
|
|
*/
|
2016-04-11 02:53:53 +02:00
|
|
|
@JsonProperty(TITLE_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String title;
|
|
|
|
/**
|
|
|
|
* Address of the venue
|
|
|
|
*/
|
2016-04-11 02:53:53 +02:00
|
|
|
@JsonProperty(ADDRESS_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String address;
|
|
|
|
/**
|
|
|
|
* Optional.
|
|
|
|
* Foursquare identifier of the venue
|
|
|
|
*/
|
2018-07-27 00:27:26 +02:00
|
|
|
@JsonProperty(FOURSQUAREID_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String foursquareId;
|
|
|
|
/**
|
|
|
|
* Optional.
|
|
|
|
* Foursquare type of the venue.
|
|
|
|
*/
|
2018-07-27 00:27:26 +02:00
|
|
|
@JsonProperty(FOURSQUARETYPE_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String foursquareType;
|
|
|
|
/**
|
|
|
|
* Optional.
|
|
|
|
* Google Places identifier of the venue
|
|
|
|
*/
|
2020-11-01 23:46:36 +01:00
|
|
|
@JsonProperty(GOOGLEPLACEID_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String googlePlaceId;
|
|
|
|
/**
|
|
|
|
* Optional.
|
|
|
|
* Google Places type of the venue. (See supported types.)
|
|
|
|
*/
|
2020-11-01 23:46:36 +01:00
|
|
|
@JsonProperty(GOOGLEPLACETYPE_FIELD)
|
2022-11-04 17:23:27 +01:00
|
|
|
private String googlePlaceType;
|
2016-04-11 02:53:53 +02:00
|
|
|
}
|