// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation

public struct FavoriteRequest: Codable, Equatable {
    public var entityId: String
    public var entityType: EntityType
    public var isFavorite: Bool

    public struct EntityType: RawRepresentable, Codable, Equatable {
        public let rawValue: String

        public init(rawValue: String) {
            self.rawValue = rawValue
        }

        public static let video = Self(rawValue: "video")
        public static let image = Self(rawValue: "image")
    }

    public init(entityId: String, entityType: EntityType, isFavorite: Bool) {
        self.entityId = entityId
        self.entityType = entityType
        self.isFavorite = isFavorite
    }
}
