public class Venue extends ImageHolder
Modifier and Type | Class and Description |
---|---|
private static class |
Venue.VenueFactory |
Modifier and Type | Field and Description |
---|---|
private String |
city |
private String |
country |
(package private) static ItemFactory<Venue> |
FACTORY |
private String |
id |
private float |
latitude |
private float |
longitude |
private String |
name |
private String |
phonenumber |
private String |
postal |
private String |
street |
private String |
timezone |
private String |
url |
private String |
website |
imageUrls
Modifier | Constructor and Description |
---|---|
private |
Venue() |
Modifier and Type | Method and Description |
---|---|
String |
getCity() |
String |
getCountry() |
static Collection<Event> |
getEvents(String venueId,
boolean festivalsOnly,
String apiKey)
Get a list of upcoming events at this venue.
|
static Collection<Event> |
getEvents(String venueId,
String apiKey)
Get a list of upcoming events at this venue.
|
String |
getId() |
float |
getLatitude() |
float |
getLongitude() |
String |
getName() |
static PaginatedResult<Event> |
getPastEvents(String venueId,
boolean festivalsOnly,
int page,
int limit,
String apiKey)
Get a paginated list of all the events held at this venue in the past.
|
static PaginatedResult<Event> |
getPastEvents(String venueId,
String apiKey)
Get a paginated list of all the events held at this venue in the past.
|
String |
getPhonenumber() |
String |
getPostal() |
String |
getStreet() |
String |
getTimezone() |
String |
getUrl()
Returns a last.fm URL to this venue, e.g.: https://www.last.fm/venue/<id>-<venue name>
|
String |
getWebsite()
Returns an URL to the actual venue's website.
|
static Collection<Venue> |
search(String venue,
String apiKey)
Search for a venue by venue name.
|
static Collection<Venue> |
search(String venue,
String country,
String apiKey)
Search for a venue by venue name.
|
availableSizes, getImageURL, loadImages
static final ItemFactory<Venue> FACTORY
private String phonenumber
private float latitude
private float longitude
private Venue()
public String getUrl()
getWebsite()
public String getWebsite()
public String getCountry()
public float getLatitude()
public float getLongitude()
public String getTimezone()
public String getPhonenumber()
public static Collection<Venue> search(String venue, String apiKey)
venue
- The venue name you would like to search forapiKey
- A Last.fm API keypublic static Collection<Venue> search(String venue, String country, String apiKey)
venue
- The venue name you would like to search forcountry
- Filter your results by country. Expressed as an ISO 3166-2 codeapiKey
- A Last.fm API keypublic static Collection<Event> getEvents(String venueId, String apiKey)
venueId
- The venue id to fetch the events forapiKey
- A Last.fm API keygetPastEvents(java.lang.String, java.lang.String)
public static Collection<Event> getEvents(String venueId, boolean festivalsOnly, String apiKey)
venueId
- The venue id to fetch the events forfestivalsOnly
- Whether only festivals should be returned, or all eventsapiKey
- A Last.fm API keygetPastEvents(java.lang.String, java.lang.String)
public static PaginatedResult<Event> getPastEvents(String venueId, String apiKey)
venueId
- The id for the venue you would like to fetch event listings forapiKey
- A Last.fm API keypublic static PaginatedResult<Event> getPastEvents(String venueId, boolean festivalsOnly, int page, int limit, String apiKey)
venueId
- The id for the venue you would like to fetch event listings forfestivalsOnly
- Whether only festivals should be returned, or all events.page
- The page of results to returnlimit
- The number of results to fetch per page.apiKey
- A Last.fm API keyWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses