Skip to content

Commit 58fa536

Browse files
author
Joey Lorich
committed
Add appledoc, fix some documentation
1 parent 73c55db commit 58fa536

7 files changed

Lines changed: 112 additions & 33 deletions

File tree

EasyReader.xcodeproj/project.pbxproj

Lines changed: 72 additions & 20 deletions
Large diffs are not rendered by default.

EasyReader/Application/AppDelegates/CSFeedUpdateService.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
//
88

99
#import "CSFeedUpdateService.h"
10-
#import "CSFeedItemUpdater.h"
10+
#import "EZRFeedItemUpdateService.h"
1111

1212
@implementation CSFeedUpdateService
1313

1414
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
1515
{
16-
CSFeedItemUpdater *updater = [[CSFeedItemUpdater alloc] init];
16+
EZRFeedItemUpdateService *updater = [[EZRFeedItemUpdateService alloc] init];
1717
[updater start];
1818

1919
return YES;

EasyReader/Application/Controllers/Home/CSHomeViewController.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,19 @@ -(NSUInteger)supportedInterfaceOrientations {
6262
-(BOOL)shouldAutorotate {
6363
return NO;
6464
}
65-
65+
//
66+
//typedef returnType (^void)(parameterTypes);
67+
//
68+
//- (configureFeedItemCell)configureFeedItem
69+
//- (void) blockForSelector
70+
//{
71+
// }
6672
/**
6773
* Assigns observers for feeds and feed items, puts page controller at start
6874
*/
6975
- (void) setupFeedItemObserver
7076
{
77+
7178
[self observeRelationship:@keypath(self.currentUser.feeds)
7279
changeBlock:^(__weak CSHomeViewController *self, NSSet *old, NSSet *new) {
7380
NSMutableArray *addedFeeds = [[new allObjects] mutableCopy];

EasyReader/Application/Api/CSFeedItemUpdater.h renamed to EasyReader/Application/Services/EZRFeedItemUpdateService.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
#import <Foundation/Foundation.h>
1010

11-
@interface CSFeedItemUpdater : NSObject
11+
/**
12+
* A service that polls for feed item update every few minutes
13+
*/
14+
@interface EZRFeedItemUpdateService : NSObject
15+
16+
/**
17+
* Starts the feed update service
18+
*/
1219
- (void) start;
20+
1321
@end

EasyReader/Application/Api/CSFeedItemUpdater.m renamed to EasyReader/Application/Services/EZRFeedItemUpdateService.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
// Copyright (c) 2014 Cloudspace. All rights reserved.
77
//
88

9-
#import "CSFeedItemUpdater.h"
9+
#import "EZRFeedItemUpdateService.h"
1010
#import "FeedItem.h"
1111
#import "Feed.h"
1212
#import "User.h"
1313

14-
@implementation CSFeedItemUpdater
14+
@implementation EZRFeedItemUpdateService
1515

1616
- (void) start
1717
{
18-
1918
if (![self hasSetDefaultFeeds])
2019
{
2120
[self loadDefaultFeeds];
@@ -25,7 +24,7 @@ - (void) start
2524
[self requestOneWeekOfFeedItems];
2625
}
2726

28-
NSMethodSignature *mySignature = [CSFeedItemUpdater
27+
NSMethodSignature *mySignature = [EZRFeedItemUpdateService
2928
instanceMethodSignatureForSelector:@selector(requestFiveMinutesOfFeedItems:)];
3029

3130
NSInvocation *myInvocation = [NSInvocation

EasyReader/Library/apikit/APIRoute.h

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,27 @@
2525

2626
#import <Foundation/Foundation.h>
2727

28-
typedef enum {
28+
/// Signifies http request method types
29+
typedef NS_ENUM(NSInteger, APIRequestMethod) {
30+
31+
/// Signifies an http GET API request
2932
kAPIRequestMethodGET,
33+
34+
/// Signifies an http POST request
3035
kAPIRequestMethodPOST,
36+
37+
/// Signifies an http PUT request
3138
kAPIRequestMethodPUT,
39+
40+
/// Signifies an http PATCH request
3241
kAPIRequestMethodPATCH,
42+
43+
/// Signifies an http DELETE request
3344
kAPIRequestMethodDELETE,
45+
46+
/// Signifies an http HEAD request
3447
kAPIRequestMethodHEAD
35-
} APIRequestMethod;
48+
};
3649

3750

3851
/**
@@ -67,7 +80,7 @@ typedef enum {
6780
/**
6881
* Builds a URL String for a given set of parameters
6982
*
70-
* @param params The URL Parameters
83+
* @param parameters The URL Parameters
7184
*/
7285
- (NSString *)pathStringForParameters:(NSDictionary *)parameters;
7386

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
iOS-EasyReader
2-
==============
2+
===
33

44
Project Setup Instructions
5-
--------------------------
5+
---
66

77
1. Install xcode
88
2. Get the repo

0 commit comments

Comments
 (0)