//
//  DAEvent.h
//
//  Copyright © 2024 Jumio Corporation. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Common.h"

@class JDAEventAttribute;

NS_ASSUME_NONNULL_BEGIN

JDACLIENT_EXPORT @interface JDAEvent : NSObject

@property (readonly, nonatomic) JDAEventName name;
@property (readonly, nonatomic) NSArray<JDAEventAttribute*>* attributes;
@property (readonly, nonatomic) int64_t timestamp;

- (instancetype)init NS_UNAVAILABLE;

- (instancetype)initWithName:(JDAEventName)name timestamp:(int64_t)timestamp;
- (instancetype)initWithName:(JDAEventName)name attribute:(JDAEventAttribute*)attribute timestamp:(int64_t)timestamp;
- (instancetype)initWithName:(JDAEventName)name attributes:(NSArray<JDAEventAttribute*>*)attributes timestamp:(int64_t)timestamp NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END
