Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. - (BOOL)isNoActivePackInUse {
  2.  
  3. for (EEPayGPackDTO *pack in self.packs.packs) {
  4. if(pack.isActive || pack.isExhausted || pack.isPending || pack.isStacked || pack.isSelected || pack.isRenewing || pack.isRepurchase) {
  5. return NO;
  6. }
  7. }
  8.  
  9. return !self.isDataOnlyPlan
  10. && ((self.packs == nil || self.packs.packs == nil || self.packs.packs.count == 0)
  11. || (!self.packs.insufficientFundsForRenewal && !self.packs.isRenewableEarly && self.packs.packRenewalSuccess));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement