Убраны лишние классы

This commit is contained in:
FrigaT
2026-04-14 02:44:57 +03:00
parent 699d38da74
commit 50da85be57
4 changed files with 19 additions and 32 deletions

View File

@@ -35,7 +35,19 @@ public class YandexMusicApi
/// <summary>Создаёт экземпляр API с инициализацией всех подсистем.</summary>
public YandexMusicApi()
{
foreach (var property in GetType().GetProperties())
property.SetValue(this, Activator.CreateInstance(property.PropertyType, this));
Album = new YAlbumAPI(this);
Artist = new YArtistAPI(this);
Label = new YLabelAPI(this);
Landing = new YLandingAPI(this);
Library = new YLibraryAPI(this);
Playlist = new YPlaylistAPI(this);
Pins = new YPinsAPI(this);
Radio = new YRadioAPI(this);
Search = new YSearchAPI(this);
Track = new YTrackAPI(this);
Queue = new YQueueAPI(this);
User = new YUserAPI(this);
UserGeneratedContent = new YUgcAPI(this);
Ynison = new YYnisonAPI(this);
}
}