public ActionContext(string id, TrelloAuthorization auth) : base(auth) { Data.Id = id; ActionDataContext = new ActionDataContext(Auth); ActionDataContext.SubmitRequested += ct => HandleSubmitRequested("Text", ct); Data.Data = ActionDataContext.Data; }
public ActionContext(string id, TrelloAuthorization auth) : base(auth) { Data.Id = id; ActionDataContext = new ActionDataContext(Auth); ActionDataContext.SynchronizeRequested += () => Synchronize(); Data.Data = ActionDataContext.Data; }
protected override void ApplyDependentChanges(IJsonAction json) { Data.Data = ActionDataContext.Data; if (ActionDataContext.HasChanges) { json.Data = ActionDataContext.GetChanges(); ActionDataContext.ClearChanges(); } }
protected override IEnumerable <string> MergeDependencies(IJsonAction json, bool overwrite) { var properties = ActionDataContext.Merge(json.Data, overwrite).ToList(); if (json.Reactions != null) { Reactions.Update(json.Reactions.Select(a => a.GetFromCache <CommentReaction, IJsonCommentReaction>(Auth, overwrite, Data.Id))); properties.Add(nameof(Card.Actions)); } return(properties); }