mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Extended the compatibility level starting from Android 7.0 (SDK 24)
This commit is contained in:
parent
e1f52958ba
commit
b9e8faac38
8 changed files with 21 additions and 25 deletions
|
|
@ -1,7 +1,5 @@
|
|||
package com.cappielloantonio.play.repository;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.lifecycle.LiveData;
|
||||
import androidx.lifecycle.MutableLiveData;
|
||||
|
|
@ -15,9 +13,7 @@ import com.cappielloantonio.play.subsonic.base.ApiResponse;
|
|||
import com.cappielloantonio.play.subsonic.models.Child;
|
||||
import com.cappielloantonio.play.subsonic.models.PlayQueue;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
|
@ -349,7 +345,7 @@ public class QueueRepository {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
queueDao.setLastPlay(mediaId, Instant.now().toEpochMilli());
|
||||
queueDao.setLastPlay(mediaId, System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
package com.cappielloantonio.play.subsonic.models
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
|
||||
class Artist {
|
||||
var id: String? = null
|
||||
var name: String? = null
|
||||
var starred: LocalDateTime? = null
|
||||
var starred: Date? = null
|
||||
var userRating: Int? = null
|
||||
var averageRating: Double? = null
|
||||
}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
package com.cappielloantonio.play.subsonic.models
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
|
||||
class Bookmark {
|
||||
var entry: Child? = null
|
||||
var position: Long = 0
|
||||
var username: String? = null
|
||||
var comment: String? = null
|
||||
var created: LocalDateTime? = null
|
||||
var changed: LocalDateTime? = null
|
||||
var created: Date? = null
|
||||
var changed: Date? = null
|
||||
}
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
package com.cappielloantonio.play.subsonic.models
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
|
||||
class Directory {
|
||||
var children: List<Child>? = null
|
||||
var id: String? = null
|
||||
var parentId: String? = null
|
||||
var name: String? = null
|
||||
var starred: LocalDateTime? = null
|
||||
var starred: Date? = null
|
||||
var userRating: Int? = null
|
||||
var averageRating: Double? = null
|
||||
var playCount: Long? = null
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
package com.cappielloantonio.play.subsonic.models
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
|
||||
class License {
|
||||
var isValid = false
|
||||
var email: String? = null
|
||||
var licenseExpires: LocalDateTime? = null
|
||||
var trialExpires: LocalDateTime? = null
|
||||
var licenseExpires: Date? = null
|
||||
var trialExpires: Date? = null
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.cappielloantonio.play.subsonic.models
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
|
||||
class Share {
|
||||
var entries: List<Child>? = null
|
||||
|
|
@ -8,8 +8,8 @@ class Share {
|
|||
var url: String? = null
|
||||
var description: String? = null
|
||||
var username: String? = null
|
||||
var created: LocalDateTime? = null
|
||||
var expires: LocalDateTime? = null
|
||||
var lastVisited: LocalDateTime? = null
|
||||
var created: Date? = null
|
||||
var expires: Date? = null
|
||||
var lastVisited: Date? = null
|
||||
var visitCount = 0
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.cappielloantonio.play.subsonic.models
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import java.util.*
|
||||
|
||||
class User {
|
||||
var folders: List<Int>? = null
|
||||
|
|
@ -20,5 +20,5 @@ class User {
|
|||
var isJukeboxRole = false
|
||||
var isShareRole = false
|
||||
var isVideoConversionRole = false
|
||||
var avatarLastChanged: LocalDateTime? = null
|
||||
var avatarLastChanged: Date? = null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue