-
Notifications
You must be signed in to change notification settings - Fork 2
/
StackOverflowManagerDelegate.h
51 lines (41 loc) · 1.2 KB
/
StackOverflowManagerDelegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// StackOverflowManagerDelegate.h
// BrowseOverflow
//
// Created by Graham J Lee on 14/03/2011.
// Copyright 2011 Fuzzy Aliens Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@class Topic;
@class Question;
/**
* The delegate protocol for the StackOverflowManager class.
*
* StackOverflowManager uses this delegate protocol to indicate when information becomes available, and to ask about doing further processing.
*/
@protocol StackOverflowManagerDelegate <NSObject>
/**
* The manager was unable to retrieve questions from Stack Overflow.
*/
- (void)fetchingQuestionsFailedWithError: (NSError *)error;
/**
* The manager retrieved a list of questions from Stack Overflow.
*/
- (void)didReceiveQuestions: (NSArray *)questions;
/**
* The manager couldn't fetch a question body.
*/
- (void)fetchingQuestionBodyFailedWithError: (NSError *)error;
/**
* The manager couldn't get answers to a question.
*/
- (void)retrievingAnswersFailedWithError: (NSError *)error;
/**
* The manager got a list of answers to a question.
*/
- (void)answersReceivedForQuestion: (Question *)question;
/**
* The manager got the body of a question.
*/
- (void)bodyReceivedForQuestion: (Question *)question;
@end