IIntervalFactory Interface
Used for creating intervals (relative durations).
public interface IIntervalFactoryMethods
Section titled “Methods”IIntervalFactory.Create(IntervalType, int) Method
Section titled “IIntervalFactory.Create(IntervalType, int) Method”Creates an interval with the given multiplier and type.
HAKOM.TSM.Net.Api.Time.Intervals.IInterval Create(HAKOM.TSM.Net.Api.Time.Intervals.IntervalType type, int multiplier=1);Parameters
Section titled “Parameters”type IntervalType
The IntervalType (hour, minute, etc.).
multiplier System.Int32
The amount of base type durations constituting the duration of the interval.
Returns
Section titled “Returns”IIntervalFactory.TryCreate(IntervalType, int) Method
Section titled “IIntervalFactory.TryCreate(IntervalType, int) Method”Attempts to create an interval with the given multiplier and type.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Time.Intervals.IInterval> TryCreate(HAKOM.TSM.Net.Api.Time.Intervals.IntervalType type, int multiplier=1);Parameters
Section titled “Parameters”type IntervalType
The IntervalType (hour, minute, etc.).
multiplier System.Int32
The amount of base type durations constituting the duration of the interval.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<IInterval>
A Result<TValue> that contains either the new IInterval or an error that describes why it could not be created.
Was this page helpful?Thanks for your feedback!