Initial commit
This commit is contained in:
commit
dcabbbaf15
26 changed files with 5246 additions and 0 deletions
32
Transport/Rickshaw.cs
Normal file
32
Transport/Rickshaw.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
namespace Transport;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a rickshaw which can be rented for a ride
|
||||
/// </summary>
|
||||
/// <inheritdoc cref="Vehicle" />
|
||||
public sealed class Rickshaw : Vehicle
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of the worksheet which contains the basic information of all rickshaws
|
||||
/// </summary>
|
||||
public const string WorksheetName = $"{nameof(Rickshaw)}s";
|
||||
|
||||
private Rickshaw(int id, Color color, int weight, double initialMileage)
|
||||
: base(id, color, weight, initialMileage) { }
|
||||
|
||||
public override decimal BasePrice => -1; // TODO
|
||||
public override decimal PricePerKM => -1; // TODO
|
||||
public override decimal CostPerKM => -1; // TODO
|
||||
|
||||
/// <summary>
|
||||
/// Creates a list of rickshaws by parsing the data from the given worksheet.
|
||||
/// Invalid rows are skipped.
|
||||
/// </summary>
|
||||
/// <param name="worksheet">Worksheet to process</param>
|
||||
/// <returns>A list of rickshaws</returns>
|
||||
public static List<Rickshaw> CreateFromWorksheet(IXLWorksheet worksheet)
|
||||
{
|
||||
// TODO
|
||||
return null!;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue