Skip to content

Commit

Permalink
nats-io#636 - JetStream Batch Get Client support
Browse files Browse the repository at this point in the history
* Modify StreamMsgBatchGetRequest
  • Loading branch information
Ivandemidov00 committed Nov 23, 2024
1 parent 95a495f commit c633869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/NATS.Client.JetStream/Models/StreamMsgBatchGetRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public record StreamMsgBatchGetRequest
/// </summary>
[JsonPropertyName("start_time")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[Range(ulong.MinValue, ulong.MaxValue)]
public DateTime StartTime { get; set; }
public DateTimeOffset StartTime { get; set; }

/// <summary>
/// The subject used filter messages that should be returned
Expand All @@ -60,7 +59,6 @@ public record StreamMsgBatchGetRequest
/// </summary>
[JsonPropertyName("multi_last")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[Range(ulong.MinValue, ulong.MaxValue)]
public string[] LastBySubjects { get; set; } = [];

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/NATS.Client.JetStream/NatsJSJsonSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public static class NatsJSJsonSerializer<T>
[JsonSerializable(typeof(StreamMsgDeleteResponse))]
[JsonSerializable(typeof(StreamMsgGetRequest))]
[JsonSerializable(typeof(StreamMsgGetResponse))]
[JsonSerializable(typeof(StreamMsgBatchGetRequest))]
[JsonSerializable(typeof(StreamNamesRequest))]
[JsonSerializable(typeof(StreamNamesResponse))]
[JsonSerializable(typeof(StreamPurgeRequest))]
Expand Down

0 comments on commit c633869

Please sign in to comment.