Package de.umass.lastfm
Class Event
java.lang.Object
de.umass.lastfm.ImageHolder
de.umass.lastfm.Event
Bean for Events.
- Author:
- Janni Kovacs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration for the attendance status parameter of theattend
operation.static class
-
Field Summary
Fields inherited from class de.umass.lastfm.ImageHolder
imageUrls
-
Method Summary
Modifier and TypeMethodDescriptionstatic Result
attend
(String eventId, Event.AttendanceStatus status, Session session) Set a user's attendance status for an event.int
static Collection<User>
getAttendees
(String eventId, String apiKey) Get a list of attendees for an event.Returns the event's end date, ornull
if not available.int
getId()
static Event
Get the metadata for an event on Last.fm.int
Returns the start date and time of this event.getTitle()
getUrl()
Returns the last.fm event url, i.e.getVenue()
Returns the event website url, if available.static Result
Share an event with one or more Last.fm users or other friends.Methods inherited from class de.umass.lastfm.ImageHolder
availableSizes, getImageURL, loadImages
-
Method Details
-
getArtists
-
getAttendance
public int getAttendance() -
getDescription
-
getHeadliner
-
getId
public int getId() -
getReviews
public int getReviews() -
getStartDate
Returns the start date and time of this event. Note that the time might not be correct, but instead a random time, if not set to a proper value on last.fm (happens often).- Returns:
- start date
-
getEndDate
Returns the event's end date, ornull
if not available. End dates are only supplied for events such as festivals, which last longer than one day.- Returns:
- end date
-
getTitle
-
getUrl
Returns the last.fm event url, i.e. http://www.last.fm/event/event-id- Returns:
- last.fm url
-
getWebsite
Returns the event website url, if available.- Returns:
- event website url
-
getTicketSuppliers
-
getVenue
-
getInfo
Get the metadata for an event on Last.fm. Includes attendance and lineup information.- Parameters:
eventId
- The numeric last.fm event idapiKey
- A Last.fm API key.- Returns:
- Event metadata
-
attend
Set a user's attendance status for an event.- Parameters:
eventId
- The numeric last.fm event idstatus
- The attendance statussession
- A Session instance- Returns:
- the Result of the operation.
- See Also:
-
getAttendees
Get a list of attendees for an event.- Parameters:
eventId
- The numeric last.fm event idapiKey
- A Last.fm API key- Returns:
- a list of users who attended the given event
-