GradeModel.m 863 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // IntermediateCustomerModel.m
  3. // IBOSSmini
  4. //
  5. // Created by guan hong hou on 2018/2/1.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. #import "GradeModel.h"
  9. @implementation GradeModel
  10. -(void)parseDic:(NSDictionary *)dic{
  11. _gradeId= [[dic objectForKey:@"GradeID"]integerValue];
  12. _gradeName=[dic objectForKey:@"GradeName"];
  13. _isCheckedStatus=YES;
  14. }
  15. - (id)copyWithZone:(nullable NSZone *)zone{
  16. GradeModel *gModel = [[self class] allocWithZone:zone];
  17. gModel.gradeId=_gradeId;
  18. gModel.gradeName=_gradeName;
  19. gModel.isCheckedStatus=_isCheckedStatus;
  20. return gModel;
  21. }
  22. - (id)mutableCopyWithZone:(nullable NSZone *)zone{
  23. GradeModel *gModel = [[self class] allocWithZone:zone];
  24. gModel.gradeId=_gradeId;
  25. gModel.gradeName=_gradeName;
  26. gModel.isCheckedStatus=_isCheckedStatus;
  27. return gModel;
  28. }
  29. @end