TimeFrameV1 Constructor

Initializes a new instance of the TimeFrameV1 class.

Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public TimeFrameV1(
	Guid id,
	Guid day,
	TimeSpan start,
	TimeSpan end
)

Parameters

id  Guid
The identifier.
day  Guid
The day.
start  TimeSpan
The start.
end  TimeSpan
The end.
Example
The following example illustrates how to create TimeFrame
C#
using Gamanet.C4.SimpleInterfaces;
using System;

public class CreateTimeFrame
{
    static void Main()
    {
      var day = Guid.Parse("d0768bf6-7420-4163-bcbc-b7fb02829b9a");
      var start = DateTime.Parse("02/18/2020 07:22:16").TimeOfDay;
      var end = DateTime.Parse("02/22/2020 09:25:21").TimeOfDay;

      // create new instance of TimeFrame
      var timeFrame = new TimeFrame(Guid.NewGuid(), day, start, end);
    }
}
See Also

Reference

TimeFrameV1 Class
Gamanet.C4.SimpleInterfaces Namespace
CalendarV1