Ejemplo n.º 1
0
 public ResultsPage SearchEvents(long location, string artistName = "", string minDate = "", string maxDate = "")
 {
     RequestObject requestObject = new RequestObject();
     if (location != 0)
     {
         requestObject.Param("location", location.ToString(CultureInfo.InvariantCulture));
     }
     return (ResultsPage)requestObject
         .SetUri(Constants.Uri)
         .AppendPath("events.json")
         .Get()
         .Param("apikey", Constants.APIKey)
         .Param("artist_name", artistName)
         .Param("min_date", minDate)
         .Param("max_date", maxDate)
         .ToResponseEntity(typeof(ResultsPage));
 }
Ejemplo n.º 2
0
        public ResultsPage SearchEvents(long location, string artistName = "", string minDate = "", string maxDate = "")
        {
            RequestObject requestObject = new RequestObject();

            if (location != 0)
            {
                requestObject.Param("location", location.ToString(CultureInfo.InvariantCulture));
            }
            return((ResultsPage)requestObject
                   .SetUri(Constants.Uri)
                   .AppendPath("events.json")
                   .Get()
                   .Param("apikey", Constants.APIKey)
                   .Param("artist_name", artistName)
                   .Param("min_date", minDate)
                   .Param("max_date", maxDate)
                   .ToResponseEntity(typeof(ResultsPage)));
        }