Example #1
0
 /// <summary>
 /// Returns a list of audio files from the "Popular".
 /// </summary>
 /// <param name="onlyEng">True - to return only foreign audio files; False — to return all audio files.</param>
 /// <param name="genre">Genre.</param>
 /// <param name="count">Number of audio files to return.</param>
 /// <param name="offset">Offset needed to return a specific subset of audio files.</param>
 /// <returns>Returns a <see cref="List{T}"/> of <see cref="Audio"/> objects.</returns>
 public async Task<Response<List<Audio>>> GetPopular(bool onlyEng = true, AudioGenres genre = AudioGenres.Other,
     int count = 100, int offset = 0) => await Request<List<Audio>>("getPopular", new MethodParams
     {
         {"only_eng", onlyEng},
         {"genre_id", (int) genre},
         {"count", count, false, new[] {0, 1000}},
         {"offset", offset}
     });
Example #2
0
 /// <summary>
 /// Returns a list of audio files from the "Popular".
 /// </summary>
 /// <param name="onlyEng">True - to return only foreign audio files; False — to return all audio files.</param>
 /// <param name="genre">Genre.</param>
 /// <param name="count">Number of audio files to return.</param>
 /// <param name="offset">Offset needed to return a specific subset of audio files.</param>
 /// <returns>Returns a <see cref="List{T}"/> of <see cref="Audio"/> objects.</returns>
 public async Task <Response <List <Audio> > > GetPopular(bool onlyEng = true, AudioGenres genre = AudioGenres.Other,
                                                          int count    = 100, int offset         = 0) => await Request <List <Audio> >("getPopular", new MethodParams
 {
     { "only_eng", onlyEng },
     { "genre_id", (int)genre },
     { "count", count, false, new[] { 0, 1000 } },
     { "offset", offset }
 });
Example #3
0
 public AudioGenresFilterItem(string title, AudioGenres genre = 0)
 {
     Title = title;
     Genre = genre;
 }