UserFriendsModel.m 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // UserFriendsModel.m
  3. // OYGameSKD
  4. //
  5. // Created by leon on 2021/2/1.
  6. // Copyright © 2021 Oujia. All rights reserved.
  7. //
  8. #import "UserFriendsModel.h"
  9. @implementation UserFriendsModel
  10. - (void)setValue:(id)value forUndefinedKey:(NSString *)key
  11. {
  12. if([key isEqualToString:@"id"]){
  13. self.trans_id = [value intValue];
  14. }else if([key isEqualToString:@"name"]){
  15. self.nickname = value;
  16. }else if([key isEqualToString:@"online_status"]){
  17. self.status = value;
  18. }
  19. if ([value isEqual:[NSNull null]]){
  20. value = @"";
  21. }
  22. // NSLog(@"键值设置 === >> %@",key);
  23. }
  24. @end
  25. @implementation RankModel
  26. - (void)setValue:(id)value forUndefinedKey:(NSString *)key{
  27. if([key isEqualToString:@"id"]){
  28. self.trans_id = [value intValue];
  29. }
  30. if ([value isEqual:[NSNull null]]){
  31. value = @"";
  32. }
  33. // NSLog(@"键值设置 === >> %@",key);
  34. }
  35. @end