public IAsyncResult BeginCheckCompetitionPassword(ApiCompetition competition, string password, AsyncCallback callback, object state) { return(this.BeginProcessRequest( this.PrepareWebRequest("ApiCalendar", "CheckPassword", new Dictionary <string, string> { { "compId", competition == null ? null : competition.CompId }, { "password", password } }), callback, state)); }
private void SetConnectionModelInternal(ServiceConnectionModel model) { if (model == null) { this.baseUri = null; this.password = null; this.comp = null; } else { this.baseUri = string.IsNullOrEmpty(model.Address) ? null : new Uri(model.Address.EndsWith("/") ? model.Address : (model.Address + "/")); this.password = model.Password ?? string.Empty; this.comp = model.Competition; } }