29 lines
802 B
Swift
29 lines
802 B
Swift
//
|
|
// User.swift
|
|
// JellyKit
|
|
//
|
|
// Created by Alex Loren on 10/13/26.
|
|
//
|
|
|
|
/// Contains the information of any `User` that is reported back by Emby or Jellyfin.
|
|
/// This model does not currently contain all data reported by the server.
|
|
/// Properties will become available as needed, not prior.
|
|
struct User: Codable {
|
|
// MARK: - Properties
|
|
|
|
/// A server generated unique Id for the `User`.
|
|
var id: String
|
|
|
|
/// The `User` belongs to the server with this Id.
|
|
var serverId: String
|
|
|
|
/// A `User` or server administer given name
|
|
var name: String
|
|
|
|
/// If `true` the `User` must be authenticated before making requests on their behalf.
|
|
var hasPassword: Bool
|
|
|
|
/// If not `nil` a request can be made to retreive the profile image for the `User`.
|
|
var primaryImageTag: String?
|
|
}
|