Ejemplo n.º 1
0
        public static GetBookableItemsResult GetBookableItems()
        {
            ///////////////////////
            // Standard API call //
            ///////////////////////

            // Create Service
            AppointmentService service = new AppointmentService();

            // Create request
            GetBookableItemsRequest request = new GetBookableItemsRequest();

            // Create and fill credentials
            request.SourceCredentials = new SourceCredentials();
            request.SourceCredentials.SourceName = SOURCE_NAME;
            request.SourceCredentials.Password = SOURCE_PASSWORD;
            request.SourceCredentials.SiteIDs = SITE_IDS;

            // Run call with request and fill result
            GetBookableItemsResult result = service.GetBookableItems(request);

            return result;
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void GetBookableItemsAsync(GetBookableItemsRequest Request, object userState) {
     if ((this.GetBookableItemsOperationCompleted == null)) {
         this.GetBookableItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetBookableItemsOperationCompleted);
     }
     this.InvokeAsync("GetBookableItems", new object[] {
                 Request}, this.GetBookableItemsOperationCompleted, userState);
 }
Ejemplo n.º 3
0
 /// <remarks/>
 public void GetBookableItemsAsync(GetBookableItemsRequest Request) {
     this.GetBookableItemsAsync(Request, null);
 }
Ejemplo n.º 4
0
 public GetBookableItemsResult GetBookableItems(GetBookableItemsRequest Request) {
     object[] results = this.Invoke("GetBookableItems", new object[] {
                 Request});
     return ((GetBookableItemsResult)(results[0]));
 }