forked from ArangoDB-Community/arangodb-net-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inconsistent usage of T and U types for body and response.
- Loading branch information
Showing
7 changed files
with
49 additions
and
25 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
19 changes: 15 additions & 4 deletions
19
arangodb-net-standard/DocumentApi/Models/DeleteDocumentsDocumentResponse.cs
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,13 +1,24 @@ | ||
using System.Net; | ||
|
||
namespace ArangoDBNetStandard.DocumentApi.Models | ||
namespace ArangoDBNetStandard.DocumentApi.Models | ||
{ | ||
public class DeleteDocumentsDocumentResponse<T>: DeleteDocumentResponse<T> | ||
/// <summary> | ||
/// Represents the response for one document when deleting multiple document. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the deserialized old document object when requested.</typeparam> | ||
public class DeleteDocumentsDocumentResponse<T> : DeleteDocumentResponse<T> | ||
{ | ||
/// <summary> | ||
/// Indicates whether an error occurred. | ||
/// </summary> | ||
public bool Error { get; set; } | ||
|
||
/// <summary> | ||
/// ArangoDB error message. | ||
/// </summary> | ||
public string ErrorMessage { get; set; } | ||
|
||
/// <summary> | ||
/// ArangoDB error number. | ||
/// </summary> | ||
public int ErrorNum { get; set; } | ||
} | ||
} |
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
21 changes: 16 additions & 5 deletions
21
arangodb-net-standard/DocumentApi/Models/PatchDocumentsResponse.cs
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,13 +1,24 @@ | ||
namespace ArangoDBNetStandard.DocumentApi.Models | ||
{ | ||
public class PatchDocumentsResponse<U> : DocumentBase | ||
/// <summary> | ||
/// Represents the response for one document when updating multiple document. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the deserialized new/old document object when requested.</typeparam> | ||
public class PatchDocumentsResponse<T> : PatchDocumentResponse<T> | ||
{ | ||
public U New { get; set; } | ||
|
||
public U Old { get; set; } | ||
|
||
/// <summary> | ||
/// Indicates whether an error occurred. | ||
/// </summary> | ||
public bool Error { get; set; } | ||
|
||
/// <summary> | ||
/// ArangoDB error message. | ||
/// </summary> | ||
public string ErrorMessage { get; set; } | ||
|
||
/// <summary> | ||
/// ArangoDB error number. | ||
/// </summary> | ||
public int ErrorNum { get; set; } | ||
} | ||
} |
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