-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# Rejseplanen2Mqtt | ||
# Rejseplanen2Mqtt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
namespace Rejseplanen2Mqtt.Client; | ||
using NodaTime; | ||
|
||
namespace Rejseplanen2Mqtt.Client; | ||
|
||
public class TripRequestOptions | ||
{ | ||
public string OriginId { get; set; } = null!; | ||
public string DestId { get; set; } = null!; | ||
public LocalDate? Date { get; set; } | ||
public LocalTime? Time { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
namespace Rejseplanen2Mqtt.Client; | ||
|
||
public class RejseplanenToMqttOptions | ||
{ | ||
public List<TripToInform> TripsToPublish { get; set; } = [ | ||
new TripToInform { | ||
Name = "Aarhus to Hedensted", | ||
OriginId = "8600053", // Aarhus H | ||
DestId = "8600071", // Hedensted St. | ||
Time = "13:30" | ||
}, | ||
new TripToInform { | ||
Name = "Hedensted to Aarhus", | ||
OriginId = "8600071", // Hedensted St. | ||
DestId = "8600053", // Aarhus H | ||
Time = "6:50" | ||
}, | ||
]; | ||
} |