Skip to content

Commit

Permalink
Add generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
michpohl committed Oct 24, 2024
1 parent 5e9fb91 commit 545614e
Show file tree
Hide file tree
Showing 136 changed files with 7,722 additions and 0 deletions.
134 changes: 134 additions & 0 deletions tidalapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
src/main/kotlin/com/tidal/sdk/tidalapi/generated/ApiClient.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Albums.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Artists.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Playlists.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Providers.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/SearchResults.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Tracks.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserEntitlements.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserPublicProfilePicks.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserPublicProfiles.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserRecommendations.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Users.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Videos.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemResourceIdentifier.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemResourceIdentifierMeta.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemsRelationship.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemsRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersRelationship.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersResourceIdentifier.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersResourceIdentifierMeta.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/CatalogueItemExternalLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/CatalogueItemImageLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/CatalogueItemVideoLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ErrorDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ErrorObject.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ErrorObjectSource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ExternalLinkMeta.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ImageLinkMeta.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/Links.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/MultiDataRelationshipDoc.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsExternalLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsImageLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsItemsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsOwnersRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsOwnersRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PromptColors.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ResourceIdentifier.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsTopHitsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsTopHitsRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SingletonDataRelationshipDoc.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksRelationshipsDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksRelationshipsDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UpdateUserPublicProfilePicksRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksItemRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksItemRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesExternalLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesExternalLinkMeta.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesImageLink.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRecommendationsRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRecommendationsRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRelationshipDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRelationshipDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersSingleDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/Utils.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideoLinkMeta.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosAttributes.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosMultiDataDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosMultiDataDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosRelationships.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosRelationshipsDocument.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosRelationshipsDocumentIncludedInner.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosResource.kt
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosSingleDataDocument.kt
1 change: 1 addition & 0 deletions tidalapi/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.9.0-SNAPSHOT
126 changes: 126 additions & 0 deletions tidalapi/src/main/kotlin/com/tidal/sdk/tidalapi/generated/ApiClient.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
package com.tidal.sdk.tidalapi.generated

import com.tidal.sdk.auth.CredentialsProvider
import com.tidal.sdk.tidalapi.generated.apis.Albums
import com.tidal.sdk.tidalapi.generated.apis.Artists
import com.tidal.sdk.tidalapi.generated.apis.Playlists
import com.tidal.sdk.tidalapi.generated.apis.Providers
import com.tidal.sdk.tidalapi.generated.apis.SearchResults
import com.tidal.sdk.tidalapi.generated.apis.Tracks
import com.tidal.sdk.tidalapi.generated.apis.UserEntitlements
import com.tidal.sdk.tidalapi.generated.apis.UserPublicProfilePicks
import com.tidal.sdk.tidalapi.generated.apis.UserPublicProfiles
import com.tidal.sdk.tidalapi.generated.apis.UserRecommendations
import com.tidal.sdk.tidalapi.generated.apis.Users
import com.tidal.sdk.tidalapi.generated.apis.Videos
import com.tidal.sdk.tidalapi.networking.RetrofitProvider

class TidalApiClient(credentialsProvider: CredentialsProvider, baseUrl: String = DEFAULT_BASE_URL) {

private val retrofit by lazy {
RetrofitProvider().provideRetrofit(
baseUrl,
credentialsProvider,
)
}

/**
* Returns an instance of the [Albums] which can be used
* to make API calls to the
*/
fun createAlbums(): Albums {
return retrofit.create(Albums::class.java)
}

/**
* Returns an instance of the [Artists] which can be used
* to make API calls to the
*/
fun createArtists(): Artists {
return retrofit.create(Artists::class.java)
}

/**
* Returns an instance of the [Playlists] which can be used
* to make API calls to the
*/
fun createPlaylists(): Playlists {
return retrofit.create(Playlists::class.java)
}

/**
* Returns an instance of the [Providers] which can be used
* to make API calls to the
*/
fun createProviders(): Providers {
return retrofit.create(Providers::class.java)
}

/**
* Returns an instance of the [SearchResults] which can be used
* to make API calls to the
*/
fun createSearchResults(): SearchResults {
return retrofit.create(SearchResults::class.java)
}

/**
* Returns an instance of the [Tracks] which can be used
* to make API calls to the
*/
fun createTracks(): Tracks {
return retrofit.create(Tracks::class.java)
}

/**
* Returns an instance of the [UserEntitlements] which can be used
* to make API calls to the
*/
fun createUserEntitlements(): UserEntitlements {
return retrofit.create(UserEntitlements::class.java)
}

/**
* Returns an instance of the [UserPublicProfilePicks] which can be used
* to make API calls to the
*/
fun createUserPublicProfilePicks(): UserPublicProfilePicks {
return retrofit.create(UserPublicProfilePicks::class.java)
}

/**
* Returns an instance of the [UserPublicProfiles] which can be used
* to make API calls to the
*/
fun createUserPublicProfiles(): UserPublicProfiles {
return retrofit.create(UserPublicProfiles::class.java)
}

/**
* Returns an instance of the [UserRecommendations] which can be used
* to make API calls to the
*/
fun createUserRecommendations(): UserRecommendations {
return retrofit.create(UserRecommendations::class.java)
}

/**
* Returns an instance of the [Users] which can be used
* to make API calls to the
*/
fun createUsers(): Users {
return retrofit.create(Users::class.java)
}

/**
* Returns an instance of the [Videos] which can be used
* to make API calls to the
*/
fun createVideos(): Videos {
return retrofit.create(Videos::class.java)
}

companion object {
const val DEFAULT_BASE_URL = "https://openapi.tidal.com/v2/"
}
}
Loading

0 comments on commit 545614e

Please sign in to comment.