






#import "ElementsYellowCell.h"
#import "EarAskTeluguInfo.h"
#import "Masonry.h"
#import "UIColor+NotColor.h"

@implementation ElementsYellowCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        self.clipsToBounds = YES;
        
        [self addSubview:self.encryptLabel];
        
        [self.encryptLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 4, 0, 0));
        }];
        
    }
    return self;
}

- (void)setModel:(EarAskTeluguInfo *)model
{
    _model = model;
    _encryptLabel.text = model.pinRealStand;
    _encryptLabel.font = [UIFont systemFontOfSize:model.kilobytesConvergedLinkReuseAnyHandling];
    _encryptLabel.textColor = [UIColor boyfriendMenJobPortraitSecureCommit:model.lighterHundredsHelpAllowableScriptInitially];
    self.backgroundColor = [[UIColor boyfriendMenJobPortraitSecureCommit:model.creatingBirthdayUptimeStylizeSinCenters] colorWithAlphaComponent:model.consumedFinalBiotinFiveConcludeHindi];
    self.layer.cornerRadius = 2;
}

- (void)discountsPlayableLocalizesAngleTatar:(void(^)(void))animations completion:(void(^)(BOOL))completion {
    EarAskTeluguInfo *info = (EarAskTeluguInfo *)_model;
    if ([info isKindOfClass:[EarAskTeluguInfo class]] && info.upperMilesSmoothAuditTelephoto > 0) {
        self.transform = CGAffineTransformMakeTranslation(-info.upperMilesSmoothAuditTelephoto, 0);
    }
    [super discountsPlayableLocalizesAngleTatar:animations completion:completion];
}

- (UILabel *)encryptLabel {
    if (!_encryptLabel) {
        _encryptLabel = [[UILabel alloc] init];
        _encryptLabel.backgroundColor = [UIColor clearColor];
        _encryptLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _encryptLabel;
}

@end
