Example #1
0
        internal BoardMembership(IJsonBoardMembership json, string ownerId, TrelloAuthorization auth)
        {
            Id       = json.Id;
            _context = new BoardMembershipContext(Id, ownerId, auth);
            _context.Synchronized += Synchronized;

            _member     = new Field <Member>(_context, nameof(Member));
            _memberType = new Field <BoardMembershipType?>(_context, nameof(MemberType));
            _memberType.AddRule(NullableHasValueRule <BoardMembershipType> .Instance);
            _memberType.AddRule(EnumerationRule <BoardMembershipType?> .Instance);
            _isDeactivated = new Field <bool?>(_context, nameof(IsDeactivated));

            TrelloConfiguration.Cache.Add(this);

            _context.Merge(json);
        }
Example #2
0
 void IMergeJson <IJsonBoardMembership> .Merge(IJsonBoardMembership json, bool overwrite)
 {
     _context.Merge(json, overwrite);
 }
Example #3
0
 void IMergeJson <IJsonBoardMembership> .Merge(IJsonBoardMembership json)
 {
     _context.Merge(json);
 }