






#import "ReadoutClickedCell.h"
#import "OurCommitGetInfo.h"
#import "Masonry.h"
#import "UIColor+OneColor.h"

@implementation ReadoutClickedCell

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

- (void)setModel:(OurCommitGetInfo *)model
{
    _model = model;
    _snapRawLabel.text = model.factSayLiter;
    _snapRawLabel.font = [UIFont systemFontOfSize:model.slantMissingGoalSexArcadeUploaded];
    _snapRawLabel.textColor = [UIColor publisherWidgetTranslateBaseballEntitiesSudden:model.bendRelationsMillDistanceTrustBlob];
    self.backgroundColor = [[UIColor publisherWidgetTranslateBaseballEntitiesSudden:model.polarParserFlightLibrariesReportingMen] colorWithAlphaComponent:model.consumesCostRecoveryShowYetLog];
    self.layer.cornerRadius = 2;
}

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

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

@end
