mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 22:18:09 +01:00
27 lines
702 B
C#
27 lines
702 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace TrainSearchWorker.Models;
|
|
|
|
public record Journey
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public required string Id { get; init; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public required string Type { get; init; }
|
|
|
|
[JsonPropertyName("departure")]
|
|
public required string Departure { get; init; }
|
|
|
|
[JsonPropertyName("arrival")]
|
|
public required string Arrival { get; init; }
|
|
|
|
[JsonPropertyName("departure_time")]
|
|
public required string DepartureTime { get; init; }
|
|
|
|
[JsonPropertyName("arrival_time")]
|
|
public required string ArrivalTime { get; init; }
|
|
|
|
[JsonPropertyName("price")]
|
|
public required decimal Price { get; init; }
|
|
} |