Skip to content

Commit

Permalink
add forerunner 165(music)
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Feb 27, 2024
1 parent 30b5f90 commit 17f67bf
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,8 @@ class DeviceProfile extends AbstractEnum
const LEZYNE_SUPER_GPS = 669;
const LEZYNE_MEGA_GPS = 670;
const LEZYNE_MACRO_GPS = 671;
const GARMIN_FORERUNNER_165 = 672;
const GARMIN_FORERUNNER_165_MUSIC = 673;

public static function getSlugs(): array
{
Expand Down
37 changes: 37 additions & 0 deletions src/Device/GarminForerunner165.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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 GarminForerunner165 extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::GARMIN_FORERUNNER_165;
}

public function getName(): string
{
return 'Forerunner 165';
}

public function hasBarometer(): bool
{
return true;
}

public function getReleaseDate(): ?\DateTimeInterface
{
return new \DateTimeImmutable('2024-02-20');
}
}
37 changes: 37 additions & 0 deletions src/Device/GarminForerunner165Music.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?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 GarminForerunner165Music extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::GARMIN_FORERUNNER_165_MUSIC;
}

public function getName(): string
{
return 'Forerunner 165';
}

public function hasBarometer(): bool
{
return true;
}

public function getReleaseDate(): ?\DateTimeInterface
{
return new \DateTimeImmutable('2024-02-20');
}
}
1 change: 1 addition & 0 deletions src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ protected function getMapping()
1436 => DeviceProfile::GARMIN_FORERUNNER_70,
1124 => DeviceProfile::GARMIN_FORERUNNER_110,
1274 => DeviceProfile::GARMIN_FORERUNNER_110,
4432 => DeviceProfile::GARMIN_FORERUNNER_165,
1360 => DeviceProfile::GARMIN_FORERUNNER_210,
1632 => DeviceProfile::GARMIN_FORERUNNER_220,
3187 => DeviceProfile::GARMIN_FORERUNNER_220,
Expand Down

0 comments on commit 17f67bf

Please sign in to comment.