Guest User

Untitled

a guest
Dec 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. protocol AppModel: AnyObject {
  2. func method1(completion: (Int) -> Void)
  3. func method2(completion: (Int) -> Void)
  4. func method3(completion: (Int) -> Void)
  5. // ...
  6. func methodN(completion: (Int) -> Void)
  7. }
  8.  
  9. class SpecificAppModel: AppModel {
  10. func method1(completion: (Int) -> Void) { /* ... */ }
  11. func method2(completion: (Int) -> Void) { /* ... */ }
  12. func method3(completion: (Int) -> Void) { /* ... */ }
  13. // ...
  14. func methodN(completion: (Int) -> Void) { /* ... */ }
  15. }
Add Comment
Please, Sign In to add comment