Sync playback position (online only)

This commit is contained in:
Rasmus Krämer 2022-04-15 12:21:46 +02:00
parent 29fd29728a
commit 363bfd206c
No known key found for this signature in database
GPG key ID: EC9E510611BFDAA2
6 changed files with 74 additions and 23 deletions

View file

@ -2,12 +2,13 @@
// PlaybackReport.swift
// App
//
// Created by Rasmus Krämer on 12.04.22.
// Created by Rasmus Krämer on 15.04.22.
//
import Foundation
import RealmSwift
class PlaybackReport: Object {
@Persisted var token: String
struct PlaybackReport: Decodable, Encodable {
var currentTime: Double
var duration: Double
var timeListened: Double
}