Ejemplo n.º 1
0
        internal Label(IJsonLabel json, TrelloAuthorization auth)
        {
            Id       = json.Id;
            _context = new LabelContext(Id, auth);
            _board   = new Field <Board>(_context, nameof(Board));
            _color   = new Field <LabelColor?>(_context, nameof(Color));
            _color.AddRule(EnumerationRule <LabelColor?> .Instance);
            _name = new Field <string>(_context, nameof(Name));
            _uses = new Field <int?>(_context, nameof(Uses));

            _context.Merge(json);
        }
Ejemplo n.º 2
0
        internal Label(IJsonLabel json, TrelloAuthorization auth)
        {
            Id       = json.Id;
            _context = new LabelContext(Id, auth);
            _board   = new Field <Board>(_context, nameof(Board));
            _color   = new Field <LabelColor?>(_context, nameof(Color));
            _color.AddRule(EnumerationRule <LabelColor?> .Instance);
            _name = new Field <string>(_context, nameof(Name));

            _context.Merge(json);

            if (auth != TrelloAuthorization.Null)
            {
                TrelloConfiguration.Cache.Add(this);
            }
        }
Ejemplo n.º 3
0
 void IMergeJson <IJsonLabel> .Merge(IJsonLabel json, bool overwrite)
 {
     _context.Merge(json, overwrite);
 }
Ejemplo n.º 4
0
 void IMergeJson <IJsonLabel> .Merge(IJsonLabel json)
 {
     _context.Merge(json);
 }