-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
571 additions
and
132 deletions.
There are no files selected for viewing
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
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
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
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
15 changes: 15 additions & 0 deletions
15
DeepBreathing/Tools/NetworkingManager/NetworkingManager+Knowledge.h
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// NetworkingManager+Knowledge.h | ||
// DeepBreathing | ||
// | ||
// Created by DreamHack on 15-7-23. | ||
// Copyright (c) 2015年 DreamHack. All rights reserved. | ||
// | ||
|
||
#import "NetworkingManager.h" | ||
|
||
@interface NetworkingManager (Knowledge) | ||
|
||
+ (AFHTTPRequestOperation *)getKnowledgeWithParams:(NSDictionary *)params success:(SuccessBlock)success failure:(FailureBlock)failure; | ||
|
||
@end |
28 changes: 28 additions & 0 deletions
28
DeepBreathing/Tools/NetworkingManager/NetworkingManager+Knowledge.m
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// NetworkingManager+Knowledge.m | ||
// DeepBreathing | ||
// | ||
// Created by DreamHack on 15-7-23. | ||
// Copyright (c) 2015年 DreamHack. All rights reserved. | ||
// | ||
|
||
#import "NetworkingManager+Knowledge.h" | ||
|
||
@implementation NetworkingManager (Knowledge) | ||
|
||
+ (AFHTTPRequestOperation *)getKnowledgeWithParams:(NSDictionary *)params success:(SuccessBlock)success failure:(FailureBlock)failure | ||
{ | ||
AFHTTPRequestOperation * operation = [NetworkingManager postWithUrl:@"app/knowledge/getKnowList.html" requestParams:params successHandler:^(id responseObj) { | ||
if (success) { | ||
success(responseObj); | ||
} | ||
} failureHandler:^(NSError *error) { | ||
if (failure) { | ||
failure(error); | ||
} | ||
}]; | ||
|
||
return operation; | ||
} | ||
|
||
@end |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// KnowledgeCell.h | ||
// DeepBreathing | ||
// | ||
// Created by DreamHack on 15-7-23. | ||
// Copyright (c) 2015年 DreamHack. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface KnowledgeCell : UITableViewCell | ||
|
||
@property (nonatomic, strong) NSDictionary * cellInfo; | ||
|
||
@end | ||
|
||
extern NSString * const kKnowledgeCellInfoImageKey; | ||
|
||
extern NSString * const kKnowledgeCellInfoTitleKey; | ||
|
||
extern NSString * const kKnowledgeCellInfoDateKey; | ||
|
||
|
||
|
Oops, something went wrong.