ParseInstallReceiptList.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // ParseInstallReceiptListModel.m
  3. // IBOSS
  4. //
  5. // Created by apple on 16/1/8.
  6. // Copyright © 2017年 沈阳东科云信软件有限公司. All rights reserved.
  7. // 功能描述:解析安装已回执类
  8. #import "ParseInstallReceiptList.h"
  9. #import "InstallReceiptListModel.h"
  10. #import "InstallReceiptedListFrame.h"
  11. @implementation ParseInstallReceiptList
  12. #pragma mark - 公共函数
  13. /**
  14. 初始化对象
  15. @return <#return value description#>
  16. */
  17. - (id)init
  18. {
  19. self = [super init];
  20. if(self){
  21. self.infoArr = [[NSMutableArray alloc]init];
  22. }
  23. return self;
  24. }
  25. #pragma mark - 私有函数
  26. /**
  27. 解析安装回执数组
  28. @param arr <#arr description#>
  29. */
  30. - (void)parseInstallReceiptInfoArr:(NSMutableArray *)arr
  31. {
  32. if(arr != nil)
  33. {
  34. [self.infoArr removeAllObjects];
  35. for(int i = 0;i < arr.count;i++)
  36. {
  37. InstallReceiptListModel *model = [InstallReceiptListModel dk_modelWithDictionary:arr[i]];
  38. InstallReceiptedListFrame *frame = [InstallReceiptedListFrame new];
  39. [frame setInstallationListFrame:model];
  40. [self.infoArr addObject:frame];
  41. }
  42. }
  43. }
  44. @end