com.ziqni.admin.sdk.model.EntrantExport 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.Award;
import com.ziqni.admin.sdk.model.Reward;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* EntrantExport
*/
@JsonPropertyOrder({
EntrantExport.JSON_PROPERTY_CREATED,
EntrantExport.JSON_PROPERTY_MEMBER_ID,
EntrantExport.JSON_PROPERTY_MEMBER_REF_ID,
EntrantExport.JSON_PROPERTY_NAME,
EntrantExport.JSON_PROPERTY_POINTS,
EntrantExport.JSON_PROPERTY_RANK,
EntrantExport.JSON_PROPERTY_GROUPS,
EntrantExport.JSON_PROPERTY_AWARDS,
EntrantExport.JSON_PROPERTY_REWARDS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EntrantExport {
public static final String JSON_PROPERTY_CREATED = "created";
private OffsetDateTime created;
public static final String JSON_PROPERTY_MEMBER_ID = "memberId";
private String memberId;
public static final String JSON_PROPERTY_MEMBER_REF_ID = "memberRefId";
private String memberRefId;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_POINTS = "points";
private BigDecimal points;
public static final String JSON_PROPERTY_RANK = "rank";
private Integer rank;
public static final String JSON_PROPERTY_GROUPS = "groups";
private List groups = null;
public static final String JSON_PROPERTY_AWARDS = "awards";
private List awards = null;
public static final String JSON_PROPERTY_REWARDS = "rewards";
private List rewards = null;
public EntrantExport created(OffsetDateTime created) {
this.created = created;
return this;
}
/**
* ISO8601 timestamp for when a Model was created. All records are stored in UTC time zone
* @return created
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "ISO8601 timestamp for when a Model was created. All records are stored in UTC time zone")
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreated() {
return created;
}
@JsonProperty(JSON_PROPERTY_CREATED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreated(OffsetDateTime created) {
this.created = created;
}
public EntrantExport memberId(String memberId) {
this.memberId = memberId;
return this;
}
/**
* Get memberId
* @return memberId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MEMBER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMemberId() {
return memberId;
}
@JsonProperty(JSON_PROPERTY_MEMBER_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public EntrantExport memberRefId(String memberRefId) {
this.memberRefId = memberRefId;
return this;
}
/**
* Get memberRefId
* @return memberRefId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MEMBER_REF_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMemberRefId() {
return memberRefId;
}
@JsonProperty(JSON_PROPERTY_MEMBER_REF_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMemberRefId(String memberRefId) {
this.memberRefId = memberRefId;
}
public EntrantExport name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
public EntrantExport points(BigDecimal points) {
this.points = points;
return this;
}
/**
* double
* @return points
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "double")
@JsonProperty(JSON_PROPERTY_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPoints() {
return points;
}
@JsonProperty(JSON_PROPERTY_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPoints(BigDecimal points) {
this.points = points;
}
public EntrantExport rank(Integer rank) {
this.rank = rank;
return this;
}
/**
* integer
* @return rank
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "integer")
@JsonProperty(JSON_PROPERTY_RANK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getRank() {
return rank;
}
@JsonProperty(JSON_PROPERTY_RANK)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRank(Integer rank) {
this.rank = rank;
}
public EntrantExport groups(List groups) {
this.groups = groups;
return this;
}
public EntrantExport addGroupsItem(String groupsItem) {
if (this.groups == null) {
this.groups = new ArrayList<>();
}
this.groups.add(groupsItem);
return this;
}
/**
* Get groups
* @return groups
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_GROUPS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getGroups() {
return groups;
}
@JsonProperty(JSON_PROPERTY_GROUPS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGroups(List groups) {
this.groups = groups;
}
public EntrantExport awards(List awards) {
this.awards = awards;
return this;
}
public EntrantExport addAwardsItem(Award awardsItem) {
if (this.awards == null) {
this.awards = new ArrayList<>();
}
this.awards.add(awardsItem);
return this;
}
/**
* Rewards
* @return awards
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Rewards")
@JsonProperty(JSON_PROPERTY_AWARDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAwards() {
return awards;
}
@JsonProperty(JSON_PROPERTY_AWARDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAwards(List awards) {
this.awards = awards;
}
public EntrantExport rewards(List rewards) {
this.rewards = rewards;
return this;
}
public EntrantExport addRewardsItem(Reward rewardsItem) {
if (this.rewards == null) {
this.rewards = new ArrayList<>();
}
this.rewards.add(rewardsItem);
return this;
}
/**
* Rewards
* @return rewards
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Rewards")
@JsonProperty(JSON_PROPERTY_REWARDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRewards() {
return rewards;
}
@JsonProperty(JSON_PROPERTY_REWARDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRewards(List rewards) {
this.rewards = rewards;
}
/**
* Return true if this EntrantExport object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntrantExport entrantExport = (EntrantExport) o;
return Objects.equals(this.created, entrantExport.created) &&
Objects.equals(this.memberId, entrantExport.memberId) &&
Objects.equals(this.memberRefId, entrantExport.memberRefId) &&
Objects.equals(this.name, entrantExport.name) &&
Objects.equals(this.points, entrantExport.points) &&
Objects.equals(this.rank, entrantExport.rank) &&
Objects.equals(this.groups, entrantExport.groups) &&
Objects.equals(this.awards, entrantExport.awards) &&
Objects.equals(this.rewards, entrantExport.rewards);
}
@Override
public int hashCode() {
return Objects.hash(created, memberId, memberRefId, name, points, rank, groups, awards, rewards);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntrantExport {\n");
sb.append(" created: ").append(toIndentedString(created)).append("\n");
sb.append(" memberId: ").append(toIndentedString(memberId)).append("\n");
sb.append(" memberRefId: ").append(toIndentedString(memberRefId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" points: ").append(toIndentedString(points)).append("\n");
sb.append(" rank: ").append(toIndentedString(rank)).append("\n");
sb.append(" groups: ").append(toIndentedString(groups)).append("\n");
sb.append(" awards: ").append(toIndentedString(awards)).append("\n");
sb.append(" rewards: ").append(toIndentedString(rewards)).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