2021-05-13 20:03:07 +02:00
|
|
|
|
|
|
|
|
|
namespace TINK.Model.Connector
|
|
|
|
|
{
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#if USCSHARP9
|
2021-05-13 20:03:07 +02:00
|
|
|
|
public record UserFeedbackDto : ICommand.IUserFeedback
|
|
|
|
|
{
|
2021-06-26 20:57:55 +02:00
|
|
|
|
public string BikeId { get; init; }
|
2021-05-13 20:03:07 +02:00
|
|
|
|
public bool IsBikeBroken { get; init; }
|
|
|
|
|
public string Message { get; init; }
|
|
|
|
|
}
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#else
|
|
|
|
|
#if USCSHARP9
|
|
|
|
|
public class UserFeedbackDto : ICommand.IUserFeedback
|
|
|
|
|
#else
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public class UserFeedbackDto : IUserFeedback
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#endif
|
2022-09-06 16:08:19 +02:00
|
|
|
|
{
|
|
|
|
|
public string BikeId { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the current chargeing level of the battery in bars, null if unkonwn.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? CurrentChargeBars { get; set; }
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public bool IsBikeBroken { get; set; }
|
2021-06-26 20:57:55 +02:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public string Message { get; set; }
|
2022-08-30 15:42:25 +02:00
|
|
|
|
|
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
2021-06-26 20:57:55 +02:00
|
|
|
|
#endif
|
2021-05-13 20:03:07 +02:00
|
|
|
|
}
|