root / asi-http-request-with-pithos / Classes / Pithos / ASIPithosObject.h @ be116d22
History | View | Annotate | Download (2.8 kB)
1 |
// ASIPithosObject.h
|
---|---|
2 |
// Based on ASICloudFilesObject.h
|
3 |
//
|
4 |
// Copyright 2011 GRNET S.A. All rights reserved.
|
5 |
//
|
6 |
// Redistribution and use in source and binary forms, with or
|
7 |
// without modification, are permitted provided that the following
|
8 |
// conditions are met:
|
9 |
//
|
10 |
// 1. Redistributions of source code must retain the above
|
11 |
// copyright notice, this list of conditions and the following
|
12 |
// disclaimer.
|
13 |
//
|
14 |
// 2. Redistributions in binary form must reproduce the above
|
15 |
// copyright notice, this list of conditions and the following
|
16 |
// disclaimer in the documentation and/or other materials
|
17 |
// provided with the distribution.
|
18 |
//
|
19 |
// THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
20 |
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21 |
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
22 |
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
23 |
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
24 |
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
25 |
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
26 |
// USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
27 |
// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
28 |
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
29 |
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
30 |
// POSSIBILITY OF SUCH DAMAGE.
|
31 |
//
|
32 |
// The views and conclusions contained in the software and
|
33 |
// documentation are those of the authors and should not be
|
34 |
// interpreted as representing official policies, either expressed
|
35 |
// or implied, of GRNET S.A.
|
36 |
|
37 |
#import <Foundation/Foundation.h>
|
38 |
|
39 |
@interface ASIPithosObject : NSObject {
|
40 |
BOOL subdir; |
41 |
|
42 |
NSString *name; |
43 |
NSString *hash; |
44 |
NSUInteger bytes; |
45 |
NSString *contentType; |
46 |
NSString *contentEncoding; |
47 |
NSString *contentDisposition; |
48 |
NSDate *lastModified; |
49 |
NSString *version; |
50 |
NSDate *versionTimestamp; |
51 |
NSString *modifiedBy; |
52 |
NSString *manifest; |
53 |
NSString *sharing; |
54 |
NSString *sharedBy; |
55 |
NSString *publicURI; |
56 |
NSMutableDictionary *metadata; |
57 |
|
58 |
NSData *data; |
59 |
} |
60 |
|
61 |
@property (assign) BOOL subdir;
|
62 |
|
63 |
@property (retain) NSString *name;
|
64 |
@property (retain) NSString *hash;
|
65 |
@property (assign) NSUInteger bytes;
|
66 |
@property (retain) NSString *contentType;
|
67 |
@property (retain) NSString *contentEncoding;
|
68 |
@property (retain) NSString *contentDisposition;
|
69 |
@property (retain) NSDate *lastModified;
|
70 |
@property (retain) NSString *version;
|
71 |
@property (retain) NSDate *versionTimestamp;
|
72 |
@property (retain) NSString *modifiedBy;
|
73 |
@property (retain) NSString *manifest;
|
74 |
@property (retain) NSString *sharing;
|
75 |
@property (retain) NSString *sharedBy;
|
76 |
@property (retain) NSString *publicURI;
|
77 |
@property (retain) NSMutableDictionary *metadata;
|
78 |
@property (retain) NSData *data;
|
79 |
|
80 |
+ (id)object; |
81 |
+ (id)subdirWithName:(NSString *)name; |
82 |
|
83 |
@end
|