RQTreeListModel.m 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // RQTreeListModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2021/10/25.
  6. // Copyright © 2021 JCZ. All rights reserved.
  7. //
  8. #import "RQTreeListModel.h"
  9. @implementation VideosItem
  10. + (NSDictionary *)modelCustomPropertyMapper {
  11. return @{
  12. @"video_url" : @"fileUrl",
  13. };
  14. }
  15. @end
  16. @implementation ChildrenItem
  17. // 返回容器类中的所需要存放的数据类型 (以 Class 或 Class Name 的形式)。
  18. + (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
  19. return @{
  20. @"children" : [ChildrenItem class],
  21. @"videos" : [VideosItem class],
  22. };
  23. }
  24. @end
  25. @implementation RQTreeListModel
  26. // 返回容器类中的所需要存放的数据类型 (以 Class 或 Class Name 的形式)。
  27. + (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
  28. return @{
  29. @"children" : [ChildrenItem class],
  30. @"videos" : [VideosItem class],
  31. };
  32. }
  33. @end