mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-28 07:16:27 +02:00
Version 3.0.371
This commit is contained in:
parent
bdb2dec1c1
commit
6d22dbf40b
145 changed files with 2289 additions and 764 deletions
|
@ -7,16 +7,16 @@ namespace TINK.Model.Connector.Updater
|
|||
{
|
||||
public static class DriveFactory
|
||||
{
|
||||
public static Drive Create(this BikeType bikeType)
|
||||
public static DriveMutable Create(this BikeType bikeType)
|
||||
{
|
||||
if (string.IsNullOrEmpty(bikeType?.engine?.manufacturer))
|
||||
{
|
||||
// Bike is has no engine
|
||||
return new Drive();
|
||||
return new DriveMutable();
|
||||
}
|
||||
|
||||
// Bike is a pedelec.
|
||||
return new Drive(
|
||||
return new DriveMutable(
|
||||
new Engine(bikeType?.engine?.manufacturer),
|
||||
new Battery.Builder
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue