Artist

types/artist.ql

An artist who creates songs.

Constructor Overview

Constructor Description
Artist(_id, _name)

Creates a new artist with the given ID and name. The id is a string that is identifiable by the provider which owns this artist. An example of this is a standard Spotify ID.

Function Overview

Function Description
fun getId() Gets the ID of the artist.
fun getName() Gets the name of the artist.

Field Overview

Field Description
string _id

The ID of the artist.

string _name

The name of the artist.

Constructors

Artist(_id, _name) link

Creates a new artist with the given ID and name. The id is a string that is identifiable by the provider which owns this artist. An example of this is a standard Spotify ID.

Params
id ( string )

The ID of the artist

name ( string )

The name of the artist

Functions

fun getId() link

Gets the ID of the artist.

Returns string

The ID of the artist

fun getName() link

Gets the name of the artist.

Returns string

The name of the artist