Added TrackMeta and TrackAudio, closes #648

This commit is contained in:
Jonas Dellinger 2021-08-11 19:03:48 +02:00
parent 8e8f3c9c85
commit 4340515471
3 changed files with 48 additions and 0 deletions

View File

@ -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; }
}
}

View File

@ -9,6 +9,8 @@ namespace SpotifyAPI.Web
public List<Section> Sections { get; set; } = default!; public List<Section> Sections { get; set; } = default!;
public List<Segment> Segments { get; set; } = default!; public List<Segment> Segments { get; set; } = default!;
public List<TimeInterval> Tatums { get; set; } = default!; public List<TimeInterval> Tatums { get; set; } = default!;
public TrackAudio Track { get; set; } = default!;
public TrackMeta Meta { get; set; } = default!;
} }
} }

View File

@ -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; }
}
}