//
//  AnalyticsEvent.swift
//  CasinoKit
//

import Foundation

public struct AnalyticsEvent: Codable, Equatable, Sendable {
    public let name: String
    public let timestamp: Date
    public let properties: [String: AnalyticsValue]

    public init(
        name: String,
        timestamp: Date = Date(),
        properties: [String: AnalyticsValue] = [:]
    ) {
        self.name = name
        self.timestamp = timestamp
        self.properties = properties
    }
}
