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

com.silanis.esl.api.model.ExpiryTimeConfiguration Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.api.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class ExpiryTimeConfiguration extends Model {

    // Dirty Flag Constants
    @JsonIgnore
    private static final String MAXIMUM_REMAINING_DAYS = "maximumRemainingDays";
    @JsonIgnore
    private static final String REMAINING_DAYS = "remainingDays";

    private int maximumRemainingDays = 0;
    private int remainingDays = 0;

    public ExpiryTimeConfiguration() {
    }

    public ExpiryTimeConfiguration(int maximumRemainingDays, int remainingDays) {
        setMaximumRemainingDays(maximumRemainingDays);
        setRemainingDays(remainingDays);
    }

    public int getMaximumRemainingDays() {
        return maximumRemainingDays;
    }

    public ExpiryTimeConfiguration setMaximumRemainingDays(int value) {
        this.maximumRemainingDays = value;
        setDirty(MAXIMUM_REMAINING_DAYS);
        return this;
    }

    public int getRemainingDays() {
        return remainingDays;
    }

    public ExpiryTimeConfiguration setRemainingDays(int value) {
        this.remainingDays = value;
        setDirty(REMAINING_DAYS);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy