DBTEAMAddSecondaryEmailsError
Objective-C
@interface DBTEAMAddSecondaryEmailsError : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMAddSecondaryEmailsError : NSObject, DBSerializable, NSCopying
The AddSecondaryEmailsError
union.
Error returned when adding secondary emails fails.
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) DBTEAMAddSecondaryEmailsErrorTag tag;
Swift
var tag: DBTEAMAddSecondaryEmailsErrorTag { get }
-
Initializes union class with tag state of “secondary_emails_disabled”.
Description of the “secondary_emails_disabled” tag state: Secondary emails are disabled for the team.
Declaration
Objective-C
- (nonnull instancetype)initWithSecondaryEmailsDisabled;
Swift
init(secondaryEmailsDisabled: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “too_many_emails”.
Description of the “too_many_emails” tag state: A maximum of 20 secondary emails can be added in a single call.
Declaration
Objective-C
- (nonnull instancetype)initWithTooManyEmails;
Swift
init(tooManyEmails: ())
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.
-
Retrieves whether the union’s current tag state has value “secondary_emails_disabled”.
Declaration
Objective-C
- (BOOL)isSecondaryEmailsDisabled;
Swift
func isSecondaryEmailsDisabled() -> Bool
Return Value
Whether the union’s current tag state has value “secondary_emails_disabled”.
-
Retrieves whether the union’s current tag state has value “too_many_emails”.
Declaration
Objective-C
- (BOOL)isTooManyEmails;
Swift
func isTooManyEmails() -> Bool
Return Value
Whether the union’s current tag state has value “too_many_emails”.
-
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 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.