예제 #1
0
        public RemoteComment AddCommentToPage(long pageId, string commentTitle, string commentContent)
        {
            RemoteComment comment = null;
            this.ExecuteLoggedIn(
                (confluence, token) =>
                {
                    var remoteComment = new RemoteComment { pageId = pageId, creator = this.UserName, title = commentTitle, content = commentContent, };
                    var addedComment = confluence.addComment(token, remoteComment);
                    comment = addedComment;
                });

            return comment;
        }
 /// <remarks/>
 public void editCommentAsync(string in0, RemoteComment in1, object userState) {
     if ((this.editCommentOperationCompleted == null)) {
         this.editCommentOperationCompleted = new System.Threading.SendOrPostCallback(this.OneditCommentOperationCompleted);
     }
     this.InvokeAsync("editComment", new object[] {
                                                      in0,
                                                      in1}, this.editCommentOperationCompleted, userState);
 }
 /// <remarks/>
 public void editCommentAsync(string in0, RemoteComment in1) {
     this.editCommentAsync(in0, in1, null);
 }
 /// <remarks/>
 public System.IAsyncResult BegineditComment(string in0, RemoteComment in1, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("editComment", new object[] {
                                                             in0,
                                                             in1}, callback, asyncState);
 }
 public RemoteComment editComment(string in0, RemoteComment in1) {
     object[] results = this.Invoke("editComment", new object[] {
                                                                    in0,
                                                                    in1});
     return ((RemoteComment)(results[0]));
 }
 /// <remarks/>
 public void addCommentAsync(string in0, RemoteComment in1) {
     this.addCommentAsync(in0, in1, null);
 }