public PartMatchInfo(Rebrickable.Models.SetPart setPart)
 {
     PartID    = setPart.Part.PartNum;
     ColorID   = setPart.Color?.Id ?? -1;
     NeededQty = setPart.Quantity;
     IsSpare   = setPart.IsSpare;
 }
 public PartToFind(Rebrickable.Models.SetPart setPart)
 {
     Alternates = new List <string>();
     PartID     = setPart.Part.PartNum;
     ColorID    = setPart.Color?.Id ?? -1;
     Quantity   = setPart.Quantity;
     IsSpare    = setPart.IsSpare;
 }
Exemplo n.º 3
0
 public SetPartWrapper(Rebrickable.Models.SetPart setPart)
 {
     PartID     = setPart.Part.PartNum;
     PartName   = setPart.Part.Name;
     CategoryID = setPart.Part.PartCatId;
     ElementID  = setPart.ElementId;
     ColorID    = setPart.Color.Id;
     Quantity   = setPart.Quantity;
 }