public Playlist(bool collaborative, string description, Externals externalUrl, Followers followers, string href, string id, Image[] images, string name, User owner, bool? @public, Page <PlaylistTrack> tracks, string type, string uri) { Collaborative = collaborative; Description = description; ExternalUrl = externalUrl; Followers = followers; Href = href; Id = id; Images = images.ToList(); Name = name; Owner = owner; Public = @public.GetValueOrDefault(); Tracks = tracks; Type = type; Uri = uri; }
public Track( Album album, Artist[] artists, string[] available_markets, int disc_number, int duration_ms, bool @explicit, Externals external_ids, Externals external_urls, string href, string id, string name, int popularity, string preview_url, int track_number, string type, string uri) { Album = album; Artists = artists.ToList(); AvailableMarkets = available_markets.ToList(); DiscNumber = disc_number; Duration = duration_ms; Explicit = @explicit; ExternalId = external_ids; ExternalUrl = external_urls; Href = href; Id = id; Name = name; Popularity = popularity; PreviewUrl = preview_url; TrackNumber = track_number; Type = type; Uri = uri; }
public Artist( Externals external_urls, string[] genres, string href, string id, Image[] images, string name, int popularity, string type, string uri) { ExternalUrl = external_urls; Genres = genres.ToList(); Href = href; Id = id; Images = images.ToList(); Name = name; Popularity = popularity; Type = type; Uri = uri; }
public Album( string album_type, Artist[] artists, string[] available_markets, Externals external_ids, Externals external_urls, string[] genres, string href, string id, Image[] images, string name, int popularity, string release_date, string release_date_precision, Page <Track> tracks, string type, string uri) { AlbumType = Enum.Parse <AlbumType>(album_type); Artists = artists.ToList(); AvailableMarkets = available_markets.ToList(); ExternalId = external_ids; ExternalUrl = external_urls; Genres = genres.ToList(); Href = href; Id = id; Images = images.ToList(); Name = name; Popularity = popularity; ReleaseDatePrecision = release_date_precision; Tracks = tracks; Type = type; Uri = uri; if (DateTime.TryParse(release_date, out var dateTime)) { ReleaseDate = dateTime; } }
public User( string country, string display_name, string email, Externals external_urls, string href, string id, Image[] images, string product, string type, string uri ) { Country = country; DisplayName = display_name; EmailAddress = email; ExternalUrl = external_urls; Href = href; Id = id; Images = images.ToList(); Product = product; Type = type; Uri = uri; }