// Fixme: currently no end date support public Event AddEvent(string name, Venue venue, Category category, DateTime start_date, string description, bool personal, bool selfpromotion) { UpcomingParam[] param_array = GetEventParams (name, description, venue.ID, category.ID, start_date, personal, selfpromotion); Response rsp = Util.Post ("event.add", param_array); return rsp.Events[0]; }
public Event AddEvent(string name, Venue venue, Category category, DateTime start_date) { return AddEvent (name, venue, category, start_date, null, false, false); }
public void EditVenue(Venue venue) { ArrayList param_list = CreateVenueParams (venue.Name, venue.Address, venue.City, venue.MetroId, venue.Zip, venue.Phone, venue.url, venue.Description, venue.IsPrivate); param_list.Add (new UpcomingParam ("venue_id", venue.ID)); param_list.Add (new UpcomingParam ("token", Token.TokenString)); UpcomingParam[] param_array = (UpcomingParam[])param_list.ToArray (typeof (UpcomingParam)); Util.Post ("venue.edit", param_array); }