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

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

NS_ASSUME_NONNULL_BEGIN

JDACLIENT_EXPORT @interface JDAEventAttribute : NSObject

@property (readonly, nonatomic) JDAEventAttributeName name;
@property (readonly, nonatomic) BOOL valueIsData;
@property (readonly, nonatomic, nullable) NSString* valueString;
@property (readonly, nonatomic, nullable) NSData* valueData;

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithName:(JDAEventAttributeName)name valueString:(NSString*)value NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithName:(JDAEventAttributeName)name valueData:(NSData*)value NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END
