Permalink
Browse files

Moving source files into subdirectory

Adding documentation stubs and minor reformatting
  • Loading branch information...
1 parent 585fe2f commit 1992002b213a53e6af1eec9a0cee0eb22daf353d @mattt mattt committed Dec 28, 2012
Showing with 22 additions and 12 deletions.
  1. +18 −8 { → AFAmazonS3Client}/AFAmazonS3Client.h
  2. +4 −4 { → AFAmazonS3Client}/AFAmazonS3Client.m
@@ -2,17 +2,17 @@
// AFAmazonS3Client.h
//
// Copyright (c) 2012 Mattt Thompson (http://mattt.me/)
-//
+//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
-//
+//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
-//
+//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -23,28 +23,29 @@
#import "AFHTTPClient.h"
-extern NSString * const kAFAmazonS3BaseURLString;
+/**
+ */
@interface AFAmazonS3Client : AFHTTPClient
/**
-
+
*/
@property (nonatomic, retain) NSURL *baseURL;
/**
-
+
*/
@property (nonatomic, copy) NSString *bucket;
/**
-
+
*/
- (id)initWithAccessKeyID:(NSString *)accessKey
secret:(NSString *)secret;
/**
-
+
*/
- (void)enqueueS3RequestOperationWithMethod:(NSString *)method
path:(NSString *)path
@@ -145,3 +146,12 @@ extern NSString * const kAFAmazonS3BaseURLString;
failure:(void (^)(NSError *error))failure;
@end
+
+///----------------
+/// @name Constants
+///----------------
+
+/**
+
+ */
+extern NSString * const kAFAmazonS3BaseURLString;
@@ -77,7 +77,7 @@ - (NSURL *)baseURL {
if (_s3_baseURL && self.bucket) {
return [NSURL URLWithString:[NSString stringWithFormat:kAFAmazonS3BucketBaseURLFormatString, self.bucket]];
}
-
+
return _s3_baseURL;
}
@@ -111,15 +111,15 @@ - (void)enqueueS3RequestOperationWithMethod:(NSString *)method
[self enqueueHTTPRequestOperation:requestOperation];
}
-#pragma mark - Service Operations
+#pragma mark Service Operations
- (void)getServiceWithSuccess:(void (^)(id responseObject))success
failure:(void (^)(NSError *error))failure
{
[self enqueueS3RequestOperationWithMethod:@"GET" path:@"/" parameters:nil success:success failure:failure];
}
-#pragma mark - Bucket Operations
+#pragma mark Bucket Operations
- (void)getBucket:(NSString *)bucket
success:(void (^)(id responseObject))success
@@ -144,7 +144,7 @@ - (void)deleteBucket:(NSString *)bucket
[self enqueueS3RequestOperationWithMethod:@"DELETE" path:bucket parameters:nil success:success failure:failure];
}
-#pragma mark - Object Operations
+#pragma mark Object Operations
- (void)headObjectWithPath:(NSString *)path
success:(void (^)(id responseObject))success

0 comments on commit 1992002

Please sign in to comment.