// // 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