-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from kotvertolet/release_1.1.3
release 1.3.3'
- Loading branch information
Showing
47 changed files
with
541 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/github/kotvertolet/youtubeaudioplayer/data/PlaylistWithSongs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data | ||
|
||
import com.github.kotvertolet.youtubeaudioplayer.db.dto.PlaylistDto | ||
import com.github.kotvertolet.youtubeaudioplayer.db.dto.YoutubeSongDto | ||
|
||
class PlaylistWithSongs { | ||
var playlist: PlaylistDto? = null | ||
var songs: List<YoutubeSongDto>? = null | ||
|
||
constructor() | ||
constructor(playlist: PlaylistDto?, songs: List<YoutubeSongDto>?) { | ||
this.playlist = playlist | ||
this.songs = songs | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
...m/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/ContentDetails.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class ContentDetails { | ||
@SerializedName("duration") | ||
var duration: String? = null | ||
|
||
@SerializedName("licensedContent") | ||
var isLicensedContent = false | ||
|
||
@SerializedName("caption") | ||
var caption: String? = null | ||
|
||
@SerializedName("definition") | ||
var definition: String? = null | ||
|
||
@SerializedName("regionRestriction") | ||
var regionRestriction: RegionRestriction? = null | ||
|
||
@SerializedName("projection") | ||
var projection: String? = null | ||
|
||
@SerializedName("dimension") | ||
var dimension: String? = null | ||
|
||
override fun toString(): String { | ||
return "ContentDetails{" + | ||
"duration = '" + duration + '\'' + | ||
",licensedContent = '" + isLicensedContent + '\'' + | ||
",caption = '" + caption + '\'' + | ||
",definition = '" + definition + '\'' + | ||
",regionRestriction = '" + regionRestriction + '\'' + | ||
",projection = '" + projection + '\'' + | ||
",dimension = '" + dimension + '\'' + | ||
"}" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...in/java/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/High.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class High { | ||
@SerializedName("width") | ||
var width = 0 | ||
|
||
@SerializedName("url") | ||
var url: String? = null | ||
|
||
@SerializedName("height") | ||
var height = 0 | ||
|
||
override fun toString(): String { | ||
return "High{" + | ||
"width = '" + width + '\'' + | ||
",url = '" + url + '\'' + | ||
",height = '" + height + '\'' + | ||
"}" | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...main/java/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/Id.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class Id { | ||
@SerializedName("kind") | ||
var kind: String? = null | ||
|
||
@SerializedName("videoId") | ||
var videoId: String | ||
|
||
constructor(videoId: String) { | ||
this.videoId = videoId | ||
} | ||
|
||
constructor(kind: String?, videoId: String) { | ||
this.kind = kind | ||
this.videoId = videoId | ||
} | ||
|
||
override fun toString(): String { | ||
return "Id{" + | ||
"kind = '" + kind + '\'' + | ||
",videoId = '" + videoId + '\'' + | ||
"}" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ithub/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/JsonMemberDefault.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class JsonMemberDefault { | ||
@SerializedName("width") | ||
var width = 0 | ||
|
||
@SerializedName("url") | ||
var url: String? = null | ||
|
||
@SerializedName("height") | ||
var height = 0 | ||
|
||
override fun toString(): String { | ||
return "JsonMemberDefault{" + | ||
"width = '" + width + '\'' + | ||
",url = '" + url + '\'' + | ||
",height = '" + height + '\'' + | ||
"}" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...va/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/Localized.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class Localized { | ||
@SerializedName("description") | ||
var description: String? = null | ||
|
||
@SerializedName("title") | ||
var title: String? = null | ||
|
||
override fun toString(): String { | ||
return "Localized{" + | ||
"description = '" + description + '\'' + | ||
",title = '" + title + '\'' + | ||
"}" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
.../java/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/Maxres.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class Maxres { | ||
@SerializedName("width") | ||
var width = 0 | ||
|
||
@SerializedName("url") | ||
var url: String? = null | ||
|
||
@SerializedName("height") | ||
var height = 0 | ||
|
||
override fun toString(): String { | ||
return "Maxres{" + | ||
"width = '" + width + '\'' + | ||
",url = '" + url + '\'' + | ||
",height = '" + height + '\'' + | ||
"}" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
.../java/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/Medium.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class Medium { | ||
@SerializedName("width") | ||
var width = 0 | ||
|
||
@SerializedName("url") | ||
var url: String? = null | ||
|
||
@SerializedName("height") | ||
var height = 0 | ||
|
||
override fun toString(): String { | ||
return "Medium{" + | ||
"width = '" + width + '\'' + | ||
",url = '" + url + '\'' + | ||
",height = '" + height + '\'' + | ||
"}" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ava/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/PageInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class PageInfo { | ||
@SerializedName("totalResults") | ||
var totalResults = 0 | ||
|
||
@SerializedName("resultsPerPage") | ||
var resultsPerPage = 0 | ||
|
||
override fun toString(): String { | ||
return "PageInfo{" + | ||
"totalResults = '" + totalResults + '\'' + | ||
",resultsPerPage = '" + resultsPerPage + '\'' + | ||
"}" | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ithub/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/RegionRestriction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class RegionRestriction { | ||
@SerializedName("allowed") | ||
var allowed: List<String>? = null | ||
|
||
override fun toString(): String { | ||
return "RegionRestriction{" + | ||
"allowed = '" + allowed + '\'' + | ||
"}" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...a/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/ResourceId.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class ResourceId { | ||
@SerializedName("kind") | ||
var kind: String? = null | ||
|
||
@SerializedName("videoId") | ||
var videoId: String? = null | ||
|
||
override fun toString(): String { | ||
return "ResourceId{" + | ||
"kind = '" + kind + '\'' + | ||
",videoId = '" + videoId + '\'' + | ||
"}" | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...java/com/github/kotvertolet/youtubeaudioplayer/data/models/youtube/videos/list/Snippet.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package com.github.kotvertolet.youtubeaudioplayer.data.models.youtube.videos.list | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
class Snippet { | ||
@SerializedName("publishedAt") | ||
var publishedAt: String? = null | ||
|
||
@SerializedName("localized") | ||
var localized: Localized? = null | ||
|
||
@SerializedName("description") | ||
var description: String? = null | ||
|
||
@SerializedName("title") | ||
var title: String? = null | ||
|
||
@SerializedName("thumbnails") | ||
var thumbnails: Thumbnails? = null | ||
|
||
@SerializedName("channelId") | ||
var channelId: String? = null | ||
|
||
@SerializedName("categoryId") | ||
var categoryId: String? = null | ||
|
||
@SerializedName("channelTitle") | ||
var channelTitle: String? = null | ||
|
||
@SerializedName("tags") | ||
var tags: List<String>? = null | ||
|
||
@SerializedName("liveBroadcastContent") | ||
var liveBroadcastContent: String? = null | ||
|
||
//TODO: Only for playlist | ||
@SerializedName("resourceId") | ||
var resourceId: ResourceId? = null | ||
|
||
override fun toString(): String { | ||
return "Snippet{" + | ||
"publishedAt = '" + publishedAt + '\'' + | ||
",localized = '" + localized + '\'' + | ||
",description = '" + description + '\'' + | ||
",title = '" + title + '\'' + | ||
",thumbnails = '" + thumbnails + '\'' + | ||
",channelId = '" + channelId + '\'' + | ||
",categoryId = '" + categoryId + '\'' + | ||
",channelTitle = '" + channelTitle + '\'' + | ||
",tags = '" + tags + '\'' + | ||
",liveBroadcastContent = '" + liveBroadcastContent + '\'' + | ||
"}" | ||
} | ||
} |
Oops, something went wrong.