Files
plexswift/Sources/Plexswift/models/operations/Role.swift

51 lines
1.9 KiB
Swift

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct Role {
/// The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
public let filter: String
/// Unique identifier for the actor or role.
public let id: Int
/// The display tag for the actor (typically the actor's name).
public let tag: String
/// The role played by the actor in the media item.
public let role: String?
/// A unique key associated with the actor's tag, used for internal identification.
public let tagKey: String?
/// The URL of the thumbnail image for the actor.
public let thumb: String?
/// Creates an object with the specified parameters
///
/// - Parameter filter: The filter string used to query this actor. For example, it may indicate that this is an actor with a given key.
/// - Parameter id: Unique identifier for the actor or role.
/// - Parameter tag: The display tag for the actor (typically the actor's name).
/// - Parameter role: The role played by the actor in the media item.
/// - Parameter tagKey: A unique key associated with the actor's tag, used for internal identification.
/// - Parameter thumb: The URL of the thumbnail image for the actor.
///
public init(filter: String, id: Int, tag: String, role: String? = nil, tagKey: String? = nil, thumb: String? = nil) {
self.filter = filter
self.id = id
self.tag = tag
self.role = role
self.tagKey = tagKey
self.thumb = thumb
}
}}
extension Operations.Role: Codable {
enum CodingKeys: String, CodingKey {
case filter
case id
case tag
case role
case tagKey
case thumb
}
}