Exemplo n.º 1
0
 /// <summary>
 /// Получение секции библиотеки
 /// </summary>
 /// <typeparam name="T">Тип объекта библиотеки</typeparam>
 /// <param name="storage">Хранилище</param>
 /// <param name="section">Секция</param>
 /// <param name="type">Тип</param>
 /// <returns>Список объектов из секции</returns>
 private async Task <List <T> > GetLibrarySection <T>(YAuthStorage storage, YLibrarySection section, YLibrarySectionType type = YLibrarySectionType.Likes, string jsonPath = "")
 {
     return(await new YGetLibrarySectionRequest(storage)
            .Create(section, type)
            .GetResponseAsyncList <T>(jsonPath));
 }