public static IFluentApi <T> ForShop <T>(this IFluentApi <T> api, int shopId)
 {
     return(api.WithParameter("shopId", shopId));
 }
 public static IFluentApi <ArtistBrowse> WithLetter(this IFluentApi <ArtistBrowse> api, string letter)
 {
     api.WithParameter("letter", letter);
     return(api);
 }
 public static IFluentApi <ArtistChart> WithToDate(this IFluentApi <ArtistChart> api, DateTime toDate)
 {
     api.WithParameter("toDate", toDate.ToString("yyyyMMdd"));
     return(api);
 }
		public static IFluentApi<T> WithPeriod<T>(this IFluentApi<T> api, ChartPeriod period) where T : HasChartParameter
		{
			api.WithParameter("period", period.ToString().ToLower());
			return api;
		}
 public static IFluentApi <T> WithQuery <T>(this IFluentApi <T> api, string query) where T : HasSearchParameter
 {
     api.WithParameter("q", query);
     return(api);
 }
 public static IFluentApi <T> WithTags <T>(this IFluentApi <T> api, params string[] tags) where T : HasTags
 {
     api.WithParameter("tags", String.Join(",", tags));
     return(api);
 }
Example #7
0
 public static IFluentApi <T> WithPageNumber <T>(this IFluentApi <T> api, int pageNumber) where T : IHasPaging
 {
     api.WithParameter("page", pageNumber.ToString());
     return(api);
 }
Example #8
0
 public static IFluentApi <T> WithRetailPrice <T>(this IFluentApi <T> api, decimal retailPrice) where T : HasUserDeliverItemParameter
 {
     api.WithParameter("retailPrice", retailPrice);
     return(api);
 }
Example #9
0
 public static IFluentApi <T> WithEmailAddress <T>(this IFluentApi <T> api, string emailAddress) where T : HasUserDeliverItemParameter
 {
     api.WithParameter("emailAddress", emailAddress);
     return(api);
 }
 public static IFluentApi <T> BasketItemId <T>(this IFluentApi <T> api, int basketItemId) where T : HasBasketItemParameter
 {
     api.WithParameter("itemId", basketItemId.ToString());
     return(api);
 }
Example #11
0
 public static IFluentApi <T> WithTransactionId <T>(this IFluentApi <T> api, string transactionId) where T : HasUserDeliverItemParameter
 {
     api.WithParameter("transactionId", transactionId);
     return(api);
 }
Example #12
0
 public static IFluentApi <T> WithIpAddress <T>(this IFluentApi <T> api, string ipAddress) where T : HasIpAddressParameter
 {
     api.WithParameter("ipaddress", ipAddress);
     return(api);
 }
 public static IFluentApi <T> WithPurchaseId <T>(this IFluentApi <T> api, int purchaseId) where T : HasPurchaseIdParameter
 {
     api.WithParameter("purchaseId", purchaseId);
     return(api);
 }
Example #14
0
 public static IFluentApi <T> ForPlaylistId <T>(this IFluentApi <T> api, string playlistId) where T : HasPlaylistIdParameter
 {
     api.WithParameter("playlistId", playlistId);
     return(api);
 }
 public static IFluentApi <T> ForReleaseType <T>(this IFluentApi <T> api, string releaseType) where T : HasReleaseTypeParameter
 {
     api.WithParameter("type", releaseType);
     return(api);
 }
Example #16
0
 public static IFluentApi <T> UseBasketId <T>(this IFluentApi <T> api, Guid basketId) where T : HasBasketParameter
 {
     api.ClearParameters();
     api.WithParameter("basketId", basketId.ToString());
     return(api);
 }
 public static IFluentApi <T> ForReleaseType <T>(this IFluentApi <T> api, ReleaseType releaseType) where T : HasReleaseTypeParameter
 {
     return(api.ForReleaseType(releaseType.ToString()));
 }
 public static IFluentApi <T> WithParameter <T>(this IFluentApi <T> api, string name, int value)
 {
     api.WithParameter(name, value.ToString(CultureInfo.InvariantCulture));
     return(api);
 }
Example #19
0
 public static IFluentApi <T> ForReleaseId <T>(this IFluentApi <T> api, int releaseId) where T : HasReleaseIdParameter
 {
     api.WithParameter("releaseId", releaseId);
     return(api);
 }
 public static IFluentApi <T> UseBasketId <T>(this IFluentApi <T> api, string basketId) where T : HasBasketParameter
 {
     api.WithParameter("basketId", basketId);
     return(api);
 }
		public static IFluentApi<T> WithToDate<T>(this IFluentApi<T> api, DateTime toDate) where T : HasChartParameter
		{
			api.WithParameter("toDate", toDate.ToString("yyyyMMdd"));
			return api;
		}
Example #22
0
 public static IFluentApi <T> ForAffiliatePartner <T>(this IFluentApi <T> api, int partnerId) where T : HasAffiliatePartnerParameter
 {
     api.WithParameter("affiliatePartner", partnerId.ToString());
     return(api);
 }
Example #23
0
 public static IFluentApi <T> WithCard <T>(this IFluentApi <T> api, int cardId) where T : HasCardIdParameter
 {
     api.WithParameter("cardId", cardId.ToString());
     return(api);
 }
 public static IFluentApi <HasPaging> WithPageNumber(this IFluentApi <HasPaging> api, int pageNumber)
 {
     api.WithParameter("page", pageNumber.ToString());
     return(api);
 }
 public static IFluentApi <T> ForTrackId <T>(this IFluentApi <T> api, int trackId) where T : HasTrackIdParameter
 {
     api.WithParameter("trackId", trackId);
     return(api);
 }
 public static IFluentApi <T> UseVoucherCode <T>(this IFluentApi <T> api, string voucherCode) where T : HasVoucherParameter
 {
     api.WithParameter("vouchercode", voucherCode);
     return(api);
 }
 public static IFluentApi <ArtistChart> WithPeriod(this IFluentApi <ArtistChart> api, ApiPeriod period)
 {
     api.WithParameter("period", period.ToString().ToLower());
     return(api);
 }
Example #28
0
 public static IFluentApi <T> ForPrice <T>(this IFluentApi <T> api, decimal price) where T : HasPriceParameter
 {
     api.WithParameter("price", price);
     return(api);
 }
 public static IFluentApi <ArtistSearch> WithAdvancedQuery(this IFluentApi <ArtistSearch> api, string query)
 {
     api.WithParameter("qa", query);
     return(api);
 }
Example #30
0
 public static IFluentApi <T> WithKey <T>(this IFluentApi <T> api, string keyValue) where T : HasKeyParameter
 {
     api.WithParameter("key", keyValue);
     return(api);
 }