com.ibasco.agql.protocols.valve.csgo.webapi.pojos.CsgoMatchmakingStatus 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.csgo.webapi.pojos;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* CsgoMatchmakingStatus class.
*
* @author Rafael Luis Ibasco
*/
public class CsgoMatchmakingStatus {
private String scheduler;
@SerializedName("online_servers")
private int onlineServerCount;
@SerializedName("online_players")
private int onlinePlayerCount;
@SerializedName("searching_players")
private int searchingPlayersCount;
@SerializedName("search_seconds_avg")
private int searchSecondsAvg;
/**
* Getter for the field scheduler
.
*
* @return a {@link java.lang.String} object
*/
public String getScheduler() {
return scheduler;
}
/**
* Setter for the field scheduler
.
*
* @param scheduler
* a {@link java.lang.String} object
*/
public void setScheduler(String scheduler) {
this.scheduler = scheduler;
}
/**
* Getter for the field onlineServerCount
.
*
* @return a int
*/
public int getOnlineServerCount() {
return onlineServerCount;
}
/**
* Setter for the field onlineServerCount
.
*
* @param onlineServerCount
* a int
*/
public void setOnlineServerCount(int onlineServerCount) {
this.onlineServerCount = onlineServerCount;
}
/**
* Getter for the field onlinePlayerCount
.
*
* @return a int
*/
public int getOnlinePlayerCount() {
return onlinePlayerCount;
}
/**
* Setter for the field onlinePlayerCount
.
*
* @param onlinePlayerCount
* a int
*/
public void setOnlinePlayerCount(int onlinePlayerCount) {
this.onlinePlayerCount = onlinePlayerCount;
}
/**
* Getter for the field searchingPlayersCount
.
*
* @return a int
*/
public int getSearchingPlayersCount() {
return searchingPlayersCount;
}
/**
* Setter for the field searchingPlayersCount
.
*
* @param searchingPlayersCount
* a int
*/
public void setSearchingPlayersCount(int searchingPlayersCount) {
this.searchingPlayersCount = searchingPlayersCount;
}
/**
* Getter for the field searchSecondsAvg
.
*
* @return a int
*/
public int getSearchSecondsAvg() {
return searchSecondsAvg;
}
/**
* Setter for the field searchSecondsAvg
.
*
* @param searchSecondsAvg
* a int
*/
public void setSearchSecondsAvg(int searchSecondsAvg) {
this.searchSecondsAvg = searchSecondsAvg;
}
/** {@inheritDoc} */
@Override
public String toString() {
return ReflectionToStringBuilder.toString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
}
}