300 lines
14 KiB
C#
300 lines
14 KiB
C#
// Copyright (c) 2011, Outercurve Foundation.
|
|
// All rights reserved.
|
|
//
|
|
// Redistribution and use in source and binary forms, with or without modification,
|
|
// are permitted provided that the following conditions are met:
|
|
//
|
|
// - Redistributions of source code must retain the above copyright notice, this
|
|
// list of conditions and the following disclaimer.
|
|
//
|
|
// - Redistributions in binary form must reproduce the above copyright notice,
|
|
// this list of conditions and the following disclaimer in the documentation
|
|
// and/or other materials provided with the distribution.
|
|
//
|
|
// - Neither the name of the Outercurve Foundation nor the names of its
|
|
// contributors may be used to endorse or promote products derived from this
|
|
// software without specific prior written permission.
|
|
//
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:2.0.50727.42
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
//
|
|
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
|
|
//
|
|
namespace WebsitePanel.EnterpriseServer {
|
|
using System.Diagnostics;
|
|
using System.Web.Services;
|
|
using System.ComponentModel;
|
|
using System.Web.Services.Protocols;
|
|
using System;
|
|
using System.Xml.Serialization;
|
|
using System.Data;
|
|
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Web.Services.WebServiceBindingAttribute(Name="esCommentsSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")]
|
|
public partial class esComments : Microsoft.Web.Services3.WebServicesClientProtocol {
|
|
|
|
private System.Threading.SendOrPostCallback GetCommentsOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback AddCommentOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback DeleteCommentOperationCompleted;
|
|
|
|
/// <remarks/>
|
|
public esComments() {
|
|
this.Url = "http://localhost/WebsitePanelEnterpriseServer11/esComments.asmx";
|
|
}
|
|
|
|
/// <remarks/>
|
|
public event GetCommentsCompletedEventHandler GetCommentsCompleted;
|
|
|
|
/// <remarks/>
|
|
public event AddCommentCompletedEventHandler AddCommentCompleted;
|
|
|
|
/// <remarks/>
|
|
public event DeleteCommentCompletedEventHandler DeleteCommentCompleted;
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetComments", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public System.Data.DataSet GetComments(int userId, string itemTypeId, int itemId) {
|
|
object[] results = this.Invoke("GetComments", new object[] {
|
|
userId,
|
|
itemTypeId,
|
|
itemId});
|
|
return ((System.Data.DataSet)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public System.IAsyncResult BeginGetComments(int userId, string itemTypeId, int itemId, System.AsyncCallback callback, object asyncState) {
|
|
return this.BeginInvoke("GetComments", new object[] {
|
|
userId,
|
|
itemTypeId,
|
|
itemId}, callback, asyncState);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public System.Data.DataSet EndGetComments(System.IAsyncResult asyncResult) {
|
|
object[] results = this.EndInvoke(asyncResult);
|
|
return ((System.Data.DataSet)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void GetCommentsAsync(int userId, string itemTypeId, int itemId) {
|
|
this.GetCommentsAsync(userId, itemTypeId, itemId, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void GetCommentsAsync(int userId, string itemTypeId, int itemId, object userState) {
|
|
if ((this.GetCommentsOperationCompleted == null)) {
|
|
this.GetCommentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCommentsOperationCompleted);
|
|
}
|
|
this.InvokeAsync("GetComments", new object[] {
|
|
userId,
|
|
itemTypeId,
|
|
itemId}, this.GetCommentsOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnGetCommentsOperationCompleted(object arg) {
|
|
if ((this.GetCommentsCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.GetCommentsCompleted(this, new GetCommentsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddComment", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public int AddComment(string itemTypeId, int itemId, string commentText, int severityId) {
|
|
object[] results = this.Invoke("AddComment", new object[] {
|
|
itemTypeId,
|
|
itemId,
|
|
commentText,
|
|
severityId});
|
|
return ((int)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public System.IAsyncResult BeginAddComment(string itemTypeId, int itemId, string commentText, int severityId, System.AsyncCallback callback, object asyncState) {
|
|
return this.BeginInvoke("AddComment", new object[] {
|
|
itemTypeId,
|
|
itemId,
|
|
commentText,
|
|
severityId}, callback, asyncState);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public int EndAddComment(System.IAsyncResult asyncResult) {
|
|
object[] results = this.EndInvoke(asyncResult);
|
|
return ((int)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void AddCommentAsync(string itemTypeId, int itemId, string commentText, int severityId) {
|
|
this.AddCommentAsync(itemTypeId, itemId, commentText, severityId, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void AddCommentAsync(string itemTypeId, int itemId, string commentText, int severityId, object userState) {
|
|
if ((this.AddCommentOperationCompleted == null)) {
|
|
this.AddCommentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddCommentOperationCompleted);
|
|
}
|
|
this.InvokeAsync("AddComment", new object[] {
|
|
itemTypeId,
|
|
itemId,
|
|
commentText,
|
|
severityId}, this.AddCommentOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnAddCommentOperationCompleted(object arg) {
|
|
if ((this.AddCommentCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.AddCommentCompleted(this, new AddCommentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteComment", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public int DeleteComment(int commentId) {
|
|
object[] results = this.Invoke("DeleteComment", new object[] {
|
|
commentId});
|
|
return ((int)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public System.IAsyncResult BeginDeleteComment(int commentId, System.AsyncCallback callback, object asyncState) {
|
|
return this.BeginInvoke("DeleteComment", new object[] {
|
|
commentId}, callback, asyncState);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public int EndDeleteComment(System.IAsyncResult asyncResult) {
|
|
object[] results = this.EndInvoke(asyncResult);
|
|
return ((int)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void DeleteCommentAsync(int commentId) {
|
|
this.DeleteCommentAsync(commentId, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void DeleteCommentAsync(int commentId, object userState) {
|
|
if ((this.DeleteCommentOperationCompleted == null)) {
|
|
this.DeleteCommentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteCommentOperationCompleted);
|
|
}
|
|
this.InvokeAsync("DeleteComment", new object[] {
|
|
commentId}, this.DeleteCommentOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnDeleteCommentOperationCompleted(object arg) {
|
|
if ((this.DeleteCommentCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.DeleteCommentCompleted(this, new DeleteCommentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public new void CancelAsync(object userState) {
|
|
base.CancelAsync(userState);
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
public delegate void GetCommentsCompletedEventHandler(object sender, GetCommentsCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class GetCommentsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal GetCommentsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public System.Data.DataSet Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((System.Data.DataSet)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
public delegate void AddCommentCompletedEventHandler(object sender, AddCommentCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class AddCommentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal AddCommentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public int Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((int)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
public delegate void DeleteCommentCompletedEventHandler(object sender, DeleteCommentCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class DeleteCommentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal DeleteCommentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public int Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((int)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
}
|