Exemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="userId">
        /// </param>
        /// <param name="pageNumber">
        /// </param>
        /// <param name="pageSize">
        /// </param>
        /// <returns>
        /// </returns>
        public IObservable <MixesResponseContract> GetMixFeedAsync(string userId, int pageNumber, int pageSize)
        {
            string cacheFile = string.Format(MixFeedCacheFile, userId, pageNumber, pageSize);

            return
                (this.downloader.GetDeserializedCachedAndRefreshedAsync <MixesResponseContract>(
                     ApiUrl.UserMixes(userId, "mix_feed", pageNumber, pageSize), cacheFile).NotNull());
        }
Exemplo n.º 2
0
 /// <summary>
 /// </summary>
 /// <param name="userId">
 /// </param>
 /// <param name="pageNumber">
 /// </param>
 /// <param name="pageSize">
 /// </param>
 /// <returns>
 /// </returns>
 public IObservable <MixesResponseContract> GetUserMixesAsync(string userId, int pageNumber, int pageSize)
 {
     return(this.downloader.GetDeserializedAsync <MixesResponseContract>(
                ApiUrl.UserMixes(userId, pageNumber, pageSize)).NotNull());
 }