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

com.testdroid.api.model.APIUserPreference Maven / Gradle / Ivy

package com.testdroid.api.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.testdroid.api.APIEntity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

/**
 * @author Damian Sniezek 
 */
@JsonIgnoreProperties(value = {"id"})
public class APIUserPreference extends APIEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long httpSessionMaxInactiveInterval;

    private Long defaultHttpSessionMaxInactiveInterval;

    public void setHttpSessionMaxInactiveInterval(Long httpSessionMaxInactiveInterval) {
        this.httpSessionMaxInactiveInterval = httpSessionMaxInactiveInterval;
    }

    public Long getHttpSessionMaxInactiveInterval() {
        return httpSessionMaxInactiveInterval;
    }

    public void setDefaultHttpSessionMaxInactiveInterval(Long defaultHttpSessionMaxInactiveInterval) {
        this.defaultHttpSessionMaxInactiveInterval = defaultHttpSessionMaxInactiveInterval;
    }

    public Long getDefaultHttpSessionMaxInactiveInterval() {
        return defaultHttpSessionMaxInactiveInterval;
    }

    @Override
    @JsonIgnore
    protected  void clone(T from) {
        APIUserPreference prototype = (APIUserPreference) from;
        cloneBase(from);
        this.httpSessionMaxInactiveInterval = prototype.httpSessionMaxInactiveInterval;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        APIUserPreference that = (APIUserPreference) o;
        return Objects.equals(httpSessionMaxInactiveInterval, that.httpSessionMaxInactiveInterval);
    }

    @Override
    public int hashCode() {
        return Objects.hash(httpSessionMaxInactiveInterval);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy