コード例 #1
0
        internal OrganizationMembership(IJsonOrganizationMembership json, string ownerId, TrelloAuthorization auth)
        {
            Id       = json.Id;
            _context = new OrganizationMembershipContext(Id, ownerId, auth);
            _context.Synchronized += Synchronized;

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

            TrelloConfiguration.Cache.Add(this);

            _context.Merge(json);
        }
コード例 #2
0
 void IMergeJson <IJsonOrganizationMembership> .Merge(IJsonOrganizationMembership json, bool overwrite)
 {
     _context.Merge(json, overwrite);
 }
コード例 #3
0
 void IMergeJson <IJsonOrganizationMembership> .Merge(IJsonOrganizationMembership json)
 {
     _context.Merge(json);
 }