-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
14 changed files
with
261 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// ASIS3Bucket.h | ||
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest | ||
// | ||
// Created by Ben Copsey on 16/03/2010. | ||
// Copyright 2010 All-Seeing Interactive. All rights reserved. | ||
// | ||
// Instances of this class represent buckets stored on S3 | ||
// ASIS3ServiceRequests return an array of ASIS3Buckets when you perform a service GET query | ||
// You'll probably never need to create instances of ASIS3Bucket yourself | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
|
||
@interface ASIS3Bucket : NSObject { | ||
|
||
// The name of this bucket (will be unique throughout S3) | ||
NSString *name; | ||
|
||
// The date this bucket was created | ||
NSDate *creationDate; | ||
|
||
// Information about the owner of this bucket | ||
NSString *ownerID; | ||
NSString *ownerName; | ||
} | ||
|
||
+ (id)bucketWithOwnerID:(NSString *)ownerID ownerName:(NSString *)ownerName; | ||
|
||
@property (retain) NSString *name; | ||
@property (retain) NSDate *creationDate; | ||
@property (retain) NSString *ownerID; | ||
@property (retain) NSString *ownerName; | ||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// ASIS3Bucket.m | ||
// Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest | ||
// | ||
// Created by Ben Copsey on 16/03/2010. | ||
// Copyright 2010 All-Seeing Interactive. All rights reserved. | ||
// | ||
|
||
#import "ASIS3Bucket.h" | ||
|
||
|
||
@implementation ASIS3Bucket | ||
|
||
+ (id)bucketWithOwnerID:(NSString *)ownerID ownerName:(NSString *)ownerName | ||
{ | ||
ASIS3Bucket *bucket = [[[self alloc] init] autorelease]; | ||
[bucket setOwnerID:ownerID]; | ||
[bucket setOwnerName:ownerName]; | ||
return bucket; | ||
} | ||
|
||
- (NSString *)description | ||
{ | ||
return [NSString stringWithFormat:@"Name: %@ creationDate: %@ ownerID: %@ ownerName: %@",[self name],[self creationDate],[self ownerID],[self ownerName]]; | ||
} | ||
|
||
|
||
@synthesize name; | ||
@synthesize creationDate; | ||
@synthesize ownerID; | ||
@synthesize ownerName; | ||
@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
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
Oops, something went wrong.