예제 #1
0
        public static string BuildURL(Itinerary itinerary)
        {
            string query = URL + "?itineraryid={0}";

            query = string.Format(query,
                                  WWW.EscapeURL(itinerary.itineraryid));
            return(query);
        }
예제 #2
0
        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);
        }