Response Types

Response TypesThis is an alphabetic listing of all response types.

Album

data class Album(val id: Int, 
val name: String, 
val year: Int, 
val artist: MutableList<Artist>, 
val tracks: MutableList<Track>
)

Artist

data class Artist(val id: Int, 
val name: String, 
val year: Int? = null, 
val albums: MutableList<Artist>? = null, 
val tracks: MutableList<Track>? = null
)

Image

data class Image(val url: String, 
val snowflake: String, 
val nsfw: Boolean, 
val tag: String
)

RedditPost

data class RedditPost(val title: String, 
val imageUrl: String, 
val source: String, 
val subReddit: String, 
val upvotes: Int, 
val downvotes: Int, 
val comments: Int, 
val createdAt: Long, 
val nsfw: Boolean, 
val author: String
)

RetrievedTrack

data class RetrievedTrack(
val name: String, 
val artist: Artist, 
val albums: MutableList<Artist>, 
val lyrics: String
)

Song

data class Song(
val artist: String, 
val artistId: Int, 
val album: String, 
val albumIds: String, 
val albumYear: String, 
val name: String, 
val lyrics: String, 
val searchString: String, 
val albumArt: String, 
val popularity: Int, 
val id: String, 
val searchScore: Double
)

Tag

data class Tag(
val name: String, 
val nsfw: Boolean, 
val tags: MutableList<String>
)

Track

data class Track(
val id: Int, 
val name: String
)

WikihowImage

data class WikihowImage(
val url: String, 
val title: String, 
val nsfw: Boolean, 
val articleUrl: String
)

Last updated