public class Event extends ImageHolder
Modifier and Type | Class and Description |
---|---|
static class |
Event.AttendanceStatus
Enumeration for the attendance status parameter of the
attend operation. |
private static class |
Event.EventFactory |
static class |
Event.TicketSupplier |
Modifier and Type | Field and Description |
---|---|
private Collection<String> |
artists |
private int |
attendance |
private static DateFormat |
DATE_FORMAT |
private String |
description |
private Date |
endDate |
(package private) static ItemFactory<Event> |
FACTORY |
private String |
headliner |
private int |
id |
private int |
reviews |
private Date |
startDate |
private Collection<Event.TicketSupplier> |
tickets |
private String |
title |
private String |
url |
private Event.AttendanceStatus |
userAttendanceStatus |
private Venue |
venue |
private String |
website |
imageUrls
Modifier | Constructor and Description |
---|---|
private |
Event() |
Modifier and Type | Method and Description |
---|---|
static Result |
attend(String eventId,
Event.AttendanceStatus status,
Session session)
Set a user's attendance status for an event.
|
Collection<String> |
getArtists() |
int |
getAttendance() |
Event.AttendanceStatus |
getAttendanceStatus() |
static Collection<User> |
getAttendees(String eventId,
String apiKey)
Get a list of attendees for an event.
|
String |
getDescription() |
Date |
getEndDate()
Returns the event's end date, or
null if not available. |
String |
getHeadliner() |
int |
getId() |
static Event |
getInfo(String eventId,
String apiKey)
Get the metadata for an event on Last.fm.
|
int |
getReviews() |
static PaginatedResult<Shout> |
getShouts(String eventId,
int page,
int limit,
String apiKey)
Get shouts for an event.
|
static PaginatedResult<Shout> |
getShouts(String eventId,
int page,
String apiKey)
Get shouts for an event.
|
static PaginatedResult<Shout> |
getShouts(String eventId,
String apiKey)
Get shouts for an event.
|
Date |
getStartDate()
Returns the start date and time of this event.
|
Collection<Event.TicketSupplier> |
getTicketSuppliers() |
String |
getTitle() |
String |
getUrl()
Returns the last.fm event url, i.e. https://www.last.fm/event/event-id
|
Venue |
getVenue() |
String |
getWebsite()
Returns the event website url, if available.
|
static Result |
share(String eventId,
String recipients,
String message,
Session session)
Share an event with one or more Last.fm users or other friends.
|
availableSizes, getImageURL, loadImages
static final ItemFactory<Event> FACTORY
private static final DateFormat DATE_FORMAT
private int id
private Collection<String> artists
private Collection<Event.TicketSupplier> tickets
private String description
private int attendance
private int reviews
private Event.AttendanceStatus userAttendanceStatus
private Event()
public Collection<String> getArtists()
public int getAttendance()
public String getDescription()
public String getHeadliner()
public int getId()
public int getReviews()
public Date getStartDate()
public Date getEndDate()
null
if not available. End dates are only supplied for events such as festivals, which
last longer than one day.public String getUrl()
public String getWebsite()
public Collection<Event.TicketSupplier> getTicketSuppliers()
public Event.AttendanceStatus getAttendanceStatus()
public static Event getInfo(String eventId, String apiKey)
eventId
- The numeric last.fm event idapiKey
- A Last.fm API key.public static Result attend(String eventId, Event.AttendanceStatus status, Session session)
eventId
- The numeric last.fm event idstatus
- The attendance statussession
- A Session instanceEvent.AttendanceStatus
,
Authenticator
public static Result share(String eventId, String recipients, String message, Session session)
eventId
- An event IDrecipients
- A comma delimited list of email addresses or Last.fm usernames. Maximum is 10.message
- An optional message to send with the recommendation.session
- A Session instancepublic static Collection<User> getAttendees(String eventId, String apiKey)
eventId
- The numeric last.fm event idapiKey
- A Last.fm API keypublic static PaginatedResult<Shout> getShouts(String eventId, String apiKey)
eventId
- The numeric last.fm event idapiKey
- A Last.fm API key.Shout
spublic static PaginatedResult<Shout> getShouts(String eventId, int page, String apiKey)
eventId
- The numeric last.fm event idpage
- The page number to fetchapiKey
- A Last.fm API key.Shout
spublic static PaginatedResult<Shout> getShouts(String eventId, int page, int limit, String apiKey)
eventId
- The numeric last.fm event idpage
- The page number to fetchlimit
- An integer used to limit the number of shouts returned per page or -1 for defaultapiKey
- A Last.fm API key.Shout
sWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses