forked from philosowaffle/peloton-to-garmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[447] map strength exercises to Garmin exercises (philosowaffle#450)
* [447] map strength and yoga exercises to Garmin exercises * adjust fit converter * working
- Loading branch information
1 parent
6a82467
commit 09a0d8e
Showing
20 changed files
with
7,762 additions
and
1,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Common.Dto.Peloton; | ||
|
||
namespace Common.Dto.Peloton | ||
public class Segment | ||
{ | ||
public class Segment | ||
{ | ||
public string Id { get; set; } | ||
public int Length { get; set; } | ||
public int Start_Time_Offset { get; set; } | ||
public Uri Icon_Url { get; set; } | ||
public double Intensity_In_Mets { get; set; } | ||
public string Metrics_Type { get; set; } // enum | ||
public string Icon_Name { get; set; } | ||
public string Icon_Slug { get; set; } | ||
public string Name { get; set; } | ||
} | ||
public int Length { get; set; } | ||
public int Start_Time_Offset { get; set; } | ||
public ICollection<SubSegment> SubSegments_V2 { get; set; } | ||
} | ||
|
||
public record SubSegment | ||
{ | ||
public string Type { get; init; } // enum | ||
public int? Offset { get; init; } | ||
public int? Length { get; init; } | ||
public int? Rounds { get; init; } | ||
public ICollection<Movement> Movements { get; init; } | ||
} | ||
|
||
public record Movement | ||
{ | ||
public string Id { get; init; } | ||
public string Name { get; init; } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Common.Dto.Peloton; | ||
|
||
public record RideSegments | ||
{ | ||
public Segments Segments { get; init; } | ||
} | ||
|
||
public record Segments | ||
{ | ||
public ICollection<Segment> Segment_List { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.