source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Microsoft.Samples.Kinect.Webserver/Sensor/Serialization/FunctionCallRequest.cs@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 1.7 KB
Line 
1// -----------------------------------------------------------------------
2// <copyright file="FunctionCallRequest.cs" company="Microsoft">
3// Copyright (c) Microsoft Corporation. All rights reserved.
4// </copyright>
5// -----------------------------------------------------------------------
6
7namespace Microsoft.Samples.Kinect.Webserver.Sensor.Serialization
8{
9 using System.Diagnostics.CodeAnalysis;
10
11 /// <summary>
12 /// Serializable representation of a function call request.
13 /// </summary>
14 [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Lower case names allowed for JSON serialization.")]
15 internal class FunctionCallRequest
16 {
17 /// <summary>
18 /// Initializes a new instance of the <see cref="FunctionCallRequest"/> class.
19 /// </summary>
20 /// <param name="functionName">
21 /// Name of remote function to invoke.
22 /// </param>
23 /// <param name="args">
24 /// Function arguments.
25 /// </param>
26 /// <param name="sequenceId">
27 /// Sequence Id used to match function call request with its response.
28 /// </param>
29 public FunctionCallRequest(string functionName, object[] args, int sequenceId)
30 {
31 this.name = functionName;
32 this.args = args;
33 this.id = sequenceId;
34 }
35
36 public string name { get; set; }
37
38 /// <summary>
39 /// Function arguments.
40 /// </summary>
41 public object[] args { get; set; }
42
43 /// <summary>
44 /// Sequence Id used to match function call request with its response.
45 /// </summary>
46 public int id { get; set; }
47 }
48}
Note: See TracBrowser for help on using the repository browser.