package com.google.graphgeckos.dashboard.api.components;

import java.util.ArrayList;
import java.util.List;

// Represents the response json with the aggregated buildbot data.
public class BuildInfo {

  private final String commitHash;
  private final String timestamp;
  private final String repository;
  private final String branch;

  private final List<Builder> builders;

  public BuildInfo(String commitHash, String timestamp, String repository,
                   String branch, List<Builder> builders) {
    this.commitHash = commitHash;
    this.timestamp = timestamp;
    this.repository = repository;
    this.branch = branch;
    this.builders = new ArrayList<>(builders);
  }

  public String getCommitHash() {
    return commitHash;
  }

  public String getTimestamp() {
    return timestamp;
  }

  public String getRepository() {
    return repository;
  }

  public String getBranch() {
    return branch;
  }

  public List<Builder> getBuilders() {
    return builders;
  }

}

@@ -202,109 +202,497 @@
 %0A%0A  
-private final String commitHash;%0A  private final String timestamp;%0A  private final String repository;
+// represents a git commit hash of the tested changes commit%0A  private final String commitHash;%0A  /*%0A   represents the relative time (time since the application was started), %0A   allows to sort received build info in the descending order (latest goes first)%0A   */%0A  private final String timestamp;%0A  // represent a link to to the git repository where the tested changes were made%0A  private final String repository;%0A  // represent a name of the git branch where the tested changes were made
 %0A  p

add comments for the fields