Пример #1
0
 public PadCreateOrUpdate(Guid?id, string name, PadCategory category, PadMaterial?material, PadTexture?texture, PadColor?color, bool?hasCenterHole, Either <Guid, DataUrlImage>?image, List <PadOptionCreateOrUpdate> options)
 {
     Id            = id;
     Name          = name;
     Category      = new(new[] { category });
     Material      = material;
     Texture       = texture;
     Color         = color;
     HasCenterHole = hasCenterHole;
     Image         = image;
     Options       = options;
 }
Пример #2
0
 public Pad(string name, PadCategory category, PadMaterial?material, PadTexture?texture, PadColor?color, bool?hasCenterHole, ProcessedImage?image = null, List <PadOption>?options = null)
 {
     Id            = Guid.NewGuid();
     Name          = name;
     Category      = new(new[] { category });
     Material      = material;
     Texture       = texture;
     Color         = color;
     HasCenterHole = hasCenterHole;
     Image         = image;
     Options       = options ?? new();
 }