All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flowthings.client.domain.Device Maven / Gradle / Ivy

package com.flowthings.client.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Device extends FlowDomainObject {
  protected String displayName;
  protected String path;
  protected String tokenId;
  protected HashMap deviceSummary;
  protected String status;
  protected Date lastSeen;
  protected Long reportPeriodicity;
  protected HashMap> tracks;

  public String getDisplayName() {
    return displayName;
  }

  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }

  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }

  public String getTokenId() {
    return tokenId;
  }

  public void setTokenId(String tokenId) {
    this.tokenId = tokenId;
  }

  public HashMap getDeviceSummary() {
    return deviceSummary;
  }

  public void setDeviceSummary(HashMap deviceSummary) {
    this.deviceSummary = deviceSummary;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Date getLastSeen() {
    return lastSeen;
  }

  public void setLastSeen(Date lastSeen) {
    this.lastSeen = lastSeen;
  }

  public Long getReportPeriodicity() {
    return reportPeriodicity;
  }

  public void setReportPeriodicity(Long reportPeriodicity) {
    this.reportPeriodicity = reportPeriodicity;
  }

  public HashMap> getTracks() {
    return tracks;
  }

  public void setTracks(HashMap> tracks) {
    this.tracks = tracks;
  }

  @Override
  public String toString() {
    return "Device [displayName=" + displayName + ", path=" + path + ", status=" + status
        + ", tracks=[" + getTracks().keySet() + "], toString()="
        + super.toString() + "]";
  }

  public static class Builder extends FlowDomainObject.Builder {
    public Builder setDisplayName(String o) {
      base.displayName = o;
      return this;
    }

    public Builder setPath(String o) {
      base.path = o;
      return this;
    }

    public Builder setTokenId(String o) {
      base.tokenId = o;
      return this;
    }

    public Builder setReportPeriodicity(Long o) {
      base.reportPeriodicity = o;
      return this;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy