com.ziqni.admin.sdk.model.Dashboard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.DataSetsValue;
import com.ziqni.admin.sdk.model.Modules;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* The dashboard to be rendered.
*/
@ApiModel(description = "The dashboard to be rendered.")
@JsonPropertyOrder({
Dashboard.JSON_PROPERTY_DATA_SETS,
Dashboard.JSON_PROPERTY_LABELS,
Dashboard.JSON_PROPERTY_MODULES
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Dashboard {
public static final String JSON_PROPERTY_DATA_SETS = "dataSets";
private Map dataSets = new HashMap<>();
public static final String JSON_PROPERTY_LABELS = "labels";
private Map> labels = new HashMap<>();
public static final String JSON_PROPERTY_MODULES = "modules";
private List modules = new ArrayList<>();
public Dashboard dataSets(Map dataSets) {
this.dataSets = dataSets;
return this;
}
public Dashboard putDataSetsItem(String key, DataSetsValue dataSetsItem) {
this.dataSets.put(key, dataSetsItem);
return this;
}
/**
* This is a map of data sets. The keys for this map are the data set labels and values are complex object which consist of data to be populated.
* @return dataSets
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "{\"events.action.points.count\":{\"label\":\"events.action.points.count (events.action.points.count)\",\"labels\":\"events.action\",\"data\":[7411162,1712995]},\"events.1w.action.points.sum.win\":{\"label\":\"win (events.1w.action.points.sum)\",\"labels\":\"events.1w\",\"data\":[69969904,131196466,134481263]},\"events.action.points.sum\":{\"label\":\"events.action.points.sum (events.action.points.sum)\",\"labels\":\"events.action\",\"data\":[2.16134492035E9,1073032576]},\"events.1w.action.sourceValue.sum.win\":{\"label\":\"win (events.1w.action.sourceValue.sum)\",\"labels\":\"events.1w\",\"data\":[69969904,131196466,134481263]},\"events.action.sourceValue.sum\":{\"label\":\"events.action.sourceValue.sum (events.action.sourceValue.sum)\",\"labels\":\"events.action\",\"data\":[2.16134492035E9,1073032576]},\"events.1w.action.sourceValue.sum.bet\":{\"label\":\"bet (events.1w.action.sourceValue.sum)\",\"labels\":\"events.1w\",\"data\":[67705635,136551165,144638430]},\"events.action.sourceValue.count\":{\"label\":\"events.action.sourceValue.count (events.action.sourceValue.count)\",\"labels\":\"events.action\",\"data\":[7411162,1712995]},\"events.1w.action.points.sum.bet\":{\"label\":\"bet (events.1w.action.points.sum)\",\"labels\":\"events.1w\",\"data\":[67705635,136551165,144638430]}}", required = true, value = "This is a map of data sets. The keys for this map are the data set labels and values are complex object which consist of data to be populated.")
@JsonProperty(JSON_PROPERTY_DATA_SETS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Map getDataSets() {
return dataSets;
}
@JsonProperty(JSON_PROPERTY_DATA_SETS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDataSets(Map dataSets) {
this.dataSets = dataSets;
}
public Dashboard labels(Map> labels) {
this.labels = labels;
return this;
}
public Dashboard putLabelsItem(String key, List labelsItem) {
this.labels.put(key, labelsItem);
return this;
}
/**
* Labels for the charts as a map.
* @return labels
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "{\"events.1w\":[\"2020-04-27 00:00\",\"2020-05-04 00:00\",\"2020-05-11 00:00\",\"2020-05-18 00:00\"],\"events.action\":[\"bet\",\"win\"]}", required = true, value = "Labels for the charts as a map.")
@JsonProperty(JSON_PROPERTY_LABELS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Map> getLabels() {
return labels;
}
@JsonProperty(JSON_PROPERTY_LABELS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLabels(Map> labels) {
this.labels = labels;
}
public Dashboard modules(List modules) {
this.modules = modules;
return this;
}
public Dashboard addModulesItem(Modules modulesItem) {
this.modules.add(modulesItem);
return this;
}
/**
* Modules to inject into the chart for rendering.
* @return modules
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Modules to inject into the chart for rendering.")
@JsonProperty(JSON_PROPERTY_MODULES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getModules() {
return modules;
}
@JsonProperty(JSON_PROPERTY_MODULES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setModules(List modules) {
this.modules = modules;
}
/**
* Return true if this Dashboard object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Dashboard dashboard = (Dashboard) o;
return Objects.equals(this.dataSets, dashboard.dataSets) &&
Objects.equals(this.labels, dashboard.labels) &&
Objects.equals(this.modules, dashboard.modules);
}
@Override
public int hashCode() {
return Objects.hash(dataSets, labels, modules);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Dashboard {\n");
sb.append(" dataSets: ").append(toIndentedString(dataSets)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" modules: ").append(toIndentedString(modules)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy