Server/ClientData.cs
author StephaneLenclud
Wed, 08 Mar 2017 18:33:00 +0100
changeset 283 f18d6170a223
parent 184 7b6aa551eb6c
permissions -rw-r--r--
Starting renaming to HTCIC.
Setup update and test.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Linq;
     4 using System.Text;
     5 using System.Threading.Tasks;
     6 //
     7 using SharpLib.Display;
     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             Priority = Priorities.Default;
    22             Callback = aCallback;
    23             HasNewLayout = true;
    24             View = new View();       
    25         }
    26 
    27         public string SessionId { get; set; }
    28         public string Name { get; set; }
    29         public uint Priority { get; set; }
    30         public Target Target { get; set; }
    31         public View View { get; set; }
    32         public ICallback Callback { get; set; }
    33         
    34 
    35         public bool HasNewLayout { get; set; }
    36 
    37         //Client management
    38         public DateTime LastSwitchTime { get; set; }
    39 
    40 
    41 
    42     }
    43 }