com.ibasco.agql.protocols.valve.dota2.webapi.pojos.Dota2RealtimeServerStats Maven / Gradle / Ivy
/*
* Copyright (c) 2022 Asynchronous Game Query Library
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ibasco.agql.protocols.valve.dota2.webapi.pojos;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.ArrayList;
import java.util.List;
/**
* Dota2RealtimeServerStats class.
*
* @author Rafael Luis Ibasco
*/
public class Dota2RealtimeServerStats {
@SerializedName("match")
private Dota2ServerStatsMatch match;
@SerializedName("teams")
private List teams = new ArrayList<>();
@SerializedName("buildings")
private List buildings = new ArrayList<>();
@SerializedName("graph_data")
private Dota2ServerStatsGraph graphData;
@SerializedName("delta_frame")
private boolean deltaFrame;
/**
* Getter for the field match
.
*
* @return A {@link com.ibasco.agql.protocols.valve.dota2.webapi.pojos.Dota2ServerStatsMatch} instance
*/
public Dota2ServerStatsMatch getMatch() {
return match;
}
/**
* Setter for the field match
.
*
* @param match
* The match
*/
public void setMatch(Dota2ServerStatsMatch match) {
this.match = match;
}
/**
* Getter for the field teams
.
*
* @return The teams
*/
public List getTeams() {
return teams;
}
/**
* Setter for the field teams
.
*
* @param teams
* The teams
*/
public void setTeams(List teams) {
this.teams = teams;
}
/**
* Getter for the field buildings
.
*
* @return The buildings
*/
public List getBuildings() {
return buildings;
}
/**
* Setter for the field buildings
.
*
* @param buildings
* The buildings
*/
public void setBuildings(List buildings) {
this.buildings = buildings;
}
/**
* Getter for the field graphData
.
*
* @return The graphData
*/
public Dota2ServerStatsGraph getGraphData() {
return graphData;
}
/**
* Setter for the field graphData
.
*
* @param graphData
* The graph_data
*/
public void setGraphData(Dota2ServerStatsGraph graphData) {
this.graphData = graphData;
}
/**
* isDeltaFrame.
*
* @return The deltaFrame
*/
public boolean isDeltaFrame() {
return deltaFrame;
}
/**
* Setter for the field deltaFrame
.
*
* @param deltaFrame
* The delta_frame
*/
public void setDeltaFrame(boolean deltaFrame) {
this.deltaFrame = deltaFrame;
}
/** {@inheritDoc} */
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
}
}