mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
tcloud compatibility, dotnet bug fixes
This commit is contained in:
17
enterprise/Models/BookTrainsResponse.cs
Normal file
17
enterprise/Models/BookTrainsResponse.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace TrainSearchWorker.Models;
|
||||
|
||||
public record BookTrainsResponse
|
||||
{
|
||||
[JsonPropertyName("booking_reference")]
|
||||
public required string BookingReference { get; init; }
|
||||
|
||||
// If the API now returns train_ids as an array, use List<string>
|
||||
[JsonPropertyName("train_ids")]
|
||||
public required List<string> TrainIds { get; init; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public required string Status { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user