// -----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// -----------------------------------------------------------------------
namespace Microsoft.Samples.Kinect.Webserver.Sensor.Serialization
{
using System.Diagnostics.CodeAnalysis;
///
/// Serializable representation of a function call request.
///
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Lower case names allowed for JSON serialization.")]
internal class FunctionCallRequest
{
///
/// Initializes a new instance of the class.
///
///
/// Name of remote function to invoke.
///
///
/// Function arguments.
///
///
/// Sequence Id used to match function call request with its response.
///
public FunctionCallRequest(string functionName, object[] args, int sequenceId)
{
this.name = functionName;
this.args = args;
this.id = sequenceId;
}
public string name { get; set; }
///
/// Function arguments.
///
public object[] args { get; set; }
///
/// Sequence Id used to match function call request with its response.
///
public int id { get; set; }
}
}