mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-15 10:06:21 +08:00
32 lines
773 B
C#
32 lines
773 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CRSim.Core.Models
|
|
{
|
|
public class Station
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public List<WaitingArea> WaitingAreas { get; set; } = [];
|
|
|
|
[JsonIgnore]
|
|
public List<string> TicketChecks
|
|
{
|
|
get
|
|
{
|
|
List<string> ticketChecks = [];
|
|
ticketChecks.AddRange([.. WaitingAreas.SelectMany(wa => wa.TicketChecks)]);
|
|
return ticketChecks;
|
|
}
|
|
}
|
|
|
|
public List<StationStop> StationStops { get; set; } = [];
|
|
|
|
public List<string> Platforms { get; set; } = [];
|
|
}
|
|
}
|