Skip to content

Commit

Permalink
Added TrackMeta and TrackAudio, closes #648
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyCrazy committed Aug 11, 2021
1 parent 8e8f3c9 commit 4340515
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
31 changes: 31 additions & 0 deletions SpotifyAPI.Web/Models/Response/TrackAudio.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
namespace SpotifyAPI.Web
{
public class TrackAudio
{
public float Duration { get; set; }
public string SampleMd5 { get; set; } = default!;
public int OffsetSeconds { get; set; }
public int WindowSeconds { get; set; }
public int AnalysisSampleRate { get; set; }
public int AnalysisChannels { get; set; }
public float EndOfFadeIn { get; set; }
public float StartOfFadeOut { get; set; }
public float Loudness { get; set; }
public float Tempo { get; set; }
public float TempConfidence { get; set; }
public int TimeSignature { get; set; }
public float TimeSignatureConfidence { get; set; }
public int Key { get; set; }
public float KeyConfidence { get; set; }
public int Mode { get; set; }
public float ModeConfidence { get; set; }
public string Codestring { get; set; } = default!;
public float CodeVersion { get; set; }
public string Echoprintstring { get; set; } = default!;
public float EchoprintVersion { get; set; }
public string Synchstring { get; set; } = default!;
public float SynchVersion { get; set; }
public string Rhythmstring { get; set; } = default!;
public float RhythmVersion { get; set; }
}
}
2 changes: 2 additions & 0 deletions SpotifyAPI.Web/Models/Response/TrackAudioAnalysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class TrackAudioAnalysis
public List<Section> Sections { get; set; } = default!;
public List<Segment> Segments { get; set; } = default!;
public List<TimeInterval> Tatums { get; set; } = default!;
public TrackAudio Track { get; set; } = default!;
public TrackMeta Meta { get; set; } = default!;
}
}

15 changes: 15 additions & 0 deletions SpotifyAPI.Web/Models/Response/TrackMeta.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;

namespace SpotifyAPI.Web
{
public class TrackMeta
{
public float AnalysisTime { get; set; }
public string AnalyzerVersion { get; set; } = default!;
public string DetailedStatus { get; set; } = default!;
public string InputProcess { get; set; } = default!;
public string Platform { get; set; } = default!;
public int StatusCode { get; set; } = default!;
public long Timestamp { get; set; }
}
}

0 comments on commit 4340515

Please sign in to comment.