mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-25 02:14:32 +01:00
Models Added,Removed kaaes wrapper Dependency
This commit is contained in:
parent
0ce929df9b
commit
5d1974739e
@ -63,8 +63,6 @@ dependencies {
|
||||
|
||||
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
||||
|
||||
implementation 'com.github.kaaes:spotify-web-api-android:0.4.1'
|
||||
|
||||
implementation 'com.google.apis:google-api-services-youtube:v3-rev180-1.22.0'
|
||||
implementation 'com.google.oauth-client:google-oauth-client:1.22.0'
|
||||
implementation 'com.spotify.android:auth:1.1.0'
|
||||
|
@ -0,0 +1,21 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Album(
|
||||
var album_type: String? = null,
|
||||
var artists: List<Artist?>? = null,
|
||||
var available_markets: List<String?>? = null,
|
||||
var copyrights: List<Copyright?>? = null,
|
||||
var external_ids: Map<String?, String?>? = null,
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var genres: List<String?>? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var images: List<Image?>? = null,
|
||||
var label :String? = null,
|
||||
var name: String? = null,
|
||||
var popularity: Int? = null,
|
||||
var release_date: String? = null,
|
||||
var release_date_precision: String? = null,
|
||||
var tracks: PagingObject<Track?>? = null,
|
||||
var type: String? = null,
|
||||
var uri: String? = null)
|
@ -0,0 +1,9 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Artist(
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var name: String? = null,
|
||||
var type: String? = null,
|
||||
var uri: String? = null)
|
@ -0,0 +1,5 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Copyright(
|
||||
var text: String? = null,
|
||||
var type: String? = null)
|
@ -0,0 +1,21 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Episodes(
|
||||
var audio_preview_url:String?,
|
||||
var description:String?,
|
||||
var duration_ms:Int?,
|
||||
var explicit:Boolean?,
|
||||
var external_urls:Map<String,String>?,
|
||||
var href:String?,
|
||||
var id:String?,
|
||||
var images:List<Image?>?,
|
||||
var is_externally_hosted:Boolean?,
|
||||
var is_playable:Boolean?,
|
||||
var language:String?,
|
||||
var languages:List<String?>?,
|
||||
var name:String?,
|
||||
var release_date:String?,
|
||||
var release_date_precision:String?,
|
||||
var type:String?,
|
||||
var uri:String
|
||||
)
|
@ -0,0 +1,5 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Followers(
|
||||
var href: String? = null,
|
||||
var total: Int? = null)
|
@ -0,0 +1,6 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Image(
|
||||
var width: Int? = null,
|
||||
var height: Int? = null,
|
||||
var url: String? = null)
|
@ -0,0 +1,8 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class LinkedTrack(
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var type: String? = null,
|
||||
var uri: String? = null)
|
@ -0,0 +1,10 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class PagingObject<T>(
|
||||
var href: String? = null,
|
||||
var items: List<T>? = null,
|
||||
var limit: Int = 0,
|
||||
var next: String? = null,
|
||||
var offset: Int = 0,
|
||||
var previous: String? = null,
|
||||
var total: Int = 0)
|
@ -0,0 +1,19 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
import com.squareup.moshi.Json
|
||||
|
||||
data class Playlist(
|
||||
@Json(name = "collaborative")var is_collaborative: Boolean? = null,
|
||||
var description: String? = null,
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var followers: Followers? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var images: List<Image?>? = null,
|
||||
var name: String? = null,
|
||||
var owner: UserPublic? = null,
|
||||
@Json(name = "public")var is_public: Boolean? = null,
|
||||
var snapshot_id: String? = null,
|
||||
var tracks: PagingObject<PlaylistTrack?>? = null,
|
||||
var type: String? = null,
|
||||
var uri: String? = null)
|
@ -0,0 +1,7 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class PlaylistTrack(
|
||||
var added_at: String? = null,
|
||||
var added_by: UserPublic? = null,
|
||||
var track: Track? = null,
|
||||
var is_local: Boolean? = null)
|
@ -0,0 +1,7 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Token(
|
||||
var access_token:String,
|
||||
var token_type:String,
|
||||
var expires_in:Int
|
||||
)
|
@ -0,0 +1,21 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class Track(
|
||||
var artists: List<Artist?>? = null,
|
||||
var available_markets: List<String?>? = null,
|
||||
var is_playable: Boolean? = null,
|
||||
var linked_from: LinkedTrack? = null,
|
||||
var disc_number: Int = 0,
|
||||
var duration_ms: Long = 0,
|
||||
var explicit: Boolean? = null,
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var name: String? = null,
|
||||
var preview_url: String? = null,
|
||||
var track_number: Int = 0,
|
||||
var type: String? = null,
|
||||
var uri: String? = null,
|
||||
var album: Album? = null,
|
||||
var external_ids: Map<String?, String?>? = null,
|
||||
var popularity: Int? = null)
|
@ -0,0 +1,14 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class UserPrivate(
|
||||
val country:String,
|
||||
var display_name: String,
|
||||
val email:String,
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var followers: Followers? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var images: List<Image?>? = null,
|
||||
var product:String,
|
||||
var type: String? = null,
|
||||
var uri: String? = null)
|
@ -0,0 +1,11 @@
|
||||
package com.shabinder.musicForEveryone.models
|
||||
|
||||
data class UserPublic(
|
||||
var display_name: String? = null,
|
||||
var external_urls: Map<String?, String?>? = null,
|
||||
var followers: Followers? = null,
|
||||
var href: String? = null,
|
||||
var id: String? = null,
|
||||
var images: List<Image?>? = null,
|
||||
var type: String? = null,
|
||||
var uri: String? = null)
|
Loading…
Reference in New Issue
Block a user