private UpcomingParam[] GetEventParams(string name, string description, int venue_id, int category_id, DateTime start_date,
bool personal, bool self_promotion)
{
System.Collections.ArrayList param_list = new System.Collections.ArrayList ();
param_list.Add (new UpcomingParam ("token", Token.TokenString));
param_list.Add (new UpcomingParam ("name", name));
param_list.Add (new UpcomingParam ("venue_id", venue_id));
param_list.Add (new UpcomingParam ("category_id", category_id));
param_list.Add (new UpcomingParam ("start_date", start_date.ToString ("YYYY-MM-DD")));
param_list.Add (new UpcomingParam ("start_time", start_date.ToString ("HH:MM:SS")));
if (description != null && description != string.Empty)
param_list.Add (new UpcomingParam ("description", description));
if (personal)
param_list.Add (new UpcomingParam ("personal", 1));
if (self_promotion)
param_list.Add (new UpcomingParam ("selfpromotion", 1));
return (UpcomingParam[]) param_list.ToArray (typeof (UpcomingParam));
}