//
//  ForumTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 2016/11/25.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "ForumTableViewCell.h"

@implementation ForumTableViewCell

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

- (void)setCategoryEntity:(TOForumCategoryEntity *)categoryEntity
{
    _categoryEntity = categoryEntity;
    if (_categoryEntity) {
        [self.forumImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachmentBg.fileUrl] placeholderImage:nil];
        [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachment.fileUrl] placeholderImage:nil];
        self.forumTitleLabel.text = _categoryEntity.name;
        self.forumDetailTitleLabel.text = _categoryEntity.fdescription;
        //判断是否显示未读提醒
        self.remindBgView.hidden = !categoryEntity.hasNew;
    }
}

@end
