public string GetContestStatusUrl(int contestId, string handle = null, int from = -1, int count = -1) { try { var getParams = new Dictionary <string, string>(); getParams.Add("contestId", contestId.ToString()); if (handle != null) { getParams.Add("handle", handle); } if (from != -1) { getParams.Add("from", from.ToString()); } if (count != -1) { getParams.Add("count", count.ToString()); } return(HttpClientSingleton.DoGetUrl(CONTEST_STATUS_URL, getParams)); } catch (Exception ex) { throw ex; } }
public string GetContestStandingsUrl(int contestId, bool showUnofficial = false, int from = -1, int count = -1, string handles = null, int room = -1) { try { var getParams = new Dictionary <string, string>(); getParams.Add("contestId", contestId.ToString()); if (showUnofficial) { getParams.Add("showUnofficial", "true"); } if (from != -1) { getParams.Add("from", from.ToString()); } if (count != -1) { getParams.Add("count", count.ToString()); } if (handles != null) { getParams.Add("handles", handles); } if (room != -1) { getParams.Add("room", room.ToString()); } return(HttpClientSingleton.DoGetUrl(CONTEST_STANDINGS_URL, getParams)); } catch (Exception ex) { throw ex; } }
public string GetContestListUrl(bool gym = false) { try { var getParams = new Dictionary <string, string>(); if (gym != false) { getParams.Add("gym", "true"); } return(HttpClientSingleton.DoGetUrl(CONTEST_LIST_URL, getParams)); } catch (Exception ex) { throw ex; } }