public static string RequestUrl(string[] LeagueName) { string contest = string.Empty, param = string.Empty; if (LeagueName == null && LeagueName.Length < 1) { return(""); } else { //string league = LeagueName //for (int i = 0; i < LeagueName.Length; i++) //{ // string league = LeagueName[i]; // contest += "contest[]=" + league.ToString() + "&"; //} foreach (var name in LeagueName) { contest += string.Concat("c[]=", name.ToString(), WebUtility.HtmlDecode("&")); } } string Params = string.Format(FeedParam1, ConvertDateTimeToUNIX_Timestamp(RequestNow).ToString(), ConvertDateTimeToUNIX_Timestamp(RequestNow.AddDays(DaysAhead)), LicenseKey); param = string.Concat(FeedURI, FeedParam, contest, Params); return(param); }
public static string RequestUrl(string LeagueName) { if (string.IsNullOrEmpty(LeagueName)) { return(""); } else { return(string.Format(FeedURI + FeedParam, LeagueName, ConvertDateTimeToUNIX_Timestamp(RequestNow).ToString(), ConvertDateTimeToUNIX_Timestamp(RequestNow.AddDays(DaysAhead)), LicenseKey)); } }