-
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
1 parent
512d4df
commit d83f97e
Showing
15 changed files
with
875 additions
and
52 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
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,21 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using BSMS.Core.Enums; | ||
|
||
namespace BSMS.Core.Entities; | ||
|
||
public class BusScheduleEntry | ||
{ | ||
[Key] | ||
public int BusScheduleEntryId { get; set; } | ||
public int BusId { get; set; } | ||
public int RouteId { get; set; } | ||
|
||
public DateTime DepartureTime { get; set; } | ||
public DateTime ArrivalTime { get; set; } | ||
public Direction MoveDirection { get; set; } | ||
public DayOfWeek Day { get; set; } | ||
|
||
public Bus Bus { get; set; } | ||
public Route Route { get; set; } | ||
public Trip? Trip { 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
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,15 +1,16 @@ | ||
using BSMS.Core.Enums; | ||
|
||
namespace BSMS.Core.Entities; | ||
|
||
/// <summary> | ||
/// represent trip history (live) for specific bus on specific route | ||
/// </summary> | ||
public class Trip | ||
{ | ||
public int TripId { get; set; } | ||
public TripStatus Status { get; set; } | ||
public int RouteId { get; set; } | ||
public int BusScheduleEntryId { get; set; } | ||
public DateTime DepartureTime { get; set; } | ||
public DateTime ArrivalTime { get; set; } | ||
|
||
public Route Route { get; set; } | ||
public List<Bus> Buses { get; set; } | ||
public BusScheduleEntry BusScheduleEntry { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace BSMS.Core.Enums; | ||
|
||
public enum Direction | ||
{ | ||
ToDestination = 100, | ||
FromDestination = 200 | ||
} |
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
Oops, something went wrong.