using System.Linq; using Jil; namespace Sony.Filtr.SpotifyAnalytics.Models { public class StreamsApiObject { [JilDirective(name:"user_id")] public string UserId { get; set; } //public string cached { get; set; } //public string timestamp { get; set; } [JilDirective(name: "source_uri")] public string SourceUri { get; set; } [JilDirective(name: "track_id")] public string TrackId { get; set; } [JilDirective(name: "source")] public StreamSource Source { get; set; } //public string length { get; set; } //public string version { get; set; } [JilDirective(name: "device_type")] public DeviceType DeviceType { get; set; } //public string offline_timestamp { get; set; } //public string message { get; set; } [JilDirective(name: "os")] public string Os { get; set; } } public enum DeviceType { Desktop, Mobile, Tablet } public enum StreamOs { Windows, Android, iOS, Mac, Other, Browser, Linux, Windows_Phone } public enum StreamSource { Others_Playlist, Search, Artist, Album, Collection, Other } }