//
//  ResultModelCard.m
//  Verif-y
//
//  Created by MTN on 11/11/20.
//

#import "ResultModelCard.h"
#import "VFYDeviceTypes.h"

@implementation ResultModelCard

@synthesize extractedCardNumber, editedCardNumber, extractedDateOfExpire, editedDateOfExpire, extractedCardHolderName, editedCardHolderName, cvv;
@synthesize cardImage;
@synthesize cardNumberEditedFlag, dateOfExpireEditedFlag, cardHolderNameEditedFlag;
@synthesize isCard, isID, isSuccessful;
@synthesize cardNumberScore;
@synthesize deviceType, deviceModel, deviceOsVersion;

- (id)init {
    self = [super init];
    if (self) {
        /** initialization default value */
        cardNumberEditedFlag = false;
        dateOfExpireEditedFlag = false;
        cardHolderNameEditedFlag = false;
        isSuccessful = false;
        isID = false;
        isCard = true;
        

        extractedCardNumber = editedCardNumber = @"";
        extractedDateOfExpire = editedDateOfExpire = @"";
        extractedCardHolderName = editedCardHolderName = @"";
        cvv = @"";
        cardImage = nil;
        
        deviceType = @"ios";
        deviceModel = [VFYDeviceTypes deviceModelName];
        deviceOsVersion = [VFYDeviceTypes deviceModelOS];
    }
    return self;
}

- (void)dealloc {
  // Should never be called, but just here for clarity really.
}

@end
