public static string GetPopvoxUrl(string id) { BillRef br = BillRef.FromID(id); string ret = ""; //if (root) ret = "http://www.popvox.com/bills/us/"; ret += br.Session + "/"; switch (br.Type) { case BillType.H: ret += "hr"; break; case BillType.HR: ret += "hres"; break; case BillType.HJ: ret += "hjres"; break; case BillType.HC: ret += "hconres"; break; case BillType.S: ret += "s"; break; case BillType.SR: ret += "sres"; break; case BillType.SJ: ret += "sjres"; break; case BillType.SC: ret += "sconres"; break; } ret += br.Number; return(ret); }
public static string GetHashtag(string id) { BillRef br = BillRef.FromID(id); string hashtag = "#"; switch (br.Type) { case BillType.H: hashtag += "hr"; break; case BillType.HR: hashtag += "hres"; break; case BillType.HJ: hashtag += "hjres"; break; case BillType.HC: hashtag += "hconres"; break; case BillType.S: hashtag += "s"; break; case BillType.SR: hashtag += "sres"; break; case BillType.SJ: hashtag += "sjres"; break; case BillType.SC: hashtag += "sconres"; break; } hashtag += br.Number; if (br.Session != Util.CurrentSession) { hashtag += "/"; hashtag += br.Session; } return(hashtag); }
public static string GetTinyThomasUrl(string id) { BillRef br = BillRef.FromID(id); if (br.Session != Util.CurrentSession) { return(""); } string ret = "http://tinythom.as/"; switch (br.Type) { case BillType.H: ret += "hr"; break; case BillType.HR: ret += "hres"; break; case BillType.HJ: ret += "hj"; break; case BillType.HC: ret += "hc"; break; case BillType.S: ret += "s"; break; case BillType.SR: ret += "sr"; break; case BillType.SJ: ret += "sj"; break; case BillType.SC: ret += "sc"; break; } ret += br.Number; ret += "/gt"; return(ret); }
public static XPathNavigator LoadBill3(string id) { return(BillRef.FromID(id).Load()); }
public static string GetDisplayNumber2(string id) { BillRef br = BillRef.FromID(id); return(GetDisplayNumber(br.TypeCode, br.Number) + " [" + Util.Ordinate(br.Session) + "]"); }