






#import "UserPortalNodeCell.h"
#import "BoxOffRedoneInfo.h"
#import "Masonry.h"
#import "UIColor+CatColor.h"

@implementation UserPortalNodeCell

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

- (void)setModel:(BoxOffRedoneInfo *)model
{
    _model = model;
    _fontKitLabel.text = model.faxAllMetric;
    _fontKitLabel.font = [UIFont systemFontOfSize:model.capFunkKitMillibarsSongIntensity];
    _fontKitLabel.textColor = [UIColor sayRedPointRecoveredHindiDisorder:model.cacheTailVarianceJobArmPartner];
    self.backgroundColor = [[UIColor sayRedPointRecoveredHindiDisorder:model.eulerCorruptIndicatorBarAlpineTip] colorWithAlphaComponent:model.refreshedBackStrokedCountProjectsClick];
    self.layer.cornerRadius = 2;
}

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

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

@end
