![JAR search and dependency download from the Maven repository](/logo.png)
net.accelbyte.sdk.api.platform.models.XsollaPaywallConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
AccelByte Gaming Services Java Extend SDK generated from OpenAPI specs
/*
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
* This is licensed software from AccelByte Inc, for limitations
* and restrictions contact your company contract manager.
*
* Code generated. DO NOT EDIT.
*/
package net.accelbyte.sdk.api.platform.models;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.*;
import lombok.*;
import net.accelbyte.sdk.core.Model;
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@Getter
@Setter
// @deprecated 2022-08-29 - All args constructor may cause problems. Use builder instead.
@AllArgsConstructor(onConstructor = @__(@Deprecated))
@NoArgsConstructor
public class XsollaPaywallConfig extends Model {
@JsonProperty("device")
private String device;
@JsonProperty("showCloseButton")
private Boolean showCloseButton;
@JsonProperty("size")
private String size;
@JsonProperty("theme")
private String theme;
@JsonIgnore
public String getDevice() {
return this.device;
}
@JsonIgnore
public Device getDeviceAsEnum() {
return Device.valueOf(this.device);
}
@JsonIgnore
public void setDevice(final String device) {
this.device = device;
}
@JsonIgnore
public void setDeviceFromEnum(final Device device) {
this.device = device.toString();
}
@JsonIgnore
public String getSize() {
return this.size;
}
@JsonIgnore
public Size getSizeAsEnum() {
return Size.valueOf(this.size);
}
@JsonIgnore
public void setSize(final String size) {
this.size = size;
}
@JsonIgnore
public void setSizeFromEnum(final Size size) {
this.size = size.toString();
}
@JsonIgnore
public String getTheme() {
return this.theme;
}
@JsonIgnore
public Theme getThemeAsEnum() {
return Theme.valueOf(this.theme);
}
@JsonIgnore
public void setTheme(final String theme) {
this.theme = theme;
}
@JsonIgnore
public void setThemeFromEnum(final Theme theme) {
this.theme = theme.toString();
}
@JsonIgnore
public XsollaPaywallConfig createFromJson(String json) throws JsonProcessingException {
return new ObjectMapper().readValue(json, this.getClass());
}
@JsonIgnore
public List createFromJsonList(String json) throws JsonProcessingException {
return new ObjectMapper().readValue(json, new TypeReference>() {});
}
public enum Device {
DESKTOP("DESKTOP"),
MOBILE("MOBILE");
private String value;
Device(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public enum Size {
LARGE("LARGE"),
MEDIUM("MEDIUM"),
SMALL("SMALL");
private String value;
Size(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public enum Theme {
DARK("DARK"),
DEFAULT("DEFAULT"),
DEFAULTDARK("DEFAULT_DARK");
private String value;
Theme(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public static class XsollaPaywallConfigBuilder {
private String device;
private String size;
private String theme;
public XsollaPaywallConfigBuilder device(final String device) {
this.device = device;
return this;
}
public XsollaPaywallConfigBuilder deviceFromEnum(final Device device) {
this.device = device.toString();
return this;
}
public XsollaPaywallConfigBuilder size(final String size) {
this.size = size;
return this;
}
public XsollaPaywallConfigBuilder sizeFromEnum(final Size size) {
this.size = size.toString();
return this;
}
public XsollaPaywallConfigBuilder theme(final String theme) {
this.theme = theme;
return this;
}
public XsollaPaywallConfigBuilder themeFromEnum(final Theme theme) {
this.theme = theme.toString();
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy