mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 02:26:29 +01:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using TINK.Model.Bikes;
|
|
using TINK.Model.Stations;
|
|
|
|
namespace TINK.Model.Services.CopriApi
|
|
{
|
|
/// <summary>
|
|
/// Holds stations and bikes.
|
|
/// </summary>
|
|
public class StationsAndBikesContainer
|
|
{
|
|
/// <summary>
|
|
/// Holds station and bikes.
|
|
/// </summary>
|
|
/// <param name="stations">Stations information which contains some information about bikes available at each station (bike count, ...).</param>
|
|
/// <param name="bikesOccupied"></param>
|
|
public StationsAndBikesContainer(StationDictionary stations, BikeCollection bikesOccupied)
|
|
{
|
|
StationsAll = stations;
|
|
BikesOccupied = bikesOccupied;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Holds all stations.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Since copri version writing <see cref="StationType"/> (>= 4.1.23.03) stations contain bikes available information.
|
|
/// Prior to this copri version bikes available were part of <see cref="BikesOccupied"/>
|
|
/// </remarks>
|
|
public StationDictionary StationsAll { get; }
|
|
|
|
/// <summary>
|
|
/// Holds bikes occupied (i.e. bike reserved or booked).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Up to copri version writing <see cref="StationType"/> (>= 4.1.23.03) bike available were contained beside bikes occupied.
|
|
/// </remarks>
|
|
public BikeCollection BikesOccupied { get; }
|
|
}
|
|
}
|