Skip to content

Commit 4340515

Browse files
committed
Added TrackMeta and TrackAudio, closes #648
1 parent 8e8f3c9 commit 4340515

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
namespace SpotifyAPI.Web
2+
{
3+
public class TrackAudio
4+
{
5+
public float Duration { get; set; }
6+
public string SampleMd5 { get; set; } = default!;
7+
public int OffsetSeconds { get; set; }
8+
public int WindowSeconds { get; set; }
9+
public int AnalysisSampleRate { get; set; }
10+
public int AnalysisChannels { get; set; }
11+
public float EndOfFadeIn { get; set; }
12+
public float StartOfFadeOut { get; set; }
13+
public float Loudness { get; set; }
14+
public float Tempo { get; set; }
15+
public float TempConfidence { get; set; }
16+
public int TimeSignature { get; set; }
17+
public float TimeSignatureConfidence { get; set; }
18+
public int Key { get; set; }
19+
public float KeyConfidence { get; set; }
20+
public int Mode { get; set; }
21+
public float ModeConfidence { get; set; }
22+
public string Codestring { get; set; } = default!;
23+
public float CodeVersion { get; set; }
24+
public string Echoprintstring { get; set; } = default!;
25+
public float EchoprintVersion { get; set; }
26+
public string Synchstring { get; set; } = default!;
27+
public float SynchVersion { get; set; }
28+
public string Rhythmstring { get; set; } = default!;
29+
public float RhythmVersion { get; set; }
30+
}
31+
}

SpotifyAPI.Web/Models/Response/TrackAudioAnalysis.cs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ public class TrackAudioAnalysis
99
public List<Section> Sections { get; set; } = default!;
1010
public List<Segment> Segments { get; set; } = default!;
1111
public List<TimeInterval> Tatums { get; set; } = default!;
12+
public TrackAudio Track { get; set; } = default!;
13+
public TrackMeta Meta { get; set; } = default!;
1214
}
1315
}
1416

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
3+
namespace SpotifyAPI.Web
4+
{
5+
public class TrackMeta
6+
{
7+
public float AnalysisTime { get; set; }
8+
public string AnalyzerVersion { get; set; } = default!;
9+
public string DetailedStatus { get; set; } = default!;
10+
public string InputProcess { get; set; } = default!;
11+
public string Platform { get; set; } = default!;
12+
public int StatusCode { get; set; } = default!;
13+
public long Timestamp { get; set; }
14+
}
15+
}

0 commit comments

Comments
 (0)