song.ql

types/song.ql
Contents of the file.

Function Overview

Function Description
native fun getUrl() on song Gets the URL of the song. If it was not defined with a URL, an empty string is returned.
native fun getId() on song Gets the ID of the song. This is an ID identifiable by the provider which owns this song.
native fun getArtist() on song Gets the Artist entity of the primary artist on the song
native fun getAllArtists() on song Gets all Artist entities on the song.
native fun getAlbum() on song Gets the Album the song is on.
native fun getTitle() on song Gets the name of the song.
native fun getDuration() on song Gets the duration of the song in milliseconds.

Functions

native fun getUrl() on song link

Gets the URL of the song. If it was not defined with a URL, an empty string is returned.

Returns string

The URL of the song

native fun getId() on song link

Gets the ID of the song. This is an ID identifiable by the provider which owns this song.

Returns string

The ID of the song

native fun getArtist() on song link

Gets the Artist entity of the primary artist on the song

Returns Artist

The first artist of a song

native fun getAllArtists() on song link

Gets all Artist entities on the song.

Returns list

A list of artists on the song

native fun getAlbum() on song link

Gets the Album the song is on.

Returns Album

The album of the song

native fun getTitle() on song link

Gets the name of the song.

Returns string

The name of the song

native fun getDuration() on song link

Gets the duration of the song in milliseconds.

Returns int

The duration of the song