//
//  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:CoustomerReplaceImage];
        [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachment.fileUrl] placeholderImage:CoustomerReplaceImage];
        self.forumTitleLabel.text = _categoryEntity.name;
        self.forumDetailTitleLabel.text = _categoryEntity.fdescription;
    }
}

@end
