User

types/user.ql

An end user/listener of a song provider that may own playlists.

Constructor Overview

Constructor Description
User(_id, _name)

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

Function Overview

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

Field Overview

Field Description
string _id

The ID of the user.

string _name

The name of the user.

Constructors

User(_id, _name) link

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

Params
id ( string )

The ID of the user

name ( string )

The name of the user

Functions

fun getId() link

Gets the ID of the user.

Returns string

The ID of the user

fun getName() link

Gets the name of the user.

Returns string

The name of the user