< Summary - ReFlex - Library

Information
Class: ReFlex.Core.Common.Components.InteractionFrame
Assembly: ReFlex.Core.Common
File(s): D:\a\reflex\reflex\library\src\Core\Common\Components\InteractionFrame.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 43
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_FrameId()100%11100%
get_TimestampSeconds()100%11100%
get_Interactions()100%11100%
.ctor(...)100%11100%
.ctor(...)100%11100%

File(s)

D:\a\reflex\reflex\library\src\Core\Common\Components\InteractionFrame.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace ReFlex.Core.Common.Components
 4{
 5    /// <summary>
 6    /// Data class containing all touches that have been registered on a specific depth frame (or in a specific time fra
 7    /// </summary>
 8    public class InteractionFrame
 9    {
 10        /// <summary>
 11        /// the Identifier for the Frame, typically a sequentially counting number
 12        /// </summary>
 6493013        public int FrameId { get; private set; }
 14
 15        /// <summary>Monotonic seconds in the producer's clock domain; not a UTC date.</summary>
 4304416        public double TimestampSeconds { get; private set; }
 17
 18        /// <summary>
 19        /// Interactions register4ed in the given frame
 20        /// </summary>
 6323621        public List<Interaction> Interactions { get; } = new List<Interaction>();
 22
 23        /// <summary>
 24        /// Initializes the data class with an empty List of <see cref="Interaction"/>
 25        /// </summary>
 26        /// <param name="id">Id of the frame</param>
 2355627        public InteractionFrame(int id, double timestampSeconds = 0)
 2355628        {
 2355629            FrameId = id;
 2355630            TimestampSeconds = timestampSeconds;
 2355631        }
 32
 33        /// <summary>
 34        /// Initializes the data class with an the provided List of <see cref="Interaction"/>
 35        /// </summary>
 36        /// <param name="id">Id of the frame</param>
 37        /// <param name="interactions">The Interactions that have been registered in this frame</param>
 2102638        public InteractionFrame(int id, List<Interaction> interactions, double timestampSeconds = 0) : this(id, timestam
 2102639        {
 2102640            Interactions = interactions;
 2102641        }
 42    }
 43}