// -----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// -----------------------------------------------------------------------
namespace Microsoft.Samples.Kinect.Webserver.Sensor.Serialization
{
using System.Diagnostics.CodeAnalysis;
using Microsoft.Kinect.Toolkit.Interaction;
///
/// Represents interaction information available for a specified location in UI.
///
///
/// This class is equivalent to , but meant for serializing
/// from JSON responses from a web client.
///
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Lower case names allowed for JSON serialization.")]
internal class InteractionStreamHitTestInfo
{
///
/// True if interaction target can respond to press actions.
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "is", Justification = "Lower case names allowed for JSON serialization.")]
public bool isPressTarget { get; set; }
///
/// Identifier for control that corresponds to UI location of interest.
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "press", Justification = "Lower case names allowed for JSON serialization.")]
public string pressTargetControlId { get; set; }
///
/// X-coordinate of point towards which user's hand pointer should be
/// attracted as the user's hand performs a press action.
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "press", Justification = "Lower case names allowed for JSON serialization.")]
public double pressAttractionPointX { get; set; }
///
/// Y-coordinate of point towards which user's hand pointer should be
/// attracted as the user's hand performs a press action.
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "press", Justification = "Lower case names allowed for JSON serialization.")]
public double pressAttractionPointY { get; set; }
///
/// True if interaction target can respond to grip/release actions.
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "is", Justification = "Lower case names allowed for JSON serialization.")]
public bool isGripTarget { get; set; }
}
}