Skip to content

Commit

Permalink
Merge pull request #7 from Runalyze/20210325
Browse files Browse the repository at this point in the history
New devices, missing apple ones
  • Loading branch information
mipapo committed Mar 25, 2021
2 parents f21373e + 16fc3fe commit 32e4b7b
Show file tree
Hide file tree
Showing 25 changed files with 590 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Device/AppFitnessSyncer.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 AppFitnessSyncer extends AbstractDevice
{
use AppDeviceTrait;

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

public function getName()
{
return 'FitnessSyncer';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone12.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 AppleIphone12 extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'iPhone 12';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone12Mini.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 AppleIphone12Mini extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'iPhone 12 Mini';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone12Pro.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 AppleIphone12Pro extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'iPhone 12 Pro';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone12ProMax.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 AppleIphone12ProMax extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'iPhone 12 Pro Max';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleWatchSE40.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 AppleWatchSE40 extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'Watch SE (40mm)';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleWatchSE40Cellular.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 AppleWatchSE40Cellular extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'Watch SE (40mm) (Cellular)';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleWatchSE44.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 AppleWatchSE44 extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'Watch SE (40mm)';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleWatchSE44Cellular.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 AppleWatchSE44Cellular extends AbstractDevice
{
use AppleDeviceTrait;

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

public function getName()
{
return 'Watch SE (40mm) (Cellular)';
}
}
39 changes: 39 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -1436,4 +1436,43 @@ class DeviceProfile extends AbstractEnum

/** @var int */
const APPLE_WATCH_6_V_44_CELLULAR = 472;

/** @var int */
const POLAR_IGNITE_2 = 473;

/** @var int */
const POLAR_VANTAGE_M_2 = 474;

/** @var int */
const APPLE_WATCH_S_E_40 = 475;

/** @var int */
const APPLE_WATCH_S_E_40_CELLULAR = 476;

/** @var int */
const APPLE_WATCH_S_E_44 = 477;

/** @var int */
const APPLE_WATCH_S_E_44_CELLULAR = 478;

/** @var int */
const APPLE_IPHONE_12 = 479;

/** @var int */
const APPLE_IPHONE_12_PRO = 480;

/** @var int */
const APPLE_IPHONE_12_PRO_MAX = 481;

/** @var int */
const APPLE_IPHONE_12_MINI = 482;

/** @var int */
const APP_FITNESS_SYNCER = 483;

/** @var int */
const FORM_SMART_SWIM_GOGGLES = 484;

/** @var int */
const SPECIALIZED_UNKNOWN = 485;
}
22 changes: 22 additions & 0 deletions src/Device/FormDeviceTrait.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 FormDeviceTrait
{
public function getDistributorEnum()
{
return DistributorProfile::FORM;
}
}
27 changes: 27 additions & 0 deletions src/Device/FormSmartSwimGoggles.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 FormSmartSwimGoggles extends AbstractDevice
{
use FormDeviceTrait;

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

public function getName()
{
return 'Smart Swim Goggles';
}
}
27 changes: 27 additions & 0 deletions src/Device/PolarIgnite2.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 PolarIgnite2 extends AbstractDevice
{
use PolarDeviceTrait;

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

public function getName()
{
return 'Ignite 2';
}
}
Loading

0 comments on commit 32e4b7b

Please sign in to comment.