diff --git a/src/Elastic.Clients.Elasticsearch/Api/AsyncSearch/AsyncSearchStatusResponse.cs b/src/Elastic.Clients.Elasticsearch/Api/AsyncSearch/AsyncSearchStatusResponse.cs deleted file mode 100644 index 8a298a535e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/Api/AsyncSearch/AsyncSearchStatusResponse.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. - -using System; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.AsyncSearch; - -public partial class AsyncSearchStatusResponse -{ - [JsonIgnore] - public DateTimeOffset StartTime => StartTimeInMillis.DateTimeOffset; - - [JsonIgnore] - public DateTimeOffset ExpirationTime => ExpirationTimeInMillis.DateTimeOffset; -} diff --git a/src/Elastic.Clients.Elasticsearch/Api/AsyncSearch/GetAsyncSearchResponse.cs b/src/Elastic.Clients.Elasticsearch/Api/AsyncSearch/GetAsyncSearchResponse.cs deleted file mode 100644 index cb7b72d3bb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch/Api/AsyncSearch/GetAsyncSearchResponse.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Licensed to Elasticsearch B.V under one or more agreements. -// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. -// See the LICENSE file in the project root for more information. - -using System; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.AsyncSearch; - -public partial class GetAsyncSearchResponse -{ - [JsonIgnore] - public DateTimeOffset StartTime => StartTimeInMillis.DateTimeOffset; - - [JsonIgnore] - public DateTimeOffset ExpirationTime => ExpirationTimeInMillis.DateTimeOffset; -} diff --git a/src/Elastic.Clients.Elasticsearch/Common/TimeUnit/Time.cs b/src/Elastic.Clients.Elasticsearch/Common/DateTime/Duration.cs similarity index 84% rename from src/Elastic.Clients.Elasticsearch/Common/TimeUnit/Time.cs rename to src/Elastic.Clients.Elasticsearch/Common/DateTime/Duration.cs index 9d7fd801f50..c419e74112d 100644 --- a/src/Elastic.Clients.Elasticsearch/Common/TimeUnit/Time.cs +++ b/src/Elastic.Clients.Elasticsearch/Common/DateTime/Duration.cs @@ -12,10 +12,10 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Represents a time value +/// Represents a duration value. /// -[JsonConverter(typeof(TimeConverter))] -public sealed class Time : IComparable