guardListModel.m 711 B

1234567891011121314151617181920212223242526
  1. //
  2. // guardListModel.m
  3. // yunbaolive
  4. //
  5. // Created by Boom on 2018/11/13.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import "guardListModel.h"
  9. @implementation guardListModel
  10. -(instancetype)initWithDic:(NSDictionary *)dic{
  11. self = [super init];
  12. if (self) {
  13. _sex = minstr([dic valueForKey:@"sex"]);
  14. _type = minstr([dic valueForKey:@"type"]);
  15. _contribute = minstr([dic valueForKey:@"contribute"]);
  16. _user_nickname = minstr([dic valueForKey:@"user_nickname"]);
  17. _avatar_thumb = minstr([dic valueForKey:@"avatar_thumb"]);
  18. _level = minstr([dic valueForKey:@"level"]);
  19. _uid = minstr([dic valueForKey:@"id"]);
  20. }
  21. return self;
  22. }
  23. @end