1234567891011121314151617181920212223242526272829303132 |
- //
- // WorkNumberModel.m
- // smartRhino
- //
- // Created by tederen on 2019/11/22.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "WorkNumberModel.h"
- @implementation WorkNumberModel
- - (NSString *)allNumber {
- NSInteger number = self.FlowAuditUReadCount + self.FlowSendUReadCount + self.FlowCcUReadCount;
- if (number > 0) {
- return [NSString stringWithFormat:@"%zi",number];
- }
- return nil;
- }
- - (NSString *)allNotifacationNumber {
- NSInteger number = self.noticeCount + self.missiveCount;
- if (number > 0) {
- return [NSString stringWithFormat:@"%zi",number];
- }
- return nil;
- }
- @end
|