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

com.algolia.search.models.rules.TimeRange Maven / Gradle / Ivy

There is a newer version: 3.16.9
Show newest version
package com.algolia.search.models.rules;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;
import java.time.OffsetDateTime;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class TimeRange implements Serializable {

  @JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
  private OffsetDateTime from;

  @JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
  private OffsetDateTime until;

  public TimeRange() {}

  public TimeRange(OffsetDateTime from, OffsetDateTime until) {
    this.from = from;
    this.until = until;
  }

  public OffsetDateTime getFrom() {
    return from;
  }

  public void setFrom(OffsetDateTime from) {
    this.from = from;
  }

  public OffsetDateTime getUntil() {
    return until;
  }

  public void setUntil(OffsetDateTime until) {
    this.until = until;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy