Class GDSong

  • All Implemented Interfaces:
    GDEntity

    public final class GDSong
    extends Object
    implements GDEntity
    Represents a song used in GD levels
    Author:
    Alex1304
    • Constructor Detail

      • GDSong

        public GDSong​(long id,
                      String songAuthorName,
                      String songSize,
                      String songTitle,
                      String downloadURL,
                      boolean isCustom)
        Parameters:
        id - - the song ID
        songAuthorName - - the song author name
        songSize - - the song author size
        songTitle - - the song title
        downloadURL - - link to the song audio file
        isCustom - - whether the song is custom
      • GDSong

        public GDSong​(String songAuthorName,
                      String songTitle)
        Quick constructor for non-custom songs
        Parameters:
        songAuthorName - - the song author name
        songTitle - - the song title
    • Method Detail

      • unknownSong

        public static GDSong unknownSong​(long songID)
      • getId

        public long getId()
        Description copied from interface: GDEntity
        The unique identifier for the entity.
        Specified by:
        getId in interface GDEntity
        Returns:
        an ID
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object