build: change of package name

This commit is contained in:
antonio 2023-06-17 15:30:23 +02:00
parent 49afdbe4eb
commit b76a38cb30
274 changed files with 1981 additions and 2161 deletions

View file

@ -0,0 +1,25 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.util.*
@Parcelize
open class AlbumID3 : Parcelable {
var id: String? = null
var name: String? = null
var artist: String? = null
var artistId: String? = null
@SerializedName("coverArt")
var coverArtId: String? = null
var songCount: Int? = 0
var duration: Int? = 0
var playCount: Long? = null
var created: Date? = null
var starred: Date? = null
var year: Int = 0
var genre: String? = null
}

View file

@ -0,0 +1,11 @@
package com.cappielloantonio.tempo.subsonic.models
class AlbumInfo {
var notes: String? = null
var musicBrainzId: String? = null
var lastFmUrl: String? = null
var smallImageUrl: String? = null
var mediumImageUrl: String? = null
var largeImageUrl: String? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class AlbumList {
var albums: List<Child>? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class AlbumList2 {
@SerializedName("album")
var albums: List<AlbumID3>? = null
}

View file

@ -0,0 +1,11 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class AlbumWithSongsID3 : AlbumID3(), Parcelable {
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.util.Date
@Parcelize
class Artist : Parcelable {
var id: String? = null
var name: String? = null
var starred: Date? = null
var userRating: Int? = null
var averageRating: Double? = null
}

View file

@ -0,0 +1,17 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.util.*
@Parcelize
open class ArtistID3 : Parcelable {
var id: String? = null
var name: String? = null
@SerializedName("coverArt")
var coverArtId: String? = null
var albumCount = 0
var starred: Date? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class ArtistInfo : ArtistInfoBase() {
var similarArtists: List<Artist>? = null
}

View file

@ -0,0 +1,9 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
import java.util.*
class ArtistInfo2 : ArtistInfoBase() {
@SerializedName("similarArtist")
var similarArtists: List<SimilarArtistID3>? = emptyList()
}

View file

@ -0,0 +1,10 @@
package com.cappielloantonio.tempo.subsonic.models
open class ArtistInfoBase {
var biography: String? = null
var musicBrainzId: String? = null
var lastFmUrl: String? = null
var smallImageUrl: String? = null
var mediumImageUrl: String? = null
var largeImageUrl: String? = null
}

View file

@ -0,0 +1,11 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class ArtistWithAlbumsID3 : ArtistID3(), Parcelable {
@SerializedName("album")
var albums: List<AlbumID3>? = null
}

View file

@ -0,0 +1,9 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class ArtistsID3 {
@SerializedName("index")
var indices: List<IndexID3>? = null
var ignoredArticles: String? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class AudioTrack {
var id: String? = null
var name: String? = null
var languageCode: String? = null
}

View file

@ -0,0 +1,12 @@
package com.cappielloantonio.tempo.subsonic.models
import java.util.*
class Bookmark {
var entry: Child? = null
var position: Long = 0
var username: String? = null
var comment: String? = null
var created: Date? = null
var changed: Date? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class Bookmarks {
var bookmarks: List<Bookmark>? = null
}

View file

@ -0,0 +1,6 @@
package com.cappielloantonio.tempo.subsonic.models
class Captions {
var id: String? = null
var name: String? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class ChatMessage {
var username: String? = null
var time: Long = 0
var message: String? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class ChatMessages {
var chatMessages: List<ChatMessage>? = null
}

View file

@ -0,0 +1,110 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.util.*
@Parcelize
open class Child(
@PrimaryKey
@ColumnInfo(name = "id")
open val id: String,
@ColumnInfo(name = "parent_id")
@SerializedName("parent")
var parentId: String? = null,
@ColumnInfo(name = "is_dir")
var isDir: Boolean = false,
@ColumnInfo
var title: String? = null,
@ColumnInfo
var album: String? = null,
@ColumnInfo
var artist: String? = null,
@ColumnInfo
var track: Int? = null,
@ColumnInfo
var year: Int? = null,
@ColumnInfo
@SerializedName("genre")
var genre: String? = null,
@ColumnInfo(name = "cover_art_id")
@SerializedName("coverArt")
var coverArtId: String? = null,
@ColumnInfo
var size: Long? = null,
@ColumnInfo(name = "content_type")
var contentType: String? = null,
@ColumnInfo
var suffix: String? = null,
@ColumnInfo("transcoding_content_type")
var transcodedContentType: String? = null,
@ColumnInfo(name = "transcoded_suffix")
var transcodedSuffix: String? = null,
@ColumnInfo
var duration: Int? = null,
@ColumnInfo("bitrate")
@SerializedName("bitRate")
var bitrate: Int? = null,
@ColumnInfo
var path: String? = null,
@ColumnInfo(name = "is_video")
@SerializedName("isVideo")
var isVideo: Boolean = false,
@ColumnInfo(name = "user_rating")
var userRating: Int? = null,
@ColumnInfo(name = "average_rating")
var averageRating: Double? = null,
@ColumnInfo(name = "play_count")
var playCount: Long? = null,
@ColumnInfo(name = "disc_number")
var discNumber: Int? = null,
@ColumnInfo
var created: Date? = null,
@ColumnInfo
var starred: Date? = null,
@ColumnInfo(name = "album_id")
var albumId: String? = null,
@ColumnInfo(name = "artist_id")
var artistId: String? = null,
@ColumnInfo
var type: String? = null,
@ColumnInfo(name = "bookmark_position")
var bookmarkPosition: Long? = null,
@ColumnInfo(name = "original_width")
var originalWidth: Int? = null,
@ColumnInfo(name = "original_height")
var originalHeight: Int? = null
) : Parcelable

View file

@ -0,0 +1,20 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.util.Date
@Parcelize
class Directory : Parcelable {
@SerializedName("child")
var children: List<Child>? = null
var id: String? = null
@SerializedName("parent")
var parentId: String? = null
var name: String? = null
var starred: Date? = null
var userRating: Int? = null
var averageRating: Double? = null
var playCount: Long? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class Error {
var code: ErrorCode? = null
var message: String? = null
}

View file

@ -0,0 +1,16 @@
package com.cappielloantonio.tempo.subsonic.models
class ErrorCode(val value: Int) {
companion object {
var GENERIC_ERROR = 0
var REQUIRED_PARAMETER_MISSING = 10
var INCOMPATIBLE_VERSION_CLIENT = 20
var INCOMPATIBLE_VERSION_SERVER = 30
var WRONG_USERNAME_OR_PASSWORD = 40
var TOKEN_AUTHENTICATION_NOT_SUPPORTED = 41
var USER_NOT_AUTHORIZED = 50
var TRIAL_PERIOD_OVER = 60
var DATA_NOT_FOUND = 70
}
}

View file

@ -0,0 +1,13 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class Genre : Parcelable {
@SerializedName("value")
var genre: String? = null
var songCount = 0
var albumCount = 0
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Genres {
@SerializedName("genre")
var genres: List<Genre>? = null
}

View file

@ -0,0 +1,9 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Index {
@SerializedName("artist")
var artists: List<Artist>? = null
var name: String? = null
}

View file

@ -0,0 +1,9 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class IndexID3 {
@SerializedName("artist")
var artists: List<ArtistID3>? = null
var name: String? = null
}

View file

@ -0,0 +1,12 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Indexes {
var shortcuts: List<Artist>? = null
@SerializedName("index")
var indices: List<Index>? = null
var children: List<Child>? = null
var lastModified: Long = 0
var ignoredArticles: String? = null
}

View file

@ -0,0 +1,12 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class InternetRadioStation : Parcelable {
var id: String? = null
var name: String? = null
var streamUrl: String? = null
var homePageUrl: String? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class InternetRadioStations {
@SerializedName("internetRadioStation")
var internetRadioStations: List<InternetRadioStation>? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class JukeboxPlaylist : JukeboxStatus() {
var entries: List<Child>? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
open class JukeboxStatus {
var currentIndex = 0
var isPlaying = false
var gain = 0f
var position: Int? = null
}

View file

@ -0,0 +1,10 @@
package com.cappielloantonio.tempo.subsonic.models
import java.util.*
class License {
var isValid = false
var email: String? = null
var licenseExpires: Date? = null
var trialExpires: Date? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class Lyrics {
var value: String? = null
var artist: String? = null
var title: String? = null
}

View file

@ -0,0 +1,12 @@
package com.cappielloantonio.tempo.subsonic.models
class MediaType {
var value: String? = null
companion object {
var MUSIC = "music"
var PODCAST = "podcast"
var AUDIOBOOK = "audiobook"
var VIDEO = "video"
}
}

View file

@ -0,0 +1,10 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class MusicFolder : Parcelable {
var id: String? = null
var name: String? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class MusicFolders {
@SerializedName("musicFolder")
var musicFolders: List<MusicFolder>? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class NewestPodcasts {
@SerializedName("episode")
var episodes: List<PodcastEpisode>? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class NowPlaying {
var entries: List<NowPlayingEntry>? = null
}

View file

@ -0,0 +1,15 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class NowPlayingEntry(
@SerializedName("_id")
override val id: String
) : Child(id) {
var username: String? = null
var minutesAgo = 0
var playerId = 0
var playerName: String? = null
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
import java.util.*
class PlayQueue {
@SerializedName("entry")
var entries: List<Child>? = null
var current: String? = null
var position: Long? = null
var username: String? = null
var changed: Date? = null
var changedBy: String? = null
}

View file

@ -0,0 +1,49 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.util.*
@Parcelize
@Entity(tableName = "playlist")
open class Playlist(
@PrimaryKey
@ColumnInfo(name = "id")
open var id: String
) : Parcelable {
@ColumnInfo(name = "name")
var name: String? = null
@Ignore
var comment: String? = null
@Ignore
var owner: String? = null
@Ignore
@SerializedName("public")
var isUniversal: Boolean? = null
@Ignore
var songCount: Int = 0
@ColumnInfo(name = "duration")
var duration: Long = 0
@Ignore
var created: Date? = null
@Ignore
var changed: Date? = null
@ColumnInfo(name = "coverArt")
var coverArtId: String? = null
@Ignore
var allowedUsers: List<String>? = null
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class PlaylistWithSongs(
@SerializedName("_id")
override var id: String
) : Playlist(id), Parcelable {
@SerializedName("entry")
var entries: List<Child>? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Playlists(
@SerializedName("playlist")
var playlists: List<Playlist>? = null
)

View file

@ -0,0 +1,19 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
class PodcastChannel : Parcelable {
@SerializedName("episode")
var episodes: List<PodcastEpisode>? = null
var id: String? = null
var url: String? = null
var title: String? = null
var description: String? = null
var coverArtId: String? = null
var originalImageUrl: String? = null
var status: String? = null
var errorMessage: String? = null
}

View file

@ -0,0 +1,58 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import androidx.room.ColumnInfo
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
import java.util.*
@Parcelize
class PodcastEpisode : Parcelable {
var id: String? = null
@SerializedName("parent")
var parentId: String? = null
@SerializedName("isDir")
var isDir = false
var title: String? = null
var album: String? = null
var artist: String? = null
var track: Int? = null
var year: Int? = null
var genre: String? = null
@SerializedName("coverArt")
var coverArtId: String? = null
var size: Long? = null
var contentType: String? = null
var suffix: String? = null
var transcodedContentType: String? = null
var transcodedSuffix: String? = null
var duration: Int? = null
@ColumnInfo("bitrate")
@SerializedName("bitRate")
var bitrate: Int? = null
var path: String? = null
@ColumnInfo(name = "is_video")
@SerializedName("isVideo")
var isVideo: Boolean = false
var userRating: Int? = null
var averageRating: Double? = null
var playCount: Long? = null
var discNumber: Int? = null
var created: Date? = null
var starred: Date? = null
var albumId: String? = null
var artistId: String? = null
var type: String? = null
var bookmarkPosition: Long? = null
var originalWidth: Int? = null
var originalHeight: Int? = null
var streamId: String? = null
var channelId: String? = null
var description: String? = null
var status: String? = null
var publishDate: Date? = null
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
class PodcastStatus {
var value: String? = null
companion object {
var NEW = "new"
var DOWNLOADING = "downloading"
var COMPLETED = "completed"
var ERROR = "error"
var DELETED = "deleted"
var SKIPPED = "skipped"
}
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Podcasts {
@SerializedName("channel")
var channels: List<PodcastChannel>? = null
}

View file

@ -0,0 +1,12 @@
package com.cappielloantonio.tempo.subsonic.models
class ResponseStatus(val value: String) {
companion object {
@JvmField
var OK = "ok"
@JvmField
var FAILED = "failed"
}
}

View file

@ -0,0 +1,6 @@
package com.cappielloantonio.tempo.subsonic.models
class ScanStatus {
var isScanning = false
var count: Long? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class SearchResult {
var matches: List<Child>? = null
var offset = 0
var totalHits = 0
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class SearchResult2 {
@SerializedName("artist")
var artists: List<Artist>? = null
@SerializedName("album")
var albums: List<Child>? = null
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class SearchResult3 {
@SerializedName("artist")
var artists: List<ArtistID3>? = null
@SerializedName("album")
var albums: List<AlbumID3>? = null
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,15 @@
package com.cappielloantonio.tempo.subsonic.models
import java.util.*
class Share {
var entries: List<Child>? = null
var id: String? = null
var url: String? = null
var description: String? = null
var username: String? = null
var created: Date? = null
var expires: Date? = null
var lastVisited: Date? = null
var visitCount = 0
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class Shares {
var shares: List<Share>? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class SimilarArtistID3 : ArtistID3(), Parcelable

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class SimilarSongs {
var songs: List<Child>? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class SimilarSongs2 {
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Songs {
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class Starred {
var artists: List<Artist>? = null
var albums: List<Child>? = null
var songs: List<Child>? = null
}

View file

@ -0,0 +1,14 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class Starred2 {
@SerializedName("artist")
var artists: List<ArtistID3>? = null
@SerializedName("album")
var albums: List<AlbumID3>? = null
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,51 @@
package com.cappielloantonio.tempo.subsonic.models
class SubsonicResponse {
var error: Error? = null
var scanStatus: ScanStatus? = null
var topSongs: TopSongs? = null
var similarSongs2: SimilarSongs2? = null
var similarSongs: SimilarSongs? = null
var artistInfo2: ArtistInfo2? = null
var artistInfo: ArtistInfo? = null
var albumInfo: AlbumInfo? = null
var starred2: Starred2? = null
var starred: Starred? = null
var shares: Shares? = null
var playQueue: PlayQueue? = null
var bookmarks: Bookmarks? = null
var internetRadioStations: InternetRadioStations? = null
var newestPodcasts: NewestPodcasts? = null
var podcasts: Podcasts? = null
var lyrics: Lyrics? = null
var songsByGenre: Songs? = null
var randomSongs: Songs? = null
var albumList2: AlbumList2? = null
var albumList: AlbumList? = null
var chatMessages: ChatMessages? = null
var user: User? = null
var users: Users? = null
var license: License? = null
var jukeboxPlaylist: JukeboxPlaylist? = null
var jukeboxStatus: JukeboxStatus? = null
var playlist: PlaylistWithSongs? = null
var playlists: Playlists? = null
var searchResult3: SearchResult3? = null
var searchResult2: SearchResult2? = null
var searchResult: SearchResult? = null
var nowPlaying: NowPlaying? = null
var videoInfo: VideoInfo? = null
var videos: Videos? = null
var song: Child? = null
var album: AlbumWithSongsID3? = null
var artist: ArtistWithAlbumsID3? = null
var artists: ArtistsID3? = null
var genres: Genres? = null
var directory: Directory? = null
var indexes: Indexes? = null
var musicFolders: MusicFolders? = null
var status: String? = null
var version: String? = null
var type: String? = null
var serverVersion: String? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
import com.google.gson.annotations.SerializedName
class TopSongs {
@SerializedName("song")
var songs: List<Child>? = null
}

View file

@ -0,0 +1,24 @@
package com.cappielloantonio.tempo.subsonic.models
import java.util.*
class User {
var folders: List<Int>? = null
var username: String? = null
var email: String? = null
var isScrobblingEnabled = false
var maxBitRate: Int? = null
var isAdminRole = false
var isSettingsRole = false
var isDownloadRole = false
var isUploadRole = false
var isPlaylistRole = false
var isCoverArtRole = false
var isCommentRole = false
var isPodcastRole = false
var isStreamRole = false
var isJukeboxRole = false
var isShareRole = false
var isVideoConversionRole = false
var avatarLastChanged: Date? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class Users {
var users: List<User>? = null
}

View file

@ -0,0 +1,7 @@
package com.cappielloantonio.tempo.subsonic.models
class VideoConversion {
var id: String? = null
var bitRate: Int? = null
var audioTrackId: Int? = null
}

View file

@ -0,0 +1,8 @@
package com.cappielloantonio.tempo.subsonic.models
class VideoInfo {
var captions: List<Captions>? = null
var audioTracks: List<AudioTrack>? = null
var conversions: List<VideoConversion>? = null
var id: String? = null
}

View file

@ -0,0 +1,5 @@
package com.cappielloantonio.tempo.subsonic.models
class Videos {
var videos: List<Child>? = null
}