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;
  }

}

@@ -206,16 +206,19 @@
 dInfo %7B%0A
+  %0A
   privat
@@ -267,25 +267,25 @@
  String time
-S
+s
 tamp;%0A  priv
@@ -345,17 +345,16 @@
 ranch;%0A%0A
-%0A
   privat
@@ -431,25 +431,25 @@
  String time
-S
+s
 tamp, String
@@ -564,25 +564,25 @@
    this.time
-S
+s
 tamp = timeS
@@ -576,25 +576,25 @@
 stamp = time
-S
+s
 tamp;%0A    th
@@ -784,17 +784,17 @@
  getTime
-S
+s
 tamp() %7B
@@ -809,17 +809,17 @@
 urn time
-S
+s
 tamp;%0A  

rename timeStamp into timestamp