Package com.github.alex1304.jdash.entity
Class GDSong
- java.lang.Object
-
- com.github.alex1304.jdash.entity.GDSong
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDownloadURL()
Gets the downloadURLlong
getId()
The unique identifier for the entity.String
getSongAuthorName()
Gets the song author nameString
getSongSize()
Gets the song sizeString
getSongTitle()
Gets the song titleint
hashCode()
boolean
isCustom()
Gets whether the song is customString
toString()
static GDSong
unknownSong(long songID)
-
-
-
Constructor Detail
-
GDSong
public GDSong(long id, String songAuthorName, String songSize, String songTitle, String downloadURL, boolean isCustom)
- Parameters:
id
- - the song IDsongAuthorName
- - the song author namesongSize
- - the song author sizesongTitle
- - the song titledownloadURL
- - link to the song audio fileisCustom
- - whether the song is custom
-
-
Method Detail
-
unknownSong
public static GDSong unknownSong(long songID)
-
getId
public long getId()
Description copied from interface:GDEntity
The unique identifier for the entity.
-
getSongAuthorName
public String getSongAuthorName()
Gets the song author name- Returns:
- String
-
getSongSize
public String getSongSize()
Gets the song size- Returns:
- String
-
getSongTitle
public String getSongTitle()
Gets the song title- Returns:
- String
-
getDownloadURL
public String getDownloadURL()
Gets the downloadURL- Returns:
- String
-
isCustom
public boolean isCustom()
Gets whether the song is custom- Returns:
- boolean
-
-