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

org.teamapps.dto.UiClientInfo Maven / Gradle / Ivy

There is a newer version: 0.9.194
Show newest version
package org.teamapps.dto;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;

/**
 * THIS IS GENERATED CODE!
 * PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type", defaultImpl = UiClientInfo.class)
public class UiClientInfo implements UiObject {


	protected String ip;
	protected String userAgentString;
	protected String preferredLanguageIso;
	protected int screenWidth;
	protected int screenHeight;
	protected int viewPortWidth;
	protected int viewPortHeight;
	protected boolean highDensityScreen;
	protected String timezoneIana;
	protected int timezoneOffsetMinutes;
	protected List clientTokens;
	protected UiLocation location;

	@JsonSerialize(using = ObjectSerializer.class)
	@JsonDeserialize(using = ObjectDeserializer.class)
	protected Map clientParameters;
	protected String teamAppsVersion;

	public UiClientInfo() {
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_CLIENT_INFO;
	}

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("ip=" + ip).append(", ")
				.append("userAgentString=" + userAgentString).append(", ")
				.append("preferredLanguageIso=" + preferredLanguageIso).append(", ")
				.append("screenWidth=" + screenWidth).append(", ")
				.append("screenHeight=" + screenHeight).append(", ")
				.append("viewPortWidth=" + viewPortWidth).append(", ")
				.append("viewPortHeight=" + viewPortHeight).append(", ")
				.append("highDensityScreen=" + highDensityScreen).append(", ")
				.append("timezoneIana=" + timezoneIana).append(", ")
				.append("timezoneOffsetMinutes=" + timezoneOffsetMinutes).append(", ")
				.append("clientTokens=" + clientTokens).append(", ")
				.append("clientParameters=" + clientParameters).append(", ")
				.append("teamAppsVersion=" + teamAppsVersion).append(", ")
				.append(location != null ? "location={" + location.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("ip")
	public String getIp() {
		return ip;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("userAgentString")
	public String getUserAgentString() {
		return userAgentString;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("preferredLanguageIso")
	public String getPreferredLanguageIso() {
		return preferredLanguageIso;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("screenWidth")
	public int getScreenWidth() {
		return screenWidth;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("screenHeight")
	public int getScreenHeight() {
		return screenHeight;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("viewPortWidth")
	public int getViewPortWidth() {
		return viewPortWidth;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("viewPortHeight")
	public int getViewPortHeight() {
		return viewPortHeight;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("highDensityScreen")
	public boolean getHighDensityScreen() {
		return highDensityScreen;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("timezoneIana")
	public String getTimezoneIana() {
		return timezoneIana;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("timezoneOffsetMinutes")
	public int getTimezoneOffsetMinutes() {
		return timezoneOffsetMinutes;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("clientTokens")
	public List getClientTokens() {
		return clientTokens;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("location")
	public UiLocation getLocation() {
		return location;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("clientParameters")
	public Map getClientParameters() {
		return clientParameters;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("teamAppsVersion")
	public String getTeamAppsVersion() {
		return teamAppsVersion;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("ip")
	public UiClientInfo setIp(String ip) {
		this.ip = ip;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("userAgentString")
	public UiClientInfo setUserAgentString(String userAgentString) {
		this.userAgentString = userAgentString;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("preferredLanguageIso")
	public UiClientInfo setPreferredLanguageIso(String preferredLanguageIso) {
		this.preferredLanguageIso = preferredLanguageIso;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("screenWidth")
	public UiClientInfo setScreenWidth(int screenWidth) {
		this.screenWidth = screenWidth;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("screenHeight")
	public UiClientInfo setScreenHeight(int screenHeight) {
		this.screenHeight = screenHeight;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("viewPortWidth")
	public UiClientInfo setViewPortWidth(int viewPortWidth) {
		this.viewPortWidth = viewPortWidth;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("viewPortHeight")
	public UiClientInfo setViewPortHeight(int viewPortHeight) {
		this.viewPortHeight = viewPortHeight;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("highDensityScreen")
	public UiClientInfo setHighDensityScreen(boolean highDensityScreen) {
		this.highDensityScreen = highDensityScreen;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("timezoneIana")
	public UiClientInfo setTimezoneIana(String timezoneIana) {
		this.timezoneIana = timezoneIana;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("timezoneOffsetMinutes")
	public UiClientInfo setTimezoneOffsetMinutes(int timezoneOffsetMinutes) {
		this.timezoneOffsetMinutes = timezoneOffsetMinutes;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("clientTokens")
	public UiClientInfo setClientTokens(List clientTokens) {
		this.clientTokens = clientTokens;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("location")
	public UiClientInfo setLocation(UiLocation location) {
		this.location = location;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("clientParameters")
	public UiClientInfo setClientParameters(Map clientParameters) {
		this.clientParameters = clientParameters;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("teamAppsVersion")
	public UiClientInfo setTeamAppsVersion(String teamAppsVersion) {
		this.teamAppsVersion = teamAppsVersion;
		return this;
	}




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy