com.ibasco.agql.protocols.valve.steam.webapi.pojos.SteamPlayerProfile 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.steam.webapi.pojos;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Created by raffy on 10/27/2016.
*
* @author Rafael Luis Ibasco
*/
public class SteamPlayerProfile {
@SerializedName("steamid")
private String steamId;
@SerializedName("communityvisibilitystate")
private int communityVisibilityState;
@SerializedName("profilestate")
private int profileState;
@SerializedName("personaname")
private String name;
@SerializedName("lastlogoff")
private long lastLogOff;
@SerializedName("profileurl")
private String profileUrl;
@SerializedName("avatar")
private String avatarUrl;
@SerializedName("avatarmedium")
private String avatarMediumUrl;
@SerializedName("avatarfull")
private String avatarFullUrl;
@SerializedName("personastate")
private int personaState;
@SerializedName("primaryclanid")
private long primaryGroupId;
@SerializedName("timecreated")
private long timeCreated;
@SerializedName("personastateflags")
private int personaStateFlags;
/**
* Getter for the field steamId
.
*
* @return a {@link java.lang.String} object
*/
public String getSteamId() {
return steamId;
}
/**
* Setter for the field steamId
.
*
* @param steamId
* a {@link java.lang.String} object
*/
public void setSteamId(String steamId) {
this.steamId = steamId;
}
/**
* Getter for the field communityVisibilityState
.
*
* @return a int
*/
public int getCommunityVisibilityState() {
return communityVisibilityState;
}
/**
* Setter for the field communityVisibilityState
.
*
* @param communityVisibilityState
* a int
*/
public void setCommunityVisibilityState(int communityVisibilityState) {
this.communityVisibilityState = communityVisibilityState;
}
/**
* Getter for the field profileState
.
*
* @return a int
*/
public int getProfileState() {
return profileState;
}
/**
* Setter for the field profileState
.
*
* @param profileState
* a int
*/
public void setProfileState(int profileState) {
this.profileState = profileState;
}
/**
* Getter for the field name
.
*
* @return a {@link java.lang.String} object
*/
public String getName() {
return name;
}
/**
* Setter for the field name
.
*
* @param name
* a {@link java.lang.String} object
*/
public void setName(String name) {
this.name = name;
}
/**
* Getter for the field lastLogOff
.
*
* @return a long
*/
public long getLastLogOff() {
return lastLogOff;
}
/**
* Setter for the field lastLogOff
.
*
* @param lastLogOff
* a long
*/
public void setLastLogOff(long lastLogOff) {
this.lastLogOff = lastLogOff;
}
/**
* Getter for the field profileUrl
.
*
* @return a {@link java.lang.String} object
*/
public String getProfileUrl() {
return profileUrl;
}
/**
* Setter for the field profileUrl
.
*
* @param profileUrl
* a {@link java.lang.String} object
*/
public void setProfileUrl(String profileUrl) {
this.profileUrl = profileUrl;
}
/**
* Getter for the field avatarUrl
.
*
* @return a {@link java.lang.String} object
*/
public String getAvatarUrl() {
return avatarUrl;
}
/**
* Setter for the field avatarUrl
.
*
* @param avatarUrl
* a {@link java.lang.String} object
*/
public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
}
/**
* Getter for the field avatarMediumUrl
.
*
* @return a {@link java.lang.String} object
*/
public String getAvatarMediumUrl() {
return avatarMediumUrl;
}
/**
* Setter for the field avatarMediumUrl
.
*
* @param avatarMediumUrl
* a {@link java.lang.String} object
*/
public void setAvatarMediumUrl(String avatarMediumUrl) {
this.avatarMediumUrl = avatarMediumUrl;
}
/**
* Getter for the field avatarFullUrl
.
*
* @return a {@link java.lang.String} object
*/
public String getAvatarFullUrl() {
return avatarFullUrl;
}
/**
* Setter for the field avatarFullUrl
.
*
* @param avatarFullUrl
* a {@link java.lang.String} object
*/
public void setAvatarFullUrl(String avatarFullUrl) {
this.avatarFullUrl = avatarFullUrl;
}
/**
* Getter for the field personaState
.
*
* @return a int
*/
public int getPersonaState() {
return personaState;
}
/**
* Setter for the field personaState
.
*
* @param personaState
* a int
*/
public void setPersonaState(int personaState) {
this.personaState = personaState;
}
/**
* Getter for the field primaryGroupId
.
*
* @return a long
*/
public long getPrimaryGroupId() {
return primaryGroupId;
}
/**
* Setter for the field primaryGroupId
.
*
* @param primaryGroupId
* a long
*/
public void setPrimaryGroupId(long primaryGroupId) {
this.primaryGroupId = primaryGroupId;
}
/**
* Getter for the field timeCreated
.
*
* @return a long
*/
public long getTimeCreated() {
return timeCreated;
}
/**
* Setter for the field timeCreated
.
*
* @param timeCreated
* a long
*/
public void setTimeCreated(long timeCreated) {
this.timeCreated = timeCreated;
}
/**
* Getter for the field personaStateFlags
.
*
* @return a int
*/
public int getPersonaStateFlags() {
return personaStateFlags;
}
/**
* Setter for the field personaStateFlags
.
*
* @param personaStateFlags
* a int
*/
public void setPersonaStateFlags(int personaStateFlags) {
this.personaStateFlags = personaStateFlags;
}
/** {@inheritDoc} */
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.NO_CLASS_NAME_STYLE)
.append("steamId", steamId)
.append("name", name)
.append("lastLogOff", lastLogOff)
.append("profileUrl", profileUrl).toString();
}
}