|
1 | | -using Newtonsoft.Json; |
2 | | - |
3 | | -namespace Nest |
| 1 | +using Newtonsoft.Json; |
| 2 | + |
| 3 | +namespace Nest |
4 | 4 | { |
5 | | - public interface IUpdateResponse : IResponse |
6 | | - { |
7 | | - bool OK { get; } |
8 | | - ShardsMetaData ShardsHit { get; } |
9 | | - string Index { get; } |
10 | | - string Type { get; } |
11 | | - string Id { get; } |
12 | | - string Version { get; } |
13 | | - } |
| 5 | + public interface IUpdateResponse : IResponse |
| 6 | + { |
| 7 | + bool OK { get; } |
| 8 | + ShardsMetaData ShardsHit { get; } |
| 9 | + string Index { get; } |
| 10 | + string Type { get; } |
| 11 | + string Id { get; } |
| 12 | + string Version { get; } |
| 13 | + } |
14 | 14 |
|
15 | | - [JsonObject] |
| 15 | + [JsonObject] |
16 | 16 | public class UpdateResponse : BaseResponse, IUpdateResponse |
17 | | - { |
18 | | - [JsonProperty(PropertyName = "ok")] |
19 | | - public bool OK { get; private set; } |
20 | | - |
21 | | - [JsonProperty(PropertyName = "_shards")] |
22 | | - public ShardsMetaData ShardsHit { get; private set; } |
23 | | - |
24 | | - [JsonProperty(PropertyName = "_index")] |
25 | | - public string Index { get; private set; } |
26 | | - [JsonProperty(PropertyName = "_type")] |
27 | | - public string Type { get; private set; } |
28 | | - [JsonProperty(PropertyName = "_id")] |
29 | | - public string Id { get; private set; } |
30 | | - [JsonProperty(PropertyName = "_version")] |
31 | | - public string Version { get; private set; } |
32 | | - } |
33 | | -} |
| 17 | + { |
| 18 | + [JsonProperty(PropertyName = "ok")] |
| 19 | + public bool OK { get; private set; } |
| 20 | + |
| 21 | + [JsonProperty(PropertyName = "_shards")] |
| 22 | + public ShardsMetaData ShardsHit { get; private set; } |
| 23 | + |
| 24 | + [JsonProperty(PropertyName = "_index")] |
| 25 | + public string Index { get; private set; } |
| 26 | + [JsonProperty(PropertyName = "_type")] |
| 27 | + public string Type { get; private set; } |
| 28 | + [JsonProperty(PropertyName = "_id")] |
| 29 | + public string Id { get; private set; } |
| 30 | + [JsonProperty(PropertyName = "_version")] |
| 31 | + public string Version { get; private set; } |
| 32 | + } |
| 33 | +} |
0 commit comments