DBTEAMLOGTeamMergeRequestExpiredExtraDetails
Objective-C
@interface DBTEAMLOGTeamMergeRequestExpiredExtraDetails
: NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGTeamMergeRequestExpiredExtraDetails : NSObject, DBSerializable, NSCopying
The TeamMergeRequestExpiredExtraDetails
union.
Team merge request expiration 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) DBTEAMLOGTeamMergeRequestExpiredExtraDetailsTag tag;
Swift
var tag: DBTEAMLOGTeamMergeRequestExpiredExtraDetailsTag { get }
-
Team merge request canceled details shown to the primary team. - note: Ensure the
isPrimaryTeam
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGPrimaryTeamRequestExpiredDetails *_Nonnull primaryTeam;
Swift
var primaryTeam: DBTEAMLOGPrimaryTeamRequestExpiredDetails { get }
-
Team merge request canceled details shown to the secondary team. @note Ensure the
isSecondaryTeam
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGSecondaryTeamRequestExpiredDetails *_Nonnull secondaryTeam;
Swift
var secondaryTeam: DBTEAMLOGSecondaryTeamRequestExpiredDetails { get }
-
Initializes union class with tag state of “primary_team”.
Description of the “primary_team” tag state: Team merge request canceled details shown to the primary team.
Declaration
Objective-C
- (nonnull instancetype)initWithPrimaryTeam: (nonnull DBTEAMLOGPrimaryTeamRequestExpiredDetails *)primaryTeam;
Swift
init(primaryTeam: DBTEAMLOGPrimaryTeamRequestExpiredDetails)
Parameters
primaryTeam
Team merge request canceled 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 canceled details shown to the secondary team.
Declaration
Objective-C
- (nonnull instancetype)initWithSecondaryTeam: (nonnull DBTEAMLOGSecondaryTeamRequestExpiredDetails *)secondaryTeam;
Swift
init(secondaryTeam: DBTEAMLOGSecondaryTeamRequestExpiredDetails)
Parameters
secondaryTeam
Team merge request canceled 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
primaryTeam
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPrimaryTeam;
Swift
func isPrimaryTeam() -> Bool
Return 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
secondaryTeam
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isSecondaryTeam;
Swift
func isSecondaryTeam() -> Bool
Return 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() -> 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.