All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ziqni.admin.sdk.model.CreateInstantWinTile Maven / Gradle / Ivy

There is a newer version: 1.0.24
Show newest version
/*
 * 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.CreateRewardRequest;
import com.ziqni.admin.sdk.model.GridLocation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * CreateInstantWinTile
 */
@JsonPropertyOrder({
  CreateInstantWinTile.JSON_PROPERTY_ICON,
  CreateInstantWinTile.JSON_PROPERTY_TEXT,
  CreateInstantWinTile.JSON_PROPERTY_REWARD,
  CreateInstantWinTile.JSON_PROPERTY_LOCATION,
  CreateInstantWinTile.JSON_PROPERTY_PROBABILITY,
  CreateInstantWinTile.JSON_PROPERTY_BACKGROUND,
  CreateInstantWinTile.JSON_PROPERTY_CONTRAINTS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateInstantWinTile {
  public static final String JSON_PROPERTY_ICON = "icon";
  private String icon;

  public static final String JSON_PROPERTY_TEXT = "text";
  private String text;

  public static final String JSON_PROPERTY_REWARD = "reward";
  private CreateRewardRequest reward;

  public static final String JSON_PROPERTY_LOCATION = "location";
  private GridLocation location;

  public static final String JSON_PROPERTY_PROBABILITY = "probability";
  private Double probability;

  public static final String JSON_PROPERTY_BACKGROUND = "background";
  private String background;

  public static final String JSON_PROPERTY_CONTRAINTS = "contraints";
  private List contraints = null;


  public CreateInstantWinTile icon(String icon) {
    this.icon = icon;
    return this;
  }

   /**
   * The id to the image file
   * @return icon
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "The id to the image file")
  @JsonProperty(JSON_PROPERTY_ICON)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getIcon() {
    return icon;
  }


  @JsonProperty(JSON_PROPERTY_ICON)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setIcon(String icon) {
    this.icon = icon;
  }


  public CreateInstantWinTile text(String text) {
    this.text = text;
    return this;
  }

   /**
   * Get text
   * @return text
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_TEXT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getText() {
    return text;
  }


  @JsonProperty(JSON_PROPERTY_TEXT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setText(String text) {
    this.text = text;
  }


  public CreateInstantWinTile reward(CreateRewardRequest reward) {
    this.reward = reward;
    return this;
  }

   /**
   * Get reward
   * @return reward
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_REWARD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public CreateRewardRequest getReward() {
    return reward;
  }


  @JsonProperty(JSON_PROPERTY_REWARD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setReward(CreateRewardRequest reward) {
    this.reward = reward;
  }


  public CreateInstantWinTile location(GridLocation location) {
    this.location = location;
    return this;
  }

   /**
   * Get location
   * @return location
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public GridLocation getLocation() {
    return location;
  }


  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLocation(GridLocation location) {
    this.location = location;
  }


  public CreateInstantWinTile probability(Double probability) {
    this.probability = probability;
    return this;
  }

   /**
   * Get probability
   * @return probability
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_PROBABILITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Double getProbability() {
    return probability;
  }


  @JsonProperty(JSON_PROPERTY_PROBABILITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setProbability(Double probability) {
    this.probability = probability;
  }


  public CreateInstantWinTile background(String background) {
    this.background = background;
    return this;
  }

   /**
   * Get background
   * @return background
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_BACKGROUND)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getBackground() {
    return background;
  }


  @JsonProperty(JSON_PROPERTY_BACKGROUND)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBackground(String background) {
    this.background = background;
  }


  public CreateInstantWinTile contraints(List contraints) {
    this.contraints = contraints;
    return this;
  }

  public CreateInstantWinTile addContraintsItem(String contraintsItem) {
    if (this.contraints == null) {
      this.contraints = new ArrayList<>();
    }
    this.contraints.add(contraintsItem);
    return this;
  }

   /**
   * hasPrizes, glow
   * @return contraints
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "hasPrizes", value = "hasPrizes, glow")
  @JsonProperty(JSON_PROPERTY_CONTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getContraints() {
    return contraints;
  }


  @JsonProperty(JSON_PROPERTY_CONTRAINTS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setContraints(List contraints) {
    this.contraints = contraints;
  }


  /**
   * Return true if this CreateInstantWinTile object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateInstantWinTile createInstantWinTile = (CreateInstantWinTile) o;
    return Objects.equals(this.icon, createInstantWinTile.icon) &&
        Objects.equals(this.text, createInstantWinTile.text) &&
        Objects.equals(this.reward, createInstantWinTile.reward) &&
        Objects.equals(this.location, createInstantWinTile.location) &&
        Objects.equals(this.probability, createInstantWinTile.probability) &&
        Objects.equals(this.background, createInstantWinTile.background) &&
        Objects.equals(this.contraints, createInstantWinTile.contraints);
  }

  @Override
  public int hashCode() {
    return Objects.hash(icon, text, reward, location, probability, background, contraints);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateInstantWinTile {\n");
    sb.append("    icon: ").append(toIndentedString(icon)).append("\n");
    sb.append("    text: ").append(toIndentedString(text)).append("\n");
    sb.append("    reward: ").append(toIndentedString(reward)).append("\n");
    sb.append("    location: ").append(toIndentedString(location)).append("\n");
    sb.append("    probability: ").append(toIndentedString(probability)).append("\n");
    sb.append("    background: ").append(toIndentedString(background)).append("\n");
    sb.append("    contraints: ").append(toIndentedString(contraints)).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