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 {

  // git commit hash of the tested changes commit
  private final String commitHash;
  /*
   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;
  // link to to the git repository where the tested changes were made
  private final String repository;
  // name of the git branch where the tested changes were made
  private final String branch;

  // builders which tested the changes
  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;
  }

}

@@ -79,16 +79,39 @@
 ayList;%0A
+import java.util.Date;%0A
 import j
@@ -125,16 +125,16 @@
 l.List;%0A
-
 %0A// Repr
@@ -311,99 +311,27 @@
 %0A  /
-*%0A   the relative time (time since the application was started),%0A   allows to sort
+/ time of
  receiv
-ed
+ing
  bui
@@ -341,58 +341,8 @@
 info
- in the descending order (latest goes first)%0A   */
 %0A  p
@@ -354,22 +354,20 @@
 e final 
-String
+Date
  timesta
@@ -688,22 +688,20 @@
 itHash, 
-String
+Date
  timesta
@@ -1028,30 +1028,28 @@
 %7D%0A%0A  public 
-String
+Date
  getTimestam

change timestamp representation from String to Data