DBSHARINGGetSharedLinkFileError
Objective-C
@interface DBSHARINGGetSharedLinkFileError
: NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGGetSharedLinkFileError : NSObject, DBSerializable, NSCopying
The GetSharedLinkFileError
union.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGGetSharedLinkFileErrorTag tag;
Swift
var tag: DBSHARINGGetSharedLinkFileErrorTag { get }
-
Initializes union class with tag state of “shared_link_not_found”.
Description of the “shared_link_not_found” tag state: The shared link wasn’t found.
Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkNotFound;
Swift
init(sharedLinkNotFound: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “shared_link_access_denied”.
Description of the “shared_link_access_denied” tag state: The caller is not allowed to access this shared link.
Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkAccessDenied;
Swift
init(sharedLinkAccessDenied: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “unsupported_link_type”.
Description of the “unsupported_link_type” tag state: This type of link is not supported; use
files
instead.Declaration
Objective-C
- (nonnull instancetype)initWithUnsupportedLinkType;
Swift
init(unsupportedLinkType: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;
Swift
init(other: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “shared_link_is_directory”.
Description of the “shared_link_is_directory” tag state: Directories cannot be retrieved by this endpoint.
Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkIsDirectory;
Swift
init(sharedLinkIsDirectory: ())
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “shared_link_not_found”.
Declaration
Objective-C
- (BOOL)isSharedLinkNotFound;
Swift
func isSharedLinkNotFound() -> Bool
Return Value
Whether the union’s current tag state has value “shared_link_not_found”.
-
Retrieves whether the union’s current tag state has value “shared_link_access_denied”.
Declaration
Objective-C
- (BOOL)isSharedLinkAccessDenied;
Swift
func isSharedLinkAccessDenied() -> Bool
Return Value
Whether the union’s current tag state has value “shared_link_access_denied”.
-
Retrieves whether the union’s current tag state has value “unsupported_link_type”.
Declaration
Objective-C
- (BOOL)isUnsupportedLinkType;
Swift
func isUnsupportedLinkType() -> Bool
Return Value
Whether the union’s current tag state has value “unsupported_link_type”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;
Swift
func isOther() -> Bool
Return Value
Whether the union’s current tag state has value “other”.
-
Retrieves whether the union’s current tag state has value “shared_link_is_directory”.
Declaration
Objective-C
- (BOOL)isSharedLinkIsDirectory;
Swift
func isSharedLinkIsDirectory() -> Bool
Return Value
Whether the union’s current tag state has value “shared_link_is_directory”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;
Swift
func tagName() -> String
Return Value
A human-readable string representing the union’s current tag state.