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;
 }
예제 #2
0
 public ActionContext(string id, TrelloAuthorization auth)
     : base(auth)
 {
     Data.Id           = id;
     ActionDataContext = new ActionDataContext(Auth);
     ActionDataContext.SynchronizeRequested += () => Synchronize();
     Data.Data = ActionDataContext.Data;
 }
예제 #3
0
 protected override void ApplyDependentChanges(IJsonAction json)
 {
     Data.Data = ActionDataContext.Data;
     if (ActionDataContext.HasChanges)
     {
         json.Data = ActionDataContext.GetChanges();
         ActionDataContext.ClearChanges();
     }
 }
예제 #4
0
        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);
        }