notification.dart 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. import 'package:fis_i18n/types.dart';
  2. /// 通知模块
  3. class NotificationModule extends ModuleBase {
  4. NotificationModule._({
  5. required this.consultationInvitation,
  6. required this.detail,
  7. required this.showAll,
  8. required this.expertName,
  9. required this.expertNameWithBrackets,
  10. required this.rejectReason,
  11. required this.applyHospital,
  12. required this.sysNotification,
  13. required this.consultationTime,
  14. required this.receiveConsultationApply,
  15. required this.receiveConsultationApply4Mobile,
  16. required this.someoneRejectYourConsultation,
  17. required this.someoneRejectYourInvitee,
  18. required this.someoneAcceptYourConsultation,
  19. required this.consultationWillStartIn,
  20. required this.consultationStarted,
  21. required this.receiveConsultationInvitation,
  22. required this.receiveConsultationInvitation4Mobile,
  23. required this.someoneRejectYourInvitation,
  24. required this.someoneAcceptYourInvitation,
  25. required this.inviteSomeoneToConsultation,
  26. required this.closeAll,
  27. required this.notification,
  28. required this.markAllAsRead,
  29. required this.readed,
  30. required this.unread,
  31. required this.consultationNotification,
  32. required this.unknownType,
  33. required this.messageReminder,
  34. required this.messageReminderFromFlyinsono,
  35. required this.consultationRequestForm,
  36. required this.noUnreadMessages,
  37. required this.allMarkedAsRead,
  38. });
  39. static const ModuleName = "notification";
  40. factory NotificationModule(Map<String, dynamic> map) {
  41. return NotificationModule._(
  42. consultationInvitation: map.pick("consultationInvitation"),
  43. detail: map.pick("detail"),
  44. showAll: map.pick("showAll"),
  45. expertName: map.pick("expertName"),
  46. expertNameWithBrackets: map.pick("expertNameWithBrackets"),
  47. rejectReason: map.pick("rejectReason"),
  48. applyHospital: map.pick("applyHospital"),
  49. sysNotification: map.pick("sysNotification"),
  50. consultationTime: map.pick("consultationTime"),
  51. receiveConsultationApply: map.pick("receiveConsultationApply"),
  52. receiveConsultationApply4Mobile:
  53. map.pick("receiveConsultationApply4Mobile"),
  54. someoneRejectYourConsultation: map.pick("someoneRejectYourConsultation"),
  55. someoneRejectYourInvitee: map.pick("someoneRejectYourInvitee"),
  56. someoneAcceptYourConsultation: map.pick("someoneAcceptYourConsultation"),
  57. consultationWillStartIn: map.pick("consultationWillStartIn"),
  58. consultationStarted: map.pick("consultationStarted"),
  59. receiveConsultationInvitation: map.pick("receiveConsultationInvitation"),
  60. receiveConsultationInvitation4Mobile:
  61. map.pick("receiveConsultationInvitation4Mobile"),
  62. someoneRejectYourInvitation: map.pick("someoneRejectYourInvitation"),
  63. someoneAcceptYourInvitation: map.pick("someoneAcceptYourInvitation"),
  64. inviteSomeoneToConsultation: map.pick("inviteSomeoneToConsultation"),
  65. closeAll: map.pick("closeAll"),
  66. notification: map.pick("notification"),
  67. markAllAsRead: map.pick("markAllAsRead"),
  68. readed: map.pick("readed"),
  69. unread: map.pick("unread"),
  70. consultationNotification: map.pick("consultationNotification"),
  71. unknownType: map.pick("unknownType"),
  72. messageReminder: map.pick("messageReminder"),
  73. messageReminderFromFlyinsono: map.pick("messageReminderFromFlyinsono"),
  74. consultationRequestForm: map.pick("consultationRequestForm"),
  75. noUnreadMessages: map.pick("noUnreadMessages"),
  76. allMarkedAsRead: map.pick("allMarkedAsRead"),
  77. );
  78. }
  79. /// {0}向您发来了会诊邀请
  80. final FTrStr consultationInvitation;
  81. /// 详情
  82. final FTrStr detail;
  83. /// 查看全部
  84. final FTrStr showAll;
  85. /// 会诊专家
  86. final FTrStr expertName;
  87. /// (会诊专家)
  88. final FTrStr expertNameWithBrackets;
  89. /// 拒绝原因
  90. final FTrStr rejectReason;
  91. /// 申请医院
  92. final FTrStr applyHospital;
  93. /// 系统通知
  94. final FTrStr sysNotification;
  95. /// 会诊时间
  96. final FTrStr consultationTime;
  97. /// {0}向您发来了会诊申请!
  98. final FTrStr receiveConsultationApply;
  99. /// {0}向您发来了会诊申请,请及时处理!
  100. final FTrStr receiveConsultationApply4Mobile;
  101. /// {0}拒绝了您的会诊申请!
  102. final FTrStr someoneRejectYourConsultation;
  103. /// {0}拒绝了您的会诊邀约!
  104. final FTrStr someoneRejectYourInvitee;
  105. /// {0}同意了您的会诊申请!
  106. final FTrStr someoneAcceptYourConsultation;
  107. /// 会诊将在{0}后开始,请及时参与!
  108. final FTrStr consultationWillStartIn;
  109. /// 会诊已经开始!
  110. final FTrStr consultationStarted;
  111. /// {0}向您发来了会诊邀约!
  112. final FTrStr receiveConsultationInvitation;
  113. /// {0}向您发来了会诊邀约,请及时处理!
  114. final FTrStr receiveConsultationInvitation4Mobile;
  115. /// {0}拒绝了您的会诊邀约!
  116. final FTrStr someoneRejectYourInvitation;
  117. /// {0}同意了您的会诊邀约!
  118. final FTrStr someoneAcceptYourInvitation;
  119. /// 邀请{0}人,{1}人接受
  120. final FTrStr inviteSomeoneToConsultation;
  121. /// 全部关闭({0})
  122. final FTrStr closeAll;
  123. /// 系统消息通知
  124. final FTrStr notification;
  125. /// 全部设为已读
  126. final FTrStr markAllAsRead;
  127. /// 已读
  128. final FTrStr readed;
  129. /// 未读
  130. final FTrStr unread;
  131. /// 会诊通知
  132. final FTrStr consultationNotification;
  133. /// 未知类型
  134. final FTrStr unknownType;
  135. /// 消息提醒
  136. final FTrStr messageReminder;
  137. /// 来自Flyinsono的消息提醒
  138. final FTrStr messageReminderFromFlyinsono;
  139. /// 会诊申请单
  140. final FTrStr consultationRequestForm;
  141. /// 暂无未读消息
  142. final FTrStr noUnreadMessages;
  143. /// 已全部标记为已读
  144. final FTrStr allMarkedAsRead;
  145. @override
  146. getProp(String propName) {
  147. // TODO: implement getProp
  148. throw UnimplementedError();
  149. }
  150. }