Server/ClientData.cs
author StephaneLenclud
Wed, 02 Sep 2015 12:54:07 +0200
changeset 152 03a1757a38df
parent 140 4dff57d255c9
child 171 151e11cac3b2
permissions -rw-r--r--
Providing optical drives list.
Optical drive to eject not hard coded anymore.
     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         //Client management
    33         public DateTime LastSwitchTime { get; set; }
    34     }
    35 }