/Mobile/iPhone/StoffiRemote/StoffiRemote/User.h

http://yet-another-music-application.googlecode.com/ · C Header · 30 lines · 15 code · 8 blank · 7 comment · 0 complexity · 904ec9dea6f06710bc9884a3a0563415 MD5 · raw file

  1. //
  2. // User.h
  3. // StoffiRemote
  4. //
  5. // Created by Fredrik Gadnell on 9/29/11.
  6. // Copyright 2011 __MyCompanyName__. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "GaddREST.h"
  10. #import "Configuration.h"
  11. #define kUserIDUnknown -1
  12. @interface User : NSObject<RestRequestDelegate> {
  13. int userID;
  14. Configuration *configuration;
  15. }
  16. @property (readonly) int userID;
  17. @property (retain) Configuration *configuration;
  18. + (User *)newUser;
  19. + (User *)currentUser;
  20. - (void)pullConfiguration;
  21. - (void)pushConfiguration;
  22. @end