Skip to content

Commit 5fc5f1d

Browse files
author
Taylor Case
committed
Add files back without extended attributes.
1 parent 758528f commit 5fc5f1d

14 files changed

+1308
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
///
2+
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
3+
///
4+
/// Auto-generated by Stone, do not modify.
5+
///
6+
7+
#import <Foundation/Foundation.h>
8+
9+
#import "DBSerializableProtocol.h"
10+
11+
@class DBFILESAddTagArg;
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
15+
#pragma mark - API Object
16+
17+
///
18+
/// The `AddTagArg` struct.
19+
///
20+
/// This class implements the `DBSerializable` protocol (serialize and
21+
/// deserialize instance methods), which is required for all Obj-C SDK API route
22+
/// objects.
23+
///
24+
@interface DBFILESAddTagArg : NSObject <DBSerializable, NSCopying>
25+
26+
#pragma mark - Instance fields
27+
28+
/// Path to the item to be tagged.
29+
@property (nonatomic, readonly, copy) NSString *path;
30+
31+
/// The value of the tag to add.
32+
@property (nonatomic, readonly, copy) NSString *tagText;
33+
34+
#pragma mark - Constructors
35+
36+
///
37+
/// Full constructor for the struct (exposes all instance variables).
38+
///
39+
/// @param path Path to the item to be tagged.
40+
/// @param tagText The value of the tag to add.
41+
///
42+
/// @return An initialized instance.
43+
///
44+
- (instancetype)initWithPath:(NSString *)path tagText:(NSString *)tagText;
45+
46+
- (instancetype)init NS_UNAVAILABLE;
47+
48+
@end
49+
50+
#pragma mark - Serializer Object
51+
52+
///
53+
/// The serialization class for the `AddTagArg` struct.
54+
///
55+
@interface DBFILESAddTagArgSerializer : NSObject
56+
57+
///
58+
/// Serializes `DBFILESAddTagArg` instances.
59+
///
60+
/// @param instance An instance of the `DBFILESAddTagArg` API object.
61+
///
62+
/// @return A json-compatible dictionary representation of the
63+
/// `DBFILESAddTagArg` API object.
64+
///
65+
+ (nullable NSDictionary<NSString *, id> *)serialize:(DBFILESAddTagArg *)instance;
66+
67+
///
68+
/// Deserializes `DBFILESAddTagArg` instances.
69+
///
70+
/// @param dict A json-compatible dictionary representation of the
71+
/// `DBFILESAddTagArg` API object.
72+
///
73+
/// @return An instantiation of the `DBFILESAddTagArg` object.
74+
///
75+
+ (DBFILESAddTagArg *)deserialize:(NSDictionary<NSString *, id> *)dict;
76+
77+
@end
78+
79+
NS_ASSUME_NONNULL_END
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
///
2+
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
3+
///
4+
/// Auto-generated by Stone, do not modify.
5+
///
6+
7+
#import <Foundation/Foundation.h>
8+
9+
#import "DBSerializableProtocol.h"
10+
11+
@class DBFILESAddTagError;
12+
@class DBFILESLookupError;
13+
14+
NS_ASSUME_NONNULL_BEGIN
15+
16+
#pragma mark - API Object
17+
18+
///
19+
/// The `AddTagError` union.
20+
///
21+
/// This class implements the `DBSerializable` protocol (serialize and
22+
/// deserialize instance methods), which is required for all Obj-C SDK API route
23+
/// objects.
24+
///
25+
@interface DBFILESAddTagError : NSObject <DBSerializable, NSCopying>
26+
27+
#pragma mark - Instance fields
28+
29+
/// The `DBFILESAddTagErrorTag` enum type represents the possible tag states
30+
/// with which the `DBFILESAddTagError` union can exist.
31+
typedef NS_CLOSED_ENUM(NSInteger, DBFILESAddTagErrorTag){
32+
/// (no description).
33+
DBFILESAddTagErrorPath,
34+
35+
/// (no description).
36+
DBFILESAddTagErrorOther,
37+
38+
/// The item already has the maximum supported number of tags.
39+
DBFILESAddTagErrorTooManyTags,
40+
41+
};
42+
43+
/// Represents the union's current tag state.
44+
@property (nonatomic, readonly) DBFILESAddTagErrorTag tag;
45+
46+
/// (no description). @note Ensure the `isPath` method returns true before
47+
/// accessing, otherwise a runtime exception will be raised.
48+
@property (nonatomic, readonly) DBFILESLookupError *path;
49+
50+
#pragma mark - Constructors
51+
52+
///
53+
/// Initializes union class with tag state of "path".
54+
///
55+
/// @param path (no description).
56+
///
57+
/// @return An initialized instance.
58+
///
59+
- (instancetype)initWithPath:(DBFILESLookupError *)path;
60+
61+
///
62+
/// Initializes union class with tag state of "other".
63+
///
64+
/// @return An initialized instance.
65+
///
66+
- (instancetype)initWithOther;
67+
68+
///
69+
/// Initializes union class with tag state of "too_many_tags".
70+
///
71+
/// Description of the "too_many_tags" tag state: The item already has the
72+
/// maximum supported number of tags.
73+
///
74+
/// @return An initialized instance.
75+
///
76+
- (instancetype)initWithTooManyTags;
77+
78+
- (instancetype)init NS_UNAVAILABLE;
79+
80+
#pragma mark - Tag state methods
81+
82+
///
83+
/// Retrieves whether the union's current tag state has value "path".
84+
///
85+
/// @note Call this method and ensure it returns true before accessing the
86+
/// `path` property, otherwise a runtime exception will be thrown.
87+
///
88+
/// @return Whether the union's current tag state has value "path".
89+
///
90+
- (BOOL)isPath;
91+
92+
///
93+
/// Retrieves whether the union's current tag state has value "other".
94+
///
95+
/// @return Whether the union's current tag state has value "other".
96+
///
97+
- (BOOL)isOther;
98+
99+
///
100+
/// Retrieves whether the union's current tag state has value "too_many_tags".
101+
///
102+
/// @return Whether the union's current tag state has value "too_many_tags".
103+
///
104+
- (BOOL)isTooManyTags;
105+
106+
///
107+
/// Retrieves string value of union's current tag state.
108+
///
109+
/// @return A human-readable string representing the union's current tag state.
110+
///
111+
- (NSString *)tagName;
112+
113+
@end
114+
115+
#pragma mark - Serializer Object
116+
117+
///
118+
/// The serialization class for the `DBFILESAddTagError` union.
119+
///
120+
@interface DBFILESAddTagErrorSerializer : NSObject
121+
122+
///
123+
/// Serializes `DBFILESAddTagError` instances.
124+
///
125+
/// @param instance An instance of the `DBFILESAddTagError` API object.
126+
///
127+
/// @return A json-compatible dictionary representation of the
128+
/// `DBFILESAddTagError` API object.
129+
///
130+
+ (nullable NSDictionary<NSString *, id> *)serialize:(DBFILESAddTagError *)instance;
131+
132+
///
133+
/// Deserializes `DBFILESAddTagError` instances.
134+
///
135+
/// @param dict A json-compatible dictionary representation of the
136+
/// `DBFILESAddTagError` API object.
137+
///
138+
/// @return An instantiation of the `DBFILESAddTagError` object.
139+
///
140+
+ (DBFILESAddTagError *)deserialize:(NSDictionary<NSString *, id> *)dict;
141+
142+
@end
143+
144+
NS_ASSUME_NONNULL_END
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
///
2+
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
3+
///
4+
/// Auto-generated by Stone, do not modify.
5+
///
6+
7+
#import <Foundation/Foundation.h>
8+
9+
#import "DBSerializableProtocol.h"
10+
11+
@class DBFILESBaseTagError;
12+
@class DBFILESLookupError;
13+
14+
NS_ASSUME_NONNULL_BEGIN
15+
16+
#pragma mark - API Object
17+
18+
///
19+
/// The `BaseTagError` union.
20+
///
21+
/// This class implements the `DBSerializable` protocol (serialize and
22+
/// deserialize instance methods), which is required for all Obj-C SDK API route
23+
/// objects.
24+
///
25+
@interface DBFILESBaseTagError : NSObject <DBSerializable, NSCopying>
26+
27+
#pragma mark - Instance fields
28+
29+
/// The `DBFILESBaseTagErrorTag` enum type represents the possible tag states
30+
/// with which the `DBFILESBaseTagError` union can exist.
31+
typedef NS_CLOSED_ENUM(NSInteger, DBFILESBaseTagErrorTag){
32+
/// (no description).
33+
DBFILESBaseTagErrorPath,
34+
35+
/// (no description).
36+
DBFILESBaseTagErrorOther,
37+
38+
};
39+
40+
/// Represents the union's current tag state.
41+
@property (nonatomic, readonly) DBFILESBaseTagErrorTag tag;
42+
43+
/// (no description). @note Ensure the `isPath` method returns true before
44+
/// accessing, otherwise a runtime exception will be raised.
45+
@property (nonatomic, readonly) DBFILESLookupError *path;
46+
47+
#pragma mark - Constructors
48+
49+
///
50+
/// Initializes union class with tag state of "path".
51+
///
52+
/// @param path (no description).
53+
///
54+
/// @return An initialized instance.
55+
///
56+
- (instancetype)initWithPath:(DBFILESLookupError *)path;
57+
58+
///
59+
/// Initializes union class with tag state of "other".
60+
///
61+
/// @return An initialized instance.
62+
///
63+
- (instancetype)initWithOther;
64+
65+
- (instancetype)init NS_UNAVAILABLE;
66+
67+
#pragma mark - Tag state methods
68+
69+
///
70+
/// Retrieves whether the union's current tag state has value "path".
71+
///
72+
/// @note Call this method and ensure it returns true before accessing the
73+
/// `path` property, otherwise a runtime exception will be thrown.
74+
///
75+
/// @return Whether the union's current tag state has value "path".
76+
///
77+
- (BOOL)isPath;
78+
79+
///
80+
/// Retrieves whether the union's current tag state has value "other".
81+
///
82+
/// @return Whether the union's current tag state has value "other".
83+
///
84+
- (BOOL)isOther;
85+
86+
///
87+
/// Retrieves string value of union's current tag state.
88+
///
89+
/// @return A human-readable string representing the union's current tag state.
90+
///
91+
- (NSString *)tagName;
92+
93+
@end
94+
95+
#pragma mark - Serializer Object
96+
97+
///
98+
/// The serialization class for the `DBFILESBaseTagError` union.
99+
///
100+
@interface DBFILESBaseTagErrorSerializer : NSObject
101+
102+
///
103+
/// Serializes `DBFILESBaseTagError` instances.
104+
///
105+
/// @param instance An instance of the `DBFILESBaseTagError` API object.
106+
///
107+
/// @return A json-compatible dictionary representation of the
108+
/// `DBFILESBaseTagError` API object.
109+
///
110+
+ (nullable NSDictionary<NSString *, id> *)serialize:(DBFILESBaseTagError *)instance;
111+
112+
///
113+
/// Deserializes `DBFILESBaseTagError` instances.
114+
///
115+
/// @param dict A json-compatible dictionary representation of the
116+
/// `DBFILESBaseTagError` API object.
117+
///
118+
/// @return An instantiation of the `DBFILESBaseTagError` object.
119+
///
120+
+ (DBFILESBaseTagError *)deserialize:(NSDictionary<NSString *, id> *)dict;
121+
122+
@end
123+
124+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)