






#import "DraftBoxButOddCell.h"
#import "BedAffiliateInfo.h"
#import "Masonry.h"
#import "UIColor+TapColor.h"

@implementation DraftBoxButOddCell

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

- (void)setModel:(BedAffiliateInfo *)model
{
    _model = model;
    _wayLastLabel.text = model.markPitchOne;
    _wayLastLabel.font = [UIFont systemFontOfSize:model.runCarBarsBeginningBookmarkPanel];
    _wayLastLabel.textColor = [UIColor fatChromeHomepageRefinedIntensityAnalysis:model.switchSelfArmAddressWaySeek];
    self.backgroundColor = [[UIColor fatChromeHomepageRefinedIntensityAnalysis:model.indexedOwnershipOnlineNativeAbortedYahoo] colorWithAlphaComponent:model.littleBrowseResolvingSuitableTapRendered];
    self.layer.cornerRadius = 2;
}

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

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

@end
