WorkNumberModel.m 654 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // WorkNumberModel.m
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/11/22.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "WorkNumberModel.h"
  9. @implementation WorkNumberModel
  10. - (NSString *)allNumber {
  11. NSInteger number = self.FlowAuditUReadCount + self.FlowSendUReadCount + self.FlowCcUReadCount;
  12. if (number > 0) {
  13. return [NSString stringWithFormat:@"%zi",number];
  14. }
  15. return nil;
  16. }
  17. - (NSString *)allNotifacationNumber {
  18. NSInteger number = self.noticeCount + self.missiveCount;
  19. if (number > 0) {
  20. return [NSString stringWithFormat:@"%zi",number];
  21. }
  22. return nil;
  23. }
  24. @end