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; }
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(); }