mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 05:47:28 +02:00
Version 3.0.370
This commit is contained in:
parent
f5cf9bb22f
commit
bdb2dec1c1
233 changed files with 10252 additions and 6779 deletions
|
@ -203,17 +203,7 @@ namespace TINK.Model.Connector
|
|||
throw new ArgumentNullException($"Can not update locking state of bike. Unexpected booking state {bike.State} detected.");
|
||||
}
|
||||
|
||||
lock_state? state = null;
|
||||
switch (bike.LockInfo.State)
|
||||
{
|
||||
case LockingState.Open:
|
||||
state = lock_state.unlocked;
|
||||
break;
|
||||
|
||||
case LockingState.Closed:
|
||||
state = lock_state.locked;
|
||||
break;
|
||||
}
|
||||
lock_state? state = RequestBuilderHelper.GetLockState(bike.LockInfo.State);
|
||||
|
||||
if (!state.HasValue)
|
||||
{
|
||||
|
|
|
@ -392,6 +392,7 @@ namespace TINK.Model.Connector
|
|||
public static bool GetIsFeedbackPending(this BikeInfoAvailable bike)
|
||||
=> bike.co2saving != null;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the count of bikes available at station.
|
||||
/// </summary>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using TINK.Model.MiniSurvey;
|
||||
using TINK.Repository.Response;
|
||||
|
@ -13,7 +13,8 @@ namespace TINK.Model.Connector.Updater
|
|||
{
|
||||
var bookingFinished = new BookingFinishedModel
|
||||
{
|
||||
Co2Saving = response?.co2saving
|
||||
Co2Saving = response?.co2saving,
|
||||
RentalCosts = "0 €",
|
||||
};
|
||||
|
||||
if (response?.user_miniquery == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue