Skip to content

Commit

Permalink
eliminated nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
iankang committed Jan 31, 2022
1 parent 9a582a7 commit a55cf91
Show file tree
Hide file tree
Showing 28 changed files with 100 additions and 52 deletions.
4 changes: 1 addition & 3 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("mixmastermorrissdfasdf","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 @@ -11,6 +11,8 @@ data class CityAndTagLatestResponse(
cityAndTagLatestResponse?.data,
cityAndTagLatestResponse?.paging
)

constructor():this(cityAndTagLatestResponse = null)
}

data class CityAndTagLatestResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ data class CityAndTagPopularResponse (
cityAndTagPopularResponse?.data,
cityAndTagPopularResponse?.paging
)

constructor():this(cityAndTagPopularResponse = null)
}
data class CityAndTagPopularResponseData (

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ data class CityLatestResponse (
cityLatestResponse?.data,
cityLatestResponse?.paging
)

constructor():this(cityLatestResponse = null)
}

data class CityLatestResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ data class CityPopularResponse (
cityPopularResponse?.data,
cityPopularResponse?.paging
)

constructor():this(cityPopularResponse = null)
}

data class CityPopularResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ data class FavoritingResponse(
constructor(followResponse: FavoritingResponse?):this(
followResponse?.result
)

constructor():this(followResponse = null)
}

data class FavoritingResult(
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/mixsteroids/mixjar/models/FollowResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ data class FollowResponse(
constructor(followResponse: FollowResponse?):this(
followResponse?.result
)

constructor():this(followResponse = null)
}

data class Result(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ data class LatestTagResponse (
latestTagResponse?.data,
latestTagResponse?.paging
)

constructor():this(latestTagResponse = null)
}

data class LatestTagResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ data class ListenLaterResponse(
constructor(followResponse: ListenLaterResponse?):this(
followResponse?.result
)

constructor():this(followResponse = null)
}

data class ListenLaterResult(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ data class PopularTagResponse (
popularTagResponse?.data,
popularTagResponse?.paging
)

constructor():this(popularTagResponse = null)
}

data class PopularTagResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ data class RepostingResponse(
constructor(repostingResponse: RepostingResponse?):this(
repostingResponse?.result
)

constructor():this(repostingResponse = null)
}

data class RepostingResult(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data class ShowCommentsResponse (
showCommentsResponse?.paging,
showCommentsResponse?.name
)

constructor():this(showCommentsResponse = null)
}

data class ShowCommentsResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ data class ShowFavoritesResponse (
showFavoritesResponse?.data,
showFavoritesResponse?.paging
)

constructor():this(showFavoritesResponse = null)
}

data class ShowFavoritesResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ data class ShowListenersResponse (
showListenersResponse?.paging,
showListenersResponse?.name
)

constructor():this(showListenersResponse = null)
}

data class ShowListenersResponseData (
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/mixsteroids/mixjar/models/ShowResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ data class ShowResponse (
showResponse?.type,
showResponse?.metadata
)

constructor():this(showResponse = null)
}

data class ShowResponseConnections (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data class ShowSimilarResponse (
showSimilarResponse?.paging,
showSimilarResponse?.name,
)

constructor():this(showSimilarResponse = null)
}

data class ShowSimilarResponseData (
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/mixsteroids/mixjar/models/TagResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ data class TagResponse (
tagResponse?.type,
tagResponse?.metadata
)

constructor():this(tagResponse = null)
}
data class CityResponse (

Expand All @@ -34,6 +36,8 @@ data class CityResponse (
cityResponse?.type,
cityResponse?.metadata
)

constructor():this(cityResponse = null)
}
data class TagAndCityResponse (

Expand All @@ -50,6 +54,8 @@ data class TagAndCityResponse (
tagAndCityResponse?.type,
tagAndCityResponse?.metadata
)

constructor():this(tagAndCityResponse = null)
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data class UserCloudCastResponse (
userCloudCastResponse?.paging,
userCloudCastResponse?.name
)
constructor():this(userCloudCastResponse = null)
}

data class UserCloudCastResponseUser (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data class UserCommentsResponse (
userCommentsResponse?.paging,
userCommentsResponse?.name
)
constructor():this(userCommentsResponse = null)
}

data class UserCommentsResponseUser (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data class UserFavoritesResponse (
userFavoritesResponse?.paging,
userFavoritesResponse?.name
)

constructor():this(userFavoritesResponse = null)
}

data class UserFavoritesResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ data class UserFeedResponse(
userFeedResponse?.paging,
userFeedResponse?.name
)
constructor():this(userFeedResponse = null)
}

data class UserFeedPictures(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data class UserFollowersResponse (
userFollowersResponse?.paging,
userFollowersResponse?.name
)

constructor():this(userFollowersResponse = null)
}

data class UserFollowersData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ data class UserFollowingResponse (
userFollowingResponse?.data,
userFollowingResponse?.paging
)

constructor():this(userFollowingResponse = null)
}

data class UserFollowingResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data class UserListensResponse (
userListensResponse?.paging,
userListensResponse?.name
)
constructor():this(userListensResponse = null)
}

data class UserListensResponseData (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ data class UserPlaylistsResponse (
userPlaylistsResponse?.paging,
userPlaylistsResponse?.name
)

constructor():this(userPlaylistsResponse = null)
}

data class UserPlaylistsResponseData (
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/mixsteroids/mixjar/models/UserResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ data class UserResponse(
userResponse?.picture_primary_color,
userResponse?.type,
userResponse?.metadata)

constructor():this(userResponse = null)
}

data class UserResponsePictures (
Expand Down
Loading

0 comments on commit a55cf91

Please sign in to comment.