Module com.s8.api

Class GetBranchMetadataS8Request

java.lang.Object
com.s8.api.flow.repository.requests.GetBranchMetadataS8Request

public abstract class GetBranchMetadataS8Request extends Object
A Request object to get the metadata of a branch of a repository.
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • repositoryAddress

      public final String repositoryAddress
      The address of the repository
    • branchId

      public final String branchId
      the branch id
  • Constructor Details

    • GetBranchMetadataS8Request

      public GetBranchMetadataS8Request(String repositoryAddress, String branchId)
      Main constructor.
      Parameters:
      repositoryAddress - the repository address
      branchId - the branch id
  • Method Details

    • onSucceed

      public abstract void onSucceed(GetBranchMetadataS8Request.Status status, S8BranchMetadata metadata)
      Callback method run upon successful request execution.
      Parameters:
      status - the status returned
      metadata - the data returned
    • onFailed

      public abstract void onFailed(Exception exception)
      Callback method run upon failed request execution.
      Parameters:
      exception - the exception raised during request execution