123456789101112131415161718192021222324252627 |
- //
- // NewTopicModel.m
- // smartRhino
- //
- // Created by niuzhen on 2019/12/16.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "NewTopicModel.h"
- @implementation NewTopicModel
- - (instancetype)initWithDict:(NSDictionary *)dict
- {
- if (self = [super init]) {
- self.imageUrl = ISEmpty([dict objectForKey:@"File"]) ? @"" : [dict objectForKey:@"File"];
- self.content = ISEmpty([dict objectForKey:@"Text"]) ? @"" : [dict objectForKey:@"Text"];
- self.title = ISEmpty([dict objectForKey:@"Title"]) ? @"" : [dict objectForKey:@"Title"];
- self.FileName = ISEmpty([dict objectForKey:@"FileName"]) ? @"" : [dict objectForKey:@"FileName"];
- self.ArticleImgUrl = ISEmpty([dict objectForKey:@"ArticleImgUrl"]) ? @"" : [dict objectForKey:@"ArticleImgUrl"];
- self.AuthorName = ISEmpty([dict objectForKey:@"Author"]) ? @"" : [dict objectForKey:@"Author"];
- self.FileId = [[dict objectForKey:@"Id"] integerValue];
- self.type = [[dict objectForKey:@"Type"] integerValue];
- }
- return self;
- }
- @end
|