< 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: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 39
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_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>
 1887313        public int FrameId { get; private set; }
 14
 15        /// <summary>
 16        /// Interactions register4ed in the given frame
 17        /// </summary>
 2092718        public List<Interaction> Interactions { get; } = new List<Interaction>();
 19
 20        /// <summary>
 21        /// Initializes the data class with an empty List of <see cref="Interaction"/>
 22        /// </summary>
 23        /// <param name="id">Id of the frame</param>
 52624        public InteractionFrame(int id)
 52625        {
 52626            FrameId = id;
 52627        }
 28
 29        /// <summary>
 30        /// Initializes the data class with an the provided List of <see cref="Interaction"/>
 31        /// </summary>
 32        /// <param name="id">Id of the frame</param>
 33        /// <param name="interactions">The Interactions that have been registered in this frame</param>
 27634        public InteractionFrame(int id, List<Interaction> interactions) : this(id)
 27635        {
 27636            Interactions = interactions;
 27637        }
 38    }
 39}