com.ibasco.agql.protocols.valve.dota2.webapi.pojos.Dota2TeamMemberDetails 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.Expose;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Dota2TeamMemberDetails class.
*
* @author Rafael Luis Ibasco
*/
public class Dota2TeamMemberDetails {
@SerializedName("account_id")
@Expose
private long accountId;
@SerializedName("time_joined")
@Expose
private long timeJoined;
@SerializedName("admin")
@Expose
private boolean admin;
@SerializedName("sub")
@Expose
private boolean sub;
/**
* Getter for the field accountId
.
*
* @return The accountId
*/
public long getAccountId() {
return accountId;
}
/**
* Setter for the field accountId
.
*
* @param accountId
* The account_id
*/
public void setAccountId(long accountId) {
this.accountId = accountId;
}
/**
* Getter for the field timeJoined
.
*
* @return The timeJoined
*/
public long getTimeJoined() {
return timeJoined;
}
/**
* Setter for the field timeJoined
.
*
* @param timeJoined
* The time_joined
*/
public void setTimeJoined(long timeJoined) {
this.timeJoined = timeJoined;
}
/**
* isAdmin.
*
* @return The admin
*/
public boolean isAdmin() {
return admin;
}
/**
* Setter for the field admin
.
*
* @param admin
* The admin
*/
public void setAdmin(boolean admin) {
this.admin = admin;
}
/**
* isSub.
*
* @return The sub
*/
public boolean isSub() {
return sub;
}
/**
* Setter for the field sub
.
*
* @param sub
* The sub
*/
public void setSub(boolean sub) {
this.sub = sub;
}
/** {@inheritDoc} */
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
}
}