java.lang.Object
com.amilesend.onedrive.resource.item.type.Audio

public class Audio extends Object
If a drive item is an audio file, this describes its attributes.

API Documentation.

See Also:
  • Method Details

    • builder

      public static Audio.AudioBuilder builder()
    • getAlbum

      public String getAlbum()
      The album title.
    • getAlbumArtist

      public String getAlbumArtist()
      The album artist.
    • getArtist

      public String getArtist()
      The performing artist.
    • getBitrate

      public long getBitrate()
      The bitrate in kbps.
    • getComposers

      public String getComposers()
      The composer.
    • getCopyright

      public String getCopyright()
      The copyright information.
    • getDisc

      public short getDisc()
      The disc number associated with the track.
    • getDiscCount

      public short getDiscCount()
      The total number of discs associated with the album.
    • getDuration

      public long getDuration()
      The duration in milliseconds.
    • getGenre

      public String getGenre()
      The music genre.
    • isHasDrm

      public boolean isHasDrm()
      Indicates if the audio file is protected with digital rights management.
    • isVariableBitrate

      public boolean isVariableBitrate()
      indicates if the file isencoded with a variable bitrate.
    • getTitle

      public String getTitle()
      The song title.
    • getTrack

      public int getTrack()
      The track number for the associated album.
    • getTrackCount

      public int getTrackCount()
      The total number of tracks for the associated album.
    • getYear

      public int getYear()
      The year the track was recorded.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object