Class StandingContainerResponse

    • Constructor Detail

      • StandingContainerResponse

        public StandingContainerResponse()
      • StandingContainerResponse

        public StandingContainerResponse​(@Nonnull
                                         TournamentResponse onTournament)
      • StandingContainerResponse

        public StandingContainerResponse​(@Nonnull
                                         EventResponse onEvent)
      • StandingContainerResponse

        public StandingContainerResponse​(@Nonnull
                                         PhaseGroupResponse onPhaseGroup)
      • StandingContainerResponse

        public StandingContainerResponse​(@Nonnull
                                         SetResponse onSet)
    • Method Detail

      • typeForTypename

        public static java.lang.Class<? extends GGResponseObject> typeForTypename​(@Nonnull
                                                                                  java.lang.String __typename)
                                                                           throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • onTournament

        @Nonnull
        public StandingContainerResponse onTournament​(@Nonnull
                                                      java.util.function.Consumer<TournamentResponse> consumer)
        The consumer is executed only if this is a tournament
        Returns:
        itself for chaining
      • onEvent

        @Nonnull
        public StandingContainerResponse onEvent​(@Nonnull
                                                 java.util.function.Consumer<EventResponse> consumer)
        The consumer is executed only if this is an event
        Returns:
        itself for chaining
      • onPhaseGroup

        @Nonnull
        public StandingContainerResponse onPhaseGroup​(@Nonnull
                                                      java.util.function.Consumer<PhaseGroupResponse> consumer)
        The consumer is executed if this is a phase group
        Returns:
        itself for chaining
      • onSet

        @Nonnull
        public StandingContainerResponse onSet​(@Nonnull
                                               java.util.function.Consumer<SetResponse> consumer)
        The consumer is executed if this is a set
        Returns:
        itself for chaining
      • getTournament

        @Nullable
        public TournamentResponse getTournament()
        The tournament or null if this is not a tournament
      • getEvent

        @Nullable
        public EventResponse getEvent()
        The event or null if this is not an event
      • getPhaseGroup

        @Nullable
        public PhaseGroupResponse getPhaseGroup()
        The phase group or null if this is not a phase group
      • getSet

        @Nullable
        public SetResponse getSet()
        The set or null if this is not a set