//
//  HanselUserRn.m
//  AwesomeProject
//
//  Created by Rajeev Rajeshuni on 22/10/19.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import "HanselUserRn.h"

@implementation HanselUserRn

- (void)putStringAttribute:(NSString*)key value:(NSString*)value {
    @try {
        [[Hansel getUser] putStringAttribute:value forKey:key];
    } @catch (NSException *exception) {
        NSLog(@"Hansel error: Exception caught in putStringAttributeForKey method in HanselUserRn Bridge.");
    }
}

- (void)putDoubleAttribute:(NSString*)key value:(double)value {
    @try {
        [[Hansel getUser] putDoubleAttribute:value forKey:key];
    } @catch (NSException *exception) {
        NSLog(@"Hansel error: Exception caught in putDoubleAttributeForKey method in HanselUserRn Bridge.");
    }
}

- (void)putBooleanAttribute:(NSString*)key value:(BOOL)value {
    @try {
        [[Hansel getUser] putBoolAttribute:value forKey:key];
    } @catch (NSException *exception) {
        NSLog(@"Hansel error: Exception caught in putBoolAttributeForKey method in HanselUserRn Bridge.");
    }
}

- (void)setUserId:(NSString*)userId {
    @try {
        [[Hansel getUser] setUserId:userId];
    } @catch (NSException *exception) {
        NSLog(@"Hansel error: Exception caught in setUserId method in HanselUserRn Bridge.");
    }
}

- (void)clear {
    @try {
        [[Hansel getUser] clear];
    } @catch (NSException *exception) {
        NSLog(@"Hansel error: Exception caught in clear method in HanselUserRn Bridge.");
    }
}

- (void)putPrivateStringAttribute:(NSString*)key value:(NSString*)value {
}

- (void)putPrivateDoubleAttribute:(NSString*)key value:(double)value {
}

- (void)putPrivateBooleanAttribute:(NSString*)key value:(BOOL)value {
}

- (void)clearAttribute:(NSString*)key {
}

@end


