author | StephaneLenclud |
Sun, 26 Feb 2017 18:00:10 +0100 | |
changeset 280 | f90d1e101932 |
parent 184 | 7b6aa551eb6c |
permissions | -rw-r--r-- |
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@171 | 7 |
using SharpLib.Display; |
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@184 | 21 |
Priority = Priorities.Default; |
StephaneLenclud@140 | 22 |
Callback = aCallback; |
StephaneLenclud@279 | 23 |
HasNewLayout = true; |
StephaneLenclud@279 | 24 |
View = new View(); |
StephaneLenclud@140 | 25 |
} |
StephaneLenclud@140 | 26 |
|
StephaneLenclud@140 | 27 |
public string SessionId { get; set; } |
StephaneLenclud@140 | 28 |
public string Name { get; set; } |
StephaneLenclud@184 | 29 |
public uint Priority { get; set; } |
StephaneLenclud@279 | 30 |
public Target Target { get; set; } |
StephaneLenclud@279 | 31 |
public View View { get; set; } |
StephaneLenclud@140 | 32 |
public ICallback Callback { get; set; } |
StephaneLenclud@279 | 33 |
|
StephaneLenclud@141 | 34 |
|
StephaneLenclud@175 | 35 |
public bool HasNewLayout { get; set; } |
StephaneLenclud@175 | 36 |
|
StephaneLenclud@141 | 37 |
//Client management |
StephaneLenclud@141 | 38 |
public DateTime LastSwitchTime { get; set; } |
StephaneLenclud@176 | 39 |
|
StephaneLenclud@176 | 40 |
|
StephaneLenclud@176 | 41 |
|
StephaneLenclud@140 | 42 |
} |
StephaneLenclud@140 | 43 |
} |