35 lines
884 B
Swift
35 lines
884 B
Swift
import Foundation
|
|
|
|
public struct RemoteTrack: Identifiable, Codable, Hashable, Sendable {
|
|
public var id: String { trackId }
|
|
|
|
public var trackId: String
|
|
public var title: String
|
|
public var artist: String
|
|
public var durationSeconds: Int
|
|
public var sha256: String
|
|
public var assetId: String
|
|
public var createdAt: String
|
|
public var updatedAt: String
|
|
|
|
public init(
|
|
trackId: String,
|
|
title: String,
|
|
artist: String,
|
|
durationSeconds: Int,
|
|
sha256: String,
|
|
assetId: String,
|
|
createdAt: String,
|
|
updatedAt: String
|
|
) {
|
|
self.trackId = trackId
|
|
self.title = title
|
|
self.artist = artist
|
|
self.durationSeconds = durationSeconds
|
|
self.sha256 = sha256
|
|
self.assetId = assetId
|
|
self.createdAt = createdAt
|
|
self.updatedAt = updatedAt
|
|
}
|
|
}
|