From 955d0cd7c6acc0285367b4c4bc11f957516fac2b Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Thu, 24 Oct 2024 07:40:36 +0000 Subject: [PATCH] fix(specs): update time range number types [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/4023 Co-authored-by: algolia-bot Co-authored-by: Thomas Raffray Co-authored-by: Pierre Millot --- .../java/com/algolia/model/recommend/TimeRange.java | 12 ++++++------ .../java/com/algolia/model/search/TimeRange.java | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/algoliasearch/src/main/java/com/algolia/model/recommend/TimeRange.java b/algoliasearch/src/main/java/com/algolia/model/recommend/TimeRange.java index 74ba6af2b..1187d7f9f 100644 --- a/algoliasearch/src/main/java/com/algolia/model/recommend/TimeRange.java +++ b/algoliasearch/src/main/java/com/algolia/model/recommend/TimeRange.java @@ -11,30 +11,30 @@ public class TimeRange { @JsonProperty("from") - private Integer from; + private Long from; @JsonProperty("until") - private Integer until; + private Long until; - public TimeRange setFrom(Integer from) { + public TimeRange setFrom(Long from) { this.from = from; return this; } /** When the rule should start to be active, in Unix epoch time. */ @javax.annotation.Nonnull - public Integer getFrom() { + public Long getFrom() { return from; } - public TimeRange setUntil(Integer until) { + public TimeRange setUntil(Long until) { this.until = until; return this; } /** When the rule should stop to be active, in Unix epoch time. */ @javax.annotation.Nonnull - public Integer getUntil() { + public Long getUntil() { return until; } diff --git a/algoliasearch/src/main/java/com/algolia/model/search/TimeRange.java b/algoliasearch/src/main/java/com/algolia/model/search/TimeRange.java index b5ebc7ec7..ed0409be5 100644 --- a/algoliasearch/src/main/java/com/algolia/model/search/TimeRange.java +++ b/algoliasearch/src/main/java/com/algolia/model/search/TimeRange.java @@ -11,30 +11,30 @@ public class TimeRange { @JsonProperty("from") - private Integer from; + private Long from; @JsonProperty("until") - private Integer until; + private Long until; - public TimeRange setFrom(Integer from) { + public TimeRange setFrom(Long from) { this.from = from; return this; } /** When the rule should start to be active, in Unix epoch time. */ @javax.annotation.Nonnull - public Integer getFrom() { + public Long getFrom() { return from; } - public TimeRange setUntil(Integer until) { + public TimeRange setUntil(Long until) { this.until = until; return this; } /** When the rule should stop to be active, in Unix epoch time. */ @javax.annotation.Nonnull - public Integer getUntil() { + public Long getUntil() { return until; }