You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
565 B
18 lines
565 B
using System.Collections.Generic; |
|
using MongoDB.Bson; |
|
using MongoDB.Bson.Serialization.Attributes; |
|
using Newtonsoft.Json; |
|
|
|
namespace Server.Models.Database; |
|
|
|
public record StationListing( |
|
[property: BsonId] |
|
[property: BsonRepresentation(BsonType.ObjectId)] |
|
[property: JsonProperty(NullValueHandling = NullValueHandling.Ignore)] |
|
string? Id, |
|
string Name, |
|
List<string> StoppedAtBy |
|
) { |
|
public StationListing() : this(null, "", new()) { } |
|
public StationListing(string name, List<string> stoppedAtBy) : this(null, name, stoppedAtBy) { } |
|
}
|
|
|