1+ // Licensed to Elasticsearch B.V under one or more agreements.
2+ // Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+ // See the LICENSE file in the project root for more information
4+
15using System ;
26using System . Runtime . Serialization ;
37using Elasticsearch . Net . Utf8Json ;
48
59namespace Nest
610{
711 [ InterfaceDataContract ]
8- public interface IAsyncSearchResponse < TDocument > : IResponse where TDocument : class
12+ public interface IAsyncSearchResponse : IResponse
913 {
1014 [ DataMember ( Name = "id" ) ]
1115 string Id { get ; }
@@ -27,14 +31,11 @@ public interface IAsyncSearchResponse<TDocument> : IResponse where TDocument : c
2731
2832 [ IgnoreDataMember ]
2933 DateTimeOffset ExpirationTime { get ; }
30-
31- [ DataMember ( Name = "response" ) ]
32- AsyncSearch < TDocument > Response { get ; }
3334 }
3435
3536 [ DataContract ]
36- public abstract class AsyncSearchResponseBase < TDocument >
37- : ResponseBase , IAsyncSearchResponse < TDocument > where TDocument : class
37+ public abstract class AsyncSearchResponseBase
38+ : ResponseBase , IAsyncSearchResponse
3839 {
3940 [ DataMember ( Name = "id" ) ]
4041 public string Id { get ; internal set ; }
@@ -56,8 +57,5 @@ public abstract class AsyncSearchResponseBase<TDocument>
5657
5758 [ IgnoreDataMember ]
5859 public DateTimeOffset ExpirationTime => DateTimeUtil . UnixEpoch . AddMilliseconds ( ExpirationTimeInMilliseconds ) ;
59-
60- [ DataMember ( Name = "response" ) ]
61- public AsyncSearch < TDocument > Response { get ; internal set ; }
6260 }
6361}
0 commit comments