-
-
Save PaulTaykalo/1b3d9d7837dac390fa40 to your computer and use it in GitHub Desktop.
Person model example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface PersonModel : NSObject | |
// Current person | |
@property(nonatomic, readonly) Person *person; | |
// Creates model for working with specified person | |
- (id)initWithPerson:(Person *)person; | |
// Follows current person | |
// Calls specified block. | |
// Result block can be called more than once | |
- (void)follow:(void (^)(Person *person, NSError *error))resultBlock; | |
// Unnfollows current person | |
// Calls specified block. | |
// Result block can be called more than once | |
- (void)unfollow:(void (^)(Person *person, NSError *error))resultBlock; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment