home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / Customer.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  809 b   |  38 lines

  1. /*
  2.         Copyright (c) 1996, NeXT Software, Inc.
  3.         All rights reserved.
  4.  
  5.         You may freely copy, distribute and reuse the code in this example.
  6.         NeXT disclaims any warranty of any kind, expressed or implied,
  7.         as to its fitness for any particular use.
  8. */
  9. #import <EOControl/EOControl.h>
  10.  
  11. @class Member;
  12. @class Unit;
  13.  
  14. @interface Customer : NSObject
  15. {
  16.     NSNumber *customerID;
  17.     NSString *firstName;
  18.     NSString *lastName;
  19.     NSArray *rentals;
  20. }
  21.  
  22. // Accessors
  23. - (NSArray *)fees;
  24. - (Member *)member;
  25. - (NSDecimalNumber *)costRestriction;
  26.  
  27. // Accessor with filtering and/or logic.
  28. - (NSArray *)allRentals;
  29. - (NSArray *)nonReturnedRentals;
  30. - (NSArray *)unpaidFees;
  31. - (BOOL)hasOverdueProducts;
  32. - (NSString *)fullName;
  33.  
  34. // Pure business logic code
  35. - (void)rentUnit:(Unit *)unit;
  36.  
  37. @end
  38.