public bool AddCardHistory(CardHistory CardHistory, [System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] ref string ErrorRepresent) { object[] results = this.Invoke("AddCardHistory", new object[] { CardHistory, ErrorRepresent }); ErrorRepresent = ((string)(results[1])); return((bool)(results[0])); }
/// <remarks/> public void AddCardHistoryAsync(CardHistory CardHistory, string ErrorRepresent, object userState) { if ((this.AddCardHistoryOperationCompleted == null)) { this.AddCardHistoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddCardHistoryOperationCompleted); } this.InvokeAsync("AddCardHistory", new object[] { CardHistory, ErrorRepresent }, this.AddCardHistoryOperationCompleted, userState); }
public bool AddCardHistory(CardHistory cardHistory, [NotNull] ref string errorRepresent) { if (errorRepresent == null) { throw new ArgumentNullException(nameof(errorRepresent)); } var newCardHistory = new itws.CardHistory { CreatorUserName = cardHistory.CreatorUserName, CreatorId = cardHistory.CreatorId, CreatorEMail = "", Labels = cardHistory.LabelsNames.ToArray(), CardId = cardHistory.CardId, BoardId = cardHistory.BoardId, CreationDateTime = cardHistory.CreationDateTime, Name = cardHistory.Name, Text = cardHistory.Text, CardUrl = cardHistory.Url }; var cardRecordList = new List <CardRecord>(); cardHistory.InWorkActionRecordList.ForEach(t => cardRecordList.Add(new CardRecord { BeginerId = t.BeginerId, BeginerUserName = t.BeginerUserName, BeginerEMail = "", FinisherId = t.FinisherId, FinisherUserName = t.FinisherUserName, FinisherEMail = "", StartDateTime = t.StartDateTime, FinishDateTime = t.FinishDateTime, ListId = t.ListId })); newCardHistory.InWorkActionRecordList = cardRecordList.ToArray(); var commentsList = new List <Comment>(); cardHistory.Comments.ForEach(t => commentsList.Add(new Comment { UserEMail = "", UserName = t.AuthorUserName, CommentDateTime = t.CommentDateTime, Text = t.Text })); newCardHistory.Comments = commentsList.ToArray(); errorRepresent = string.Empty; return(_service.AddCardHistory(newCardHistory, ref errorRepresent)); }
/// <remarks/> public void AddCardHistoryAsync(CardHistory CardHistory, string ErrorRepresent) { this.AddCardHistoryAsync(CardHistory, ErrorRepresent, null); }