Server/ClientData.cs
author StephaneLenclud
Thu, 11 Jun 2015 17:21:15 +0200
changeset 140 4dff57d255c9
child 141 6f1da2b5c2ec
permissions -rw-r--r--
Moving ClientData class to its own file.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Linq;
     4 using System.Text;
     5 using System.Threading.Tasks;
     6 //
     7 using SharpDisplay;
     8 
     9 namespace SharpDisplayManager
    10 {
    11     /// <summary>
    12     /// A UI thread copy of a client relevant data.
    13     /// Keeping this copy in the UI thread helps us deal with threading issues.
    14     /// </summary>
    15     public class ClientData
    16     {
    17         public ClientData(string aSessionId, ICallback aCallback)
    18         {
    19             SessionId = aSessionId;
    20             Name = "";
    21             Fields = new List<DataField>();
    22             Layout = new TableLayout(1, 2); //Default to one column and two rows
    23             Callback = aCallback;
    24         }
    25 
    26         public string SessionId { get; set; }
    27         public string Name { get; set; }
    28         public List<DataField> Fields { get; set; }
    29         public TableLayout Layout { get; set; }
    30         public ICallback Callback { get; set; }
    31     }
    32 }