Skip to content

Commit ddecb1c

Browse files
committed
Renamed CursorResponse to PostCursorResponse
1 parent 6223f98 commit ddecb1c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public async Task PutCursorAsync_ShouldThrow_WhenCursorDoesNotExist()
316316
[Fact]
317317
public async Task PutCursorAsync_ShouldReturnResponseModelWithInterface()
318318
{
319-
CursorResponse<int> postResponse =
319+
PostCursorResponse<int> postResponse =
320320
await _cursorApi.PostCursorAsync<int>("FOR i IN 0..1500 RETURN i");
321321

322322
ICursorResponse<int> putResult =

arangodb-net-standard/CursorApi/CursorApiClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected virtual WebHeaderCollection GetHeaderCollection(CursorHeaderProperties
7878
/// <param name="ttl"></param>
7979
/// <param name="transactionId">Optional. The stream transaction Id.</param>
8080
/// <returns></returns>
81-
public virtual async Task<CursorResponse<T>> PostCursorAsync<T>(
81+
public virtual async Task<PostCursorResponse<T>> PostCursorAsync<T>(
8282
string query,
8383
Dictionary<string, object> bindVars = null,
8484
PostCursorOptions options = null,
@@ -115,7 +115,7 @@ public virtual async Task<CursorResponse<T>> PostCursorAsync<T>(
115115
/// <param name="postCursorBody">Object encapsulating options and parameters of the query.</param>
116116
/// <param name="headerProperties">Optional. Additional Header properties.</param>
117117
/// <returns></returns>
118-
public virtual async Task<CursorResponse<T>> PostCursorAsync<T>(
118+
public virtual async Task<PostCursorResponse<T>> PostCursorAsync<T>(
119119
PostCursorBody postCursorBody, CursorHeaderProperties headerProperties = null)
120120
{
121121
var content = GetContent(postCursorBody, new ApiClientSerializationOptions(true, true));
@@ -125,7 +125,7 @@ public virtual async Task<CursorResponse<T>> PostCursorAsync<T>(
125125
if (response.IsSuccessStatusCode)
126126
{
127127
var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
128-
return DeserializeJsonFromStream<CursorResponse<T>>(stream);
128+
return DeserializeJsonFromStream<PostCursorResponse<T>>(stream);
129129
}
130130

131131
throw await GetApiErrorException(response).ConfigureAwait(false);

arangodb-net-standard/CursorApi/ICursorApiClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface ICursorApiClient
2323
/// <param name="ttl"></param>
2424
/// <param name="transactionId">Optional. The stream transaction Id.</param>
2525
/// <returns></returns>
26-
Task<CursorResponse<T>> PostCursorAsync<T>(
26+
Task<PostCursorResponse<T>> PostCursorAsync<T>(
2727
string query,
2828
Dictionary<string, object> bindVars = null,
2929
PostCursorOptions options = null,
@@ -40,7 +40,7 @@ Task<CursorResponse<T>> PostCursorAsync<T>(
4040
/// <param name="postCursorBody">Object encapsulating options and parameters of the query.</param>
4141
/// <param name="headerProperties">Optional. Additional Header properties.</param>
4242
/// <returns></returns>
43-
Task<CursorResponse<T>> PostCursorAsync<T>(
43+
Task<PostCursorResponse<T>> PostCursorAsync<T>(
4444
PostCursorBody postCursorBody, CursorHeaderProperties headerProperties = null);
4545

4646
/// <summary>

arangodb-net-standard/CursorApi/Models/CursorResponse.cs renamed to arangodb-net-standard/CursorApi/Models/PostCursorResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ArangoDBNetStandard.CursorApi.Models
77
/// Response from ArangoDB when creating a new cursor.
88
/// </summary>
99
/// <typeparam name="T"></typeparam>
10-
public class CursorResponse<T> : ICursorResponse<T>
10+
public class PostCursorResponse<T> : ICursorResponse<T>
1111
{
1212
/// <summary>
1313
/// A flag to indicate that an error occurred (false in this case)
@@ -56,4 +56,4 @@ public class CursorResponse<T> : ICursorResponse<T>
5656
/// </summary>
5757
public string Id { get; set; }
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)