Server/ClientData.cs
author StephaneLenclud
Wed, 02 Sep 2015 22:35:47 +0200
changeset 155 703daa997f59
parent 140 4dff57d255c9
child 171 151e11cac3b2
permissions -rw-r--r--
v0.5.3.0
Publishing version with eject drive selection.
Updating to newest SharpLibWin32.
Adding ejection error checks.
StephaneLenclud@140
     1
using System;
StephaneLenclud@140
     2
using System.Collections.Generic;
StephaneLenclud@140
     3
using System.Linq;
StephaneLenclud@140
     4
using System.Text;
StephaneLenclud@140
     5
using System.Threading.Tasks;
StephaneLenclud@140
     6
//
StephaneLenclud@140
     7
using SharpDisplay;
StephaneLenclud@140
     8
StephaneLenclud@140
     9
namespace SharpDisplayManager
StephaneLenclud@140
    10
{
StephaneLenclud@140
    11
    /// <summary>
StephaneLenclud@140
    12
    /// A UI thread copy of a client relevant data.
StephaneLenclud@140
    13
    /// Keeping this copy in the UI thread helps us deal with threading issues.
StephaneLenclud@140
    14
    /// </summary>
StephaneLenclud@140
    15
    public class ClientData
StephaneLenclud@140
    16
    {
StephaneLenclud@140
    17
        public ClientData(string aSessionId, ICallback aCallback)
StephaneLenclud@140
    18
        {
StephaneLenclud@140
    19
            SessionId = aSessionId;
StephaneLenclud@140
    20
            Name = "";
StephaneLenclud@140
    21
            Fields = new List<DataField>();
StephaneLenclud@140
    22
            Layout = new TableLayout(1, 2); //Default to one column and two rows
StephaneLenclud@140
    23
            Callback = aCallback;
StephaneLenclud@140
    24
        }
StephaneLenclud@140
    25
StephaneLenclud@140
    26
        public string SessionId { get; set; }
StephaneLenclud@140
    27
        public string Name { get; set; }
StephaneLenclud@140
    28
        public List<DataField> Fields { get; set; }
StephaneLenclud@140
    29
        public TableLayout Layout { get; set; }
StephaneLenclud@140
    30
        public ICallback Callback { get; set; }
StephaneLenclud@141
    31
StephaneLenclud@141
    32
        //Client management
StephaneLenclud@141
    33
        public DateTime LastSwitchTime { get; set; }
StephaneLenclud@140
    34
    }
StephaneLenclud@140
    35
}