DBTEAMLOGTeamMergeRequestAcceptedExtraDetails
Objective-C
@interface DBTEAMLOGTeamMergeRequestAcceptedExtraDetails
: NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGTeamMergeRequestAcceptedExtraDetails : NSObject, DBSerializable, NSCopying
The TeamMergeRequestAcceptedExtraDetails union.
Team merge request acceptance details
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) DBTEAMLOGTeamMergeRequestAcceptedExtraDetailsTag tag;Swift
var tag: DBTEAMLOGTeamMergeRequestAcceptedExtraDetailsTag { get } -
Team merge request accepted details shown to the primary team. - note: Ensure the
isPrimaryTeammethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGPrimaryTeamRequestAcceptedDetails *_Nonnull primaryTeam;Swift
var primaryTeam: DBTEAMLOGPrimaryTeamRequestAcceptedDetails { get } -
Team merge request accepted details shown to the secondary team. @note Ensure the
isSecondaryTeammethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGSecondaryTeamRequestAcceptedDetails *_Nonnull secondaryTeam;Swift
var secondaryTeam: DBTEAMLOGSecondaryTeamRequestAcceptedDetails { get }
-
Initializes union class with tag state of “primary_team”.
Description of the “primary_team” tag state: Team merge request accepted details shown to the primary team.
Declaration
Objective-C
- (nonnull instancetype)initWithPrimaryTeam: (nonnull DBTEAMLOGPrimaryTeamRequestAcceptedDetails *)primaryTeam;Swift
init(primaryTeam: DBTEAMLOGPrimaryTeamRequestAcceptedDetails)Parameters
primaryTeamTeam merge request accepted details shown to the primary team.
Return Value
An initialized instance.
-
Initializes union class with tag state of “secondary_team”.
Description of the “secondary_team” tag state: Team merge request accepted details shown to the secondary team.
Declaration
Objective-C
- (nonnull instancetype)initWithSecondaryTeam: (nonnull DBTEAMLOGSecondaryTeamRequestAcceptedDetails *)secondaryTeam;Swift
init(secondaryTeam: DBTEAMLOGSecondaryTeamRequestAcceptedDetails)Parameters
secondaryTeamTeam merge request accepted details shown to the secondary team.
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 “primary_team”.
Note
Call this method and ensure it returns true before accessing the
primaryTeamproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPrimaryTeam;Swift
func isPrimaryTeam() -> BoolReturn Value
Whether the union’s current tag state has value “primary_team”.
-
Retrieves whether the union’s current tag state has value “secondary_team”.
Note
Call this method and ensure it returns true before accessing the
secondaryTeamproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isSecondaryTeam;Swift
func isSecondaryTeam() -> BoolReturn Value
Whether the union’s current tag state has value “secondary_team”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn 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() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBTEAMLOGTeamMergeRequestAcceptedExtraDetails Class Reference