Server/ClientData.cs
author StephaneLenclud
Sat, 13 Jun 2015 11:29:22 +0200
changeset 144 8e4c7cca77b8
child 141 6f1da2b5c2ec
permissions -rw-r--r--
Minor clean up.
     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 }