






#import "PagerEmbeddingCell.h"
#import "SinDidSocketInfo.h"
#import "Masonry.h"
#import "UIColor+DryColor.h"

@implementation PagerEmbeddingCell

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

- (void)setModel:(SinDidSocketInfo *)model
{
    _model = model;
    _sigmoidLabel.text = model.looperBridge;
    _sigmoidLabel.font = [UIFont systemFontOfSize:model.cervicalDownhillCutToolDaughtersSex];
    _sigmoidLabel.textColor = [UIColor consumesDropMovieWasEuropeanHigher:model.barWatchPolarFisheyeNapUnder];
    self.backgroundColor = [[UIColor consumesDropMovieWasEuropeanHigher:model.introCalculateDoneStepperRetriedRelevance] colorWithAlphaComponent:model.channelBadStateParseAxialFlush];
    self.layer.cornerRadius = 2;
}

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

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

@end
