public void Deserialize(IDeezerClient aClient) { Client = aClient; if (ArtistInternal != null) { ArtistInternal.Deserialize(aClient); } if (AlbumInternal != null) { AlbumInternal.Deserialize(aClient); } }
public void Deserialize(IDeezerClient aClient) { Client = aClient; ArtistInternal?.Deserialize(aClient); if (GenreInternal != null) { foreach (var genre in GenreInternal.Items) { genre.Deserialize(aClient); } } if (this.ContributorsInternal != null) { foreach (var artist in ContributorsInternal) { artist.Deserialize(aClient); } } }