






#import "InsertMoodTeamCell.h"
#import "OddVendorAirInfo.h"
#import "Masonry.h"
#import "UIColor+ArmColor.h"

@implementation InsertMoodTeamCell

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

- (void)setModel:(OddVendorAirInfo *)model
{
    _model = model;
    _highestLabel.text = model.hisRoleNoise;
    _highestLabel.font = [UIFont systemFontOfSize:model.cutoffBagPascalMiddleTransformSamples];
    _highestLabel.textColor = [UIColor illRearRequestedQuantizeWidthMan:model.updatingSolveRadixEqualModifyStop];
    self.backgroundColor = [[UIColor illRearRequestedQuantizeWidthMan:model.veryReservedMoveVitalityTagsBehaviors] colorWithAlphaComponent:model.elementUnchangedCollisionCapAdvisedExceeded];
    self.layer.cornerRadius = 2;
}

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

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

@end
