diff --git a/src/SuperMemoAssistant.Interop/Interop/SuperMemo/Elements/Builders/ElementBuilder.cs b/src/SuperMemoAssistant.Interop/Interop/SuperMemo/Elements/Builders/ElementBuilder.cs index c578b28..30e0bb6 100644 --- a/src/SuperMemoAssistant.Interop/Interop/SuperMemo/Elements/Builders/ElementBuilder.cs +++ b/src/SuperMemoAssistant.Interop/Interop/SuperMemo/Elements/Builders/ElementBuilder.cs @@ -125,6 +125,9 @@ public ElementBuilder(ElementType type, /// The kind of element (e.g. article, item, task, ...) public ElementType Type { get; } + /// Defines the initial interval for the element + public int Interval { get; private set; } = 1; + /// The content definitions (e.g. text, images, ...) public List Contents { get; } = new List(); @@ -298,6 +301,18 @@ public ElementBuilder WithTemplate(ITemplate template) return this; } + /// Determines the element's initial interval + /// + /// + public ElementBuilder WithInterval(int interval) + { + if (interval < 1) + interval = 1; + + Interval = interval; + return this; + } + /// Defines how to apply /// ///