2022-11-09 05:17:39 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using MongoDB.Bson;
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
2023-09-03 04:13:26 +03:00
|
|
|
using Newtonsoft.Json;
|
2022-11-09 05:17:39 +01:00
|
|
|
|
|
|
|
namespace Server.Models.Database;
|
|
|
|
|
|
|
|
public record StationListing(
|
|
|
|
[property: BsonId]
|
|
|
|
[property: BsonRepresentation(BsonType.ObjectId)]
|
2023-09-03 04:13:26 +03:00
|
|
|
[property: JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
2022-11-09 05:17:39 +01:00
|
|
|
string? Id,
|
|
|
|
string Name,
|
|
|
|
List<string> StoppedAtBy
|
|
|
|
) {
|
2022-11-09 07:05:32 +01:00
|
|
|
public StationListing() : this(null, "", new()) { }
|
2022-11-09 05:17:39 +01:00
|
|
|
public StationListing(string name, List<string> stoppedAtBy) : this(null, name, stoppedAtBy) { }
|
|
|
|
}
|