package de.ivu.elect.util;

import java.io.Serializable;
import java.util.UUID;

public class ThirdPartyInfo implements Serializable {

  private static final long serialVersionUID = 1L;

  private final String id;
  private final String name;
  private final String mvnArtefakt;
  private final String lizenz;
  private final String url;

  public ThirdPartyInfo(String name, String mvnArtefakt, String lizenz, String url) {
    this.id = UUID.randomUUID().toString();
    this.name = name;
    this.mvnArtefakt = mvnArtefakt;
    this.lizenz = lizenz;
    this.url = url;
  }

  public String getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  public String getMvnArtefakt() {
    return mvnArtefakt;
  }

  public String getLizenz() {
    return lizenz;
  }

  public String getUrl() {
    return url;
  }

  @Override
  public String toString() {
    return "ThirdPartyInfo{" +
        "name='" + name + '\'' +
        ", mvnArtefakt='" + mvnArtefakt + '\'' +
        ", lizenz='" + lizenz + '\'' +
        ", url='" + url + '\'' +
        '}';
  }
}
