QuestionModel.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. //
  2. // QuestionModel.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2019/8/27.
  6. // Copyright © 2019 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class QuesTionItem,AnswerItem,ChapterSection;
  11. @interface QuestionModel : NSObject
  12. @end
  13. @interface QuesTionItem : NSObject
  14. /**
  15. * 问题id
  16. */
  17. @property (nonatomic) NSInteger questionID;
  18. /**
  19. * 问题序号
  20. */
  21. @property (nonatomic) NSInteger questionNumber;
  22. /**
  23. * 是否有图片0无1图片2视频
  24. */
  25. @property (nonatomic) NSInteger category;
  26. /**
  27. * 考题图片
  28. */
  29. @property (nonatomic, copy) NSString *picName;
  30. /**
  31. * 考题视频
  32. */
  33. @property (nonatomic, copy) NSString *VediaName;
  34. /**
  35. * 考题问题
  36. */
  37. @property (nonatomic, copy) NSString *question;
  38. /**
  39. * 考题类型1判断2单选3多选
  40. */
  41. @property (nonatomic) NSInteger type;
  42. /**
  43. * 考题答案数组
  44. */
  45. @property (nonatomic, strong) NSArray *Awasers;
  46. /**
  47. * 考题正确答案
  48. */
  49. @property (nonatomic, copy) NSString *RightAwaser;
  50. /**
  51. * 考题详解
  52. */
  53. @property (nonatomic, copy) NSString *Comments;
  54. /**
  55. * 难度系数
  56. */
  57. @property (nonatomic) NSInteger difficulty;
  58. /**
  59. * 答对答错或没做 0没做 1答对 2答错
  60. */
  61. @property (nonatomic) NSInteger isRight;
  62. /**
  63. * 用户选项
  64. */
  65. @property (nonatomic) NSString *userAnswer;
  66. /**
  67. * 是否收藏0收藏1否
  68. */
  69. @property (nonatomic) NSInteger is_favorite;
  70. /**
  71. * 章节
  72. */
  73. @property (nonatomic) NSInteger chapter;
  74. /**
  75. * 是否隐藏正确答案 no为展示 yes为隐藏
  76. */
  77. @property (nonatomic) BOOL HiddenRightAnswer;
  78. @property (nonatomic) NSInteger number;///<和选题页面之间的传值
  79. @property (nonatomic) BOOL isCurrent;///<是否为当前题
  80. @end
  81. @interface AnswerItem : NSObject
  82. ///0对1错2默认3多选题点后后变色 text的颜色
  83. @property (nonatomic) NSInteger type;// Cell的样式
  84. @property (nonatomic,copy) NSString *picname;
  85. @property (nonatomic,copy) NSString *text;
  86. @end
  87. @interface ChapterSection : NSObject
  88. @property (nonatomic,copy)NSString *chapterName;
  89. @property (nonatomic)NSInteger chapter;
  90. @property (nonatomic,strong)NSMutableArray *chapterCounts;
  91. @property (nonatomic) NSInteger count;
  92. @end
  93. NS_ASSUME_NONNULL_END