sharee.bike-App/TINKLib/Model/Connector/Command/UserFeedbackDto.cs

33 lines
692 B
C#
Raw Normal View History

2023-04-19 12:14:14 +02:00
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>
2023-04-19 12:14:14 +02:00
/// Holds the current charging level of the battery in bars, null if unknown.
2022-09-06 16:08:19 +02:00
/// </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
}