sharee.bike-App/TINKLib/Model/State/IStateInfoMutable.cs

25 lines
945 B
C#
Raw Normal View History

2023-06-06 12:00:24 +02:00
using System;
2021-05-13 20:03:07 +02:00
namespace TINK.Model.State
{
2022-09-06 16:08:19 +02:00
public interface IStateInfoMutable
{
InUseStateEnum Value { get; }
2021-05-13 20:03:07 +02:00
2023-06-06 12:00:24 +02:00
/// <summary> Updates state from web server. </summary>
2022-09-06 16:08:19 +02:00
/// <param name="state">State of the bike.</param>
/// <param name="from">Date time when bike was reserved/ booked.</param>
2023-06-06 12:00:24 +02:00
/// <param name="reservationTimeSpan">Time span for which a bike can be reserved.</param>
/// <param name="mailAddress">Mail address of the one which reserved/ booked.</param>
2022-09-06 16:08:19 +02:00
/// <param name="code">Booking code if bike is booked or reserved.</param>
/// <param name="notifyLevel">Controls whether notify property changed events are fired or not.</param>
void Load(
InUseStateEnum state,
DateTime? from = null,
2023-06-06 12:00:24 +02:00
TimeSpan? reservationTimeSpan = null,
2022-09-06 16:08:19 +02:00
string mailAddress = null,
string code = null,
Bikes.BikeInfoNS.BC.NotifyPropertyChangedLevel notifyLevel = Bikes.BikeInfoNS.BC.NotifyPropertyChangedLevel.All);
}
2021-05-13 20:03:07 +02:00
}