Пример #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;
        }
Пример #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);
 }
Пример #3
0
 /// <remarks/>
 public void GetBookableItemsAsync(GetBookableItemsRequest Request) {
     this.GetBookableItemsAsync(Request, null);
 }
Пример #4
0
 public GetBookableItemsResult GetBookableItems(GetBookableItemsRequest Request) {
     object[] results = this.Invoke("GetBookableItems", new object[] {
                 Request});
     return ((GetBookableItemsResult)(results[0]));
 }