ex-inh-05-transport/Transport/Rickshaw.cs
github-classroom[bot] dcabbbaf15
Initial commit
2025-02-25 17:10:54 +00:00

32 lines
1 KiB
C#

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!;
}
}