Skip to content

Commit

Permalink
add more unknown devices + unknwn distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pohl committed Jul 9, 2022
1 parent 1aead68 commit 7d90093
Show file tree
Hide file tree
Showing 25 changed files with 678 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Device/CycplusDeviceTrait.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

use Runalyze\Devices\Distributor\DistributorProfile;

trait CycplusDeviceTrait
{
public function getDistributorEnum()
{
return DistributorProfile::CYCPLUS;
}
}
32 changes: 32 additions & 0 deletions src/Device/CycplusM1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class CycplusM1 extends AbstractDevice
{
use BrytonDeviceTrait;

public function getEnum()
{
return DeviceProfile::CYCPLUS_M1;
}

public function getName()
{
return 'M1';
}

public function hasBarometer()
{
return true;
}
}
32 changes: 32 additions & 0 deletions src/Device/CycplusM2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class CycplusM2 extends AbstractDevice
{
use BrytonDeviceTrait;

public function getEnum()
{
return DeviceProfile::CYCPLUS_M2;
}

public function getName()
{
return 'M2';
}

public function hasBarometer()
{
return true;
}
}
22 changes: 22 additions & 0 deletions src/Device/DabuziduoDeviceTrait.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

use Runalyze\Devices\Distributor\DistributorProfile;

trait DabuziduoDeviceTrait
{
public function getDistributorEnum()
{
return DistributorProfile::DABUZIDUO;
}
}
32 changes: 32 additions & 0 deletions src/Device/DabuziduoXossGN3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class DabuziduoXossGN3 extends AbstractDevice
{
use DabuziduoDeviceTrait;

public function getEnum()
{
return DeviceProfile::DABUZIDUO_XOSS_G_N_3;
}

public function getName()
{
return 'XOSS G N3';
}

public function hasBarometer()
{
return true;
}
}
32 changes: 32 additions & 0 deletions src/Device/DabuziduoXossGN4.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class DabuziduoXossGN4 extends AbstractDevice
{
use DabuziduoDeviceTrait;

public function getEnum()
{
return DeviceProfile::DABUZIDUO_XOSS_G_N_4;
}

public function getName()
{
return 'XOSS G N4';
}

public function hasBarometer()
{
return true;
}
}
30 changes: 30 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -1673,4 +1673,34 @@ class DeviceProfile extends AbstractEnum

/** @var int */
const GARMIN_EDGE_1040_SOLAR = 550;

/** @var int */
const GARMIN_FORERUNNER_255 = 551;

/** @var int */
const GARMIN_FORERUNNER_255_S = 552;

/** @var int */
const GARMIN_INSTINCT_2_SOLAR_ONE_PIECE_LUFFY = 553;

/** @var int */
const CYCPLUS_M1 = 554;

/** @var int */
const CYCPLUS_M2 = 555;

/** @var int */
const DABUZIDUO_XOSS_G_N_3 = 556;

/** @var int */
const DABUZIDUO_XOSS_G_N_4 = 557;

/** @var int */
const SUUNTO_D_4_I = 558;

/** @var int */
const FITCARE_B_C_200 = 559;

/** @var int */
const GARMIN_D_2_DELTA_S = 560;
}
33 changes: 33 additions & 0 deletions src/Device/FitcareBC200.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class FitcareBC200 extends AbstractDevice
{
use FitcareDeviceTrait;

public function getEnum()
{
return DeviceProfile::FITCARE_B_C_200;
}

public function getName()
{
return 'BC200';
}

public function hasBarometer()
{
//Not sure
return false;
}
}
22 changes: 22 additions & 0 deletions src/Device/FitcareDeviceTrait.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

use Runalyze\Devices\Distributor\DistributorProfile;

trait FitcareDeviceTrait
{
public function getDistributorEnum()
{
return DistributorProfile::FITCARE;
}
}
27 changes: 27 additions & 0 deletions src/Device/GarminD2DeltaS.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminD2DeltaS extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum()
{
return DeviceProfile::GARMIN_D_2_DELTA_S;
}

public function getName()
{
return 'D2 Delta S';
}
}
27 changes: 27 additions & 0 deletions src/Device/GarminForerunner255.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminForerunner255 extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum()
{
return DeviceProfile::GARMIN_FORERUNNER_255;
}

public function getName()
{
return 'Forerunner 255';
}
}
27 changes: 27 additions & 0 deletions src/Device/GarminForerunner255S.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminForerunner255S extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum()
{
return DeviceProfile::GARMIN_FORERUNNER_255_S;
}

public function getName()
{
return 'Forerunner 255S';
}
}
32 changes: 32 additions & 0 deletions src/Device/GarminInstinct2SolarOnePieceLuffy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class GarminInstinct2SolarOnePieceLuffy extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum()
{
return DeviceProfile::GARMIN_INSTINCT_2_SOLAR_ONE_PIECE_LUFFY;
}

public function getName()
{
return 'Instinct Solar';
}

public function hasBarometer()
{
return true;
}
}

0 comments on commit 7d90093

Please sign in to comment.