-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#102: Adds DeleteIndexAsync and GetIndexesAsync
- Loading branch information
1 parent
65d8bc0
commit 5876419
Showing
6 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#nullable disable | ||
using System.Collections.Generic; | ||
using CouchDB.Driver.Types; | ||
using Newtonsoft.Json; | ||
|
||
namespace CouchDB.Driver.DTOs | ||
{ | ||
internal class GetIndexesResult | ||
{ | ||
[JsonProperty("indexes")] | ||
public List<IndexInfo> Indexes { get; set; } | ||
} | ||
} | ||
#nullable restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#nullable disable | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#nullable disable | ||
using Newtonsoft.Json; | ||
|
||
namespace CouchDB.Driver.Types | ||
{ | ||
/// <summary> | ||
/// Represent info about the index. | ||
/// </summary> | ||
public class IndexInfo | ||
{ | ||
/// <summary> | ||
/// ID of the design document the index belongs to. | ||
/// </summary> | ||
[JsonProperty("ddoc")] | ||
public string DesignDocument { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the index. | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
} | ||
} | ||
#nullable restore |