






#import "EarMaxJouleUnloadVisitorCell.h"
#import "PinMovement.h"
#import "Masonry.h"

@implementation EarMaxJouleUnloadVisitorCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        self.backgroundColor = UIColor.whiteColor;
        self.contentView.backgroundColor = UIColor.whiteColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        
        self.bigMaxSockView = [UIImageView new];
        self.bigMaxSockView.tintColor = [PinMovement unorderedColor];
        self.bigMaxSockView.layer.cornerRadius = 15;
        [self.contentView addSubview:self.bigMaxSockView];
        [self.bigMaxSockView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(PinMovement.cupFormatSun.leaseZoneOld);
            make.centerY.mas_equalTo(self);
            make.width.height.mas_equalTo(PinMovement.cupFormatSun.squashCanIts);
        }];
        
        
        self.provinceName = [UILabel new];
        self.provinceName.font = [UIFont boldSystemFontOfSize:16];
        self.provinceName.textColor = UIColor.darkGrayColor;
        [self.contentView addSubview:self.provinceName];
        [self.provinceName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.bigMaxSockView.mas_right).offset(PinMovement.cupFormatSun.leaseZoneOld);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.duplexClampTime = [UILabel new];
        self.duplexClampTime.font =  [UIFont systemFontOfSize:11];
        self.duplexClampTime.textColor = UIColor.grayColor;
        [self.contentView addSubview:self.duplexClampTime];
        [self.duplexClampTime mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_centerY).offset(PinMovement.cupFormatSun.burstDetail);
            make.left.equalTo(self.provinceName);
        }];
    }
    return self;
}

@end
