2021-05-13 20:03:07 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace TINK.Model.State
|
|
|
|
|
{
|
|
|
|
|
public interface IStateInfoMutable
|
|
|
|
|
{
|
|
|
|
|
InUseStateEnum Value { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary> Updates state from webserver. </summary>
|
2022-04-25 22:15:15 +02:00
|
|
|
|
/// <param name="state">State of the bike.</param>
|
|
|
|
|
/// <param name="from">Date time when bike was reserved/ booked.</param>
|
|
|
|
|
/// <param name="mailAddress">Mailaddress of the one which reserved/ booked.</param>
|
|
|
|
|
/// <param name="code">Booking code if bike is booked or reserved.</param>
|
2021-05-13 20:03:07 +02:00
|
|
|
|
/// <param name="notifyLevel">Controls whether notify property changed events are fired or not.</param>
|
|
|
|
|
void Load(
|
2022-04-25 22:15:15 +02:00
|
|
|
|
InUseStateEnum state,
|
|
|
|
|
DateTime? from = null,
|
|
|
|
|
string mailAddress = null,
|
|
|
|
|
string code = null,
|
2021-05-13 20:03:07 +02:00
|
|
|
|
Bikes.Bike.BC.NotifyPropertyChangedLevel notifyLevel = Bikes.Bike.BC.NotifyPropertyChangedLevel.All);
|
|
|
|
|
}
|
|
|
|
|
}
|