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

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

The 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 = INIT_OK.class)
public class INIT_OK extends AbstractServerMessage implements UiObject {


	protected int minRequestedCommands = 5;
	protected int maxRequestedCommands = 20;
	protected int sentEventsBufferSize = 500;
	protected long keepaliveInterval = 25000;

	/**
	 * @deprecated Only for Jackson deserialization. Use the other constructor instead.
	 */
	@Deprecated
	public INIT_OK() {
		// default constructor for Jackson
	}

	public INIT_OK(int minRequestedCommands, int maxRequestedCommands, int sentEventsBufferSize, long keepaliveInterval) {
		super();
		this.minRequestedCommands = minRequestedCommands;
		this.maxRequestedCommands = maxRequestedCommands;
		this.sentEventsBufferSize = sentEventsBufferSize;
		this.keepaliveInterval = keepaliveInterval;
	}

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

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("minRequestedCommands=" + minRequestedCommands).append(", ")
				.append("maxRequestedCommands=" + maxRequestedCommands).append(", ")
				.append("sentEventsBufferSize=" + sentEventsBufferSize).append(", ")
				.append("keepaliveInterval=" + keepaliveInterval)
				.toString();
	}

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

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("keepaliveInterval")
	public long getKeepaliveInterval() {
		return keepaliveInterval;
	}





}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy