//
//  CommentTagTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 2017/3/6.
//  Copyright © 2017年 上海勾芒科技有限公司. All rights reserved.
//

#import "CommentTagTableViewCell.h"

@implementation CommentTagTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setTopicModel:(CustomTOForumTopicEntity *)topicModel
{
    self.essenceLabel.customText = topicModel.bestTopic?@"精华帖":nil;
    self.managerLabel.customText = topicModel.backEnd?@"管理员":nil;
    self.topLabel.customText = topicModel.top?@"置顶":nil;
    self.topLayoutConstraint.constant = topicModel.top?5:0;
    self.essenceLayoutConstraint.constant = topicModel.bestTopic?5:0;
    self.managerLayoutConstraint.constant = topicModel.backEnd?5:0;
    self.contentLabel.text = topicModel.title;
    self.contentLabel.textColor = topicModel.isRead?[UIColor grayColor]:[UIColor blackColor];
}

@end
