Skip to content

Commit

Permalink
removed empty responses for HearThisAt
Browse files Browse the repository at this point in the history
  • Loading branch information
iankang committed Jan 31, 2022
1 parent ec415f4 commit 9a582a7
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 107 deletions.
8 changes: 2 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main/java/com/mixsteroids/mixjar/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ fun main() {
//exclusive
// val item1 = mixCloudServiceImpl.getShow("DJ_Jukess","thehypeaugust-nsg-vs-wstrn-mix-dj_jukess")

val item1 = mixCloudServiceImpl.getShow("mixmastermorris","mixmaster-morris-steinski-new-york")
// val item1 = mixCloudServiceImpl.getShow("mixmastermorrissdfasdf","mixmaster-morris-steinski-new-york")
// val item = mixCloudServiceImpl.getUser("ian-kangethe")
// println("actualItem: ${item?.toString()}")
println("getShow: $item1")
// println("getShow: $item1")
// val item = mixCloudServiceImpl.getUserFeed("ian-kangethe",1)
// val cloud = mixCloudServiceImpl.getUserCloudCast("The_Fixx",0)
// println(cloud)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,78 @@ import com.google.gson.annotations.SerializedName

data class HearthisatLoginResponse(
@SerializedName("allow_push")
var allowPush: Int,
var allowPush: Int?,
@SerializedName("avatar_url")
var avatarUrl: String,
var avatarUrl: String?,
@SerializedName("background_url")
var backgroundUrl: String,
var backgroundUrl: String?,
@SerializedName("caption")
var caption: String,
var caption: String?,
@SerializedName("description")
var description: String,
var description: String?,
@SerializedName("email")
var email: String,
var email: String?,
@SerializedName("followers_count")
var followersCount: String,
var followersCount: String?,
@SerializedName("following")
var following: Boolean,
var following: Boolean?,
@SerializedName("following_count")
var followingCount: String,
var followingCount: String?,
@SerializedName("geo")
var geo: String,
var geo: String?,
@SerializedName("id")
var id: String,
var id: String?,
@SerializedName("key")
var key: String,
var key: String?,
@SerializedName("likes_count")
var likesCount: String,
var likesCount: String?,
@SerializedName("locale")
var locale: String,
var locale: String?,
@SerializedName("720p_url")
var pUrl: String,
var pUrl: String?,
@SerializedName("permalink")
var permalink: String,
var permalink: String?,
@SerializedName("permalink_url")
var permalinkUrl: String,
var permalinkUrl: String?,
@SerializedName("playlist_count")
var playlistCount: String,
var playlistCount: String?,
@SerializedName("premium")
var premium: Boolean,
var premium: Boolean?,
@SerializedName("secret")
var secret: String,
var secret: String?,
@SerializedName("thumb_url")
var thumbUrl: String,
var thumbUrl: String?,
@SerializedName("track_count")
var trackCount: String,
var trackCount: String?,
@SerializedName("uri")
var uri: String,
var uri: String?,
@SerializedName("username")
var username: String
)
var username: String?
){
constructor():this(
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
)
}
32 changes: 18 additions & 14 deletions src/main/java/com/mixsteroids/mixjar/models/SingleArtistResponse.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
package com.mixsteroids.mixjar.models

data class SingleArtistResponse(
val avatar_url: String,
val background_url: String,
val description: String,
val followers_count: Int,
val following: Boolean,
val id: String,
val likes_count: Int,
val permalink: String,
val permalink_url: String,
val playlist_count: Int,
val track_count: Int,
val uri: String,
val username: String
)
val avatar_url: String?,
val background_url: String?,
val description: String?,
val followers_count: Int?,
val following: Boolean?,
val id: String?,
val likes_count: Int?,
val permalink: String?,
val permalink_url: String?,
val playlist_count: Int?,
val track_count: Int?,
val uri: String?,
val username: String?
) {
constructor() : this(
null, null, null, null, null, null, null, null, null, null, null, null, null
)
}
109 changes: 57 additions & 52 deletions src/main/java/com/mixsteroids/mixjar/models/SingleTrackResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,110 +5,115 @@ import com.google.gson.annotations.SerializedName

data class SingleTrackResponse(
@SerializedName("artwork_url")
var artworkUrl: String,
var artworkUrl: String?,
@SerializedName("artwork_url_retina")
var artworkUrlRetina: String,
var artworkUrlRetina: String?,
@SerializedName("background_url")
var backgroundUrl: String,
var backgroundUrl: String?,
@SerializedName("bpm")
var bpm: String,
var bpm: String?,
@SerializedName("comment_count")
var commentCount: String,
var commentCount: String?,
@SerializedName("created_at")
var createdAt: String,
var createdAt: String?,
@SerializedName("description")
var description: String,
var description: String?,
@SerializedName("download_count")
var downloadCount: String,
var downloadCount: String?,
@SerializedName("download_filename")
var downloadFilename: String,
var downloadFilename: String?,
@SerializedName("download_url")
var downloadUrl: String,
var downloadUrl: String?,
@SerializedName("downloadable")
var downloadable: Int,
var downloadable: Int?,
@SerializedName("duration")
var duration: String,
var duration: String?,
@SerializedName("fan_exclusive_download")
var fanExclusiveDownload: Int,
var fanExclusiveDownload: Int?,
@SerializedName("fan_exclusive_play")
var fanExclusivePlay: Int,
var fanExclusivePlay: Int?,
@SerializedName("favorited")
var favorited: Boolean,
var favorited: Boolean?,
@SerializedName("favoritings_count")
var favoritingsCount: String,
var favoritingsCount: String?,
@SerializedName("genre")
var genre: String,
var genre: String?,
@SerializedName("genre_slush")
var genreSlush: String,
var genreSlush: String?,
@SerializedName("geo")
var geo: String,
var geo: String?,
@SerializedName("id")
var id: String,
var id: String?,
@SerializedName("key")
var key: String,
var key: String?,
@SerializedName("license")
var license: String,
var license: String?,
@SerializedName("liked")
var liked: Boolean,
var liked: Boolean?,
@SerializedName("permalink")
var permalink: String,
var permalink: String?,
@SerializedName("permalink_url")
var permalinkUrl: String,
var permalinkUrl: String?,
@SerializedName("playback_count")
var playbackCount: String,
var playbackCount: String?,
@SerializedName("played")
var played: Boolean,
var played: Boolean?,
@SerializedName("preview_url")
var previewUrl: String,
var previewUrl: String?,
@SerializedName("private")
var `private`: String,
var `private`: String?,
@SerializedName("release_date")
var releaseDate: String,
var releaseDate: String?,
@SerializedName("release_timestamp")
var releaseTimestamp: Int,
var releaseTimestamp: Int?,
@SerializedName("reshared")
var reshared: Boolean,
var reshared: Boolean?,
@SerializedName("reshares_count")
var resharesCount: String,
var resharesCount: String?,
@SerializedName("stream_url")
var streamUrl: String,
var streamUrl: String?,
@SerializedName("taged_artists")
var tagedArtists: String,
var tagedArtists: String?,
@SerializedName("tags")
var tags: String,
var tags: String?,
@SerializedName("thumb")
var thumb: String,
var thumb: String?,
@SerializedName("title")
var title: String,
var title: String?,
@SerializedName("type")
var type: String,
var type: String?,
@SerializedName("uri")
var uri: String,
var uri: String?,
@SerializedName("user")
var user: HearthisAtUser,
var user: HearthisAtUser?,
@SerializedName("user_id")
var userId: String,
var userId: String?,
@SerializedName("version")
var version: String,
var version: String?,
@SerializedName("waveform_data")
var waveformData: String,
var waveformData: String?,
@SerializedName("waveform_url")
var waveformUrl: String
)
var waveformUrl: String?
){
constructor():this(null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null)
}

//data class HearthisAtUser(
// @SerializedName("avatar_url")
// var avatarUrl: String,
// var avatarUrl: String?,
// @SerializedName("caption")
// var caption: String,
// var caption: String?,
// @SerializedName("id")
// var id: String,
// var id: String?,
// @SerializedName("permalink")
// var permalink: String,
// var permalink: String?,
// @SerializedName("permalink_url")
// var permalinkUrl: String,
// var permalinkUrl: String?,
// @SerializedName("uri")
// var uri: String,
// var uri: String?,
// @SerializedName("username")
// var username: String
//)
Loading

0 comments on commit 9a582a7

Please sign in to comment.