DBTEAMLOGTeamMergeRequestCanceledExtraDetails

Objective-C

@interface DBTEAMLOGTeamMergeRequestCanceledExtraDetails
    : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLOGTeamMergeRequestCanceledExtraDetails : NSObject, DBSerializable, NSCopying

The TeamMergeRequestCanceledExtraDetails union.

Team merge request cancellation details

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “primary_team”.

    Description of the “primary_team” tag state: Team merge request cancellation details shown to the primary team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPrimaryTeam:
        (nonnull DBTEAMLOGPrimaryTeamRequestCanceledDetails *)primaryTeam;

    Parameters

    primaryTeam

    Team merge request cancellation 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 cancellation details shown to the secondary team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSecondaryTeam:
        (nonnull DBTEAMLOGSecondaryTeamRequestCanceledDetails *)secondaryTeam;

    Parameters

    secondaryTeam

    Team merge request cancellation 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.

Tag state methods

  • 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.