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 {

  // represents a git commit hash of the tested changes commit
  private final String commitHash;
  /*
   represents the relative time (time since the application was started), 
   allows to sort received build info in the descending order (latest goes first)
   */
  private final String timestamp;
  // represent a link to to the git repository where the tested changes were made
  private final String repository;
  // represent a name of the git branch where the tested changes were made
  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;
  }

}

@@ -204,21 +204,8 @@
   //
- represents a
  git
@@ -293,19 +293,8 @@
 %0A   
-represents 
 the 
@@ -348,17 +348,16 @@
 tarted),
- 
 %0A   allo
@@ -475,28 +475,16 @@
 mp;%0A  //
- represent a
  link to
@@ -584,20 +584,8 @@
   //
- represent a
  nam
@@ -671,16 +671,55 @@
 ranch;%0A%0A
+  // builders which tested the changes%0A
   privat

add comments for builders field