public static string BuildURL(Itinerary itinerary) { string query = URL + "?itineraryid={0}"; query = string.Format(query, WWW.EscapeURL(itinerary.itineraryid)); return(query); }
public static string BuildURL(Itinerary itinerary) { string query = URL + "?itineraryid={0}&name={1}&rating={2}&is_public={3}&deleted={4}&colors={5}"; query = string.Format(query, WWW.EscapeURL(itinerary.itineraryid), WWW.EscapeURL(itinerary.name), WWW.EscapeURL(itinerary.rating.ToString()), WWW.EscapeURL(itinerary.is_public.ToString()), WWW.EscapeURL(itinerary.deleted.ToString()), WWW.EscapeURL(itinerary.colors)); return(query); }