StephaneLenclud@140: using System; StephaneLenclud@140: using System.Collections.Generic; StephaneLenclud@140: using System.Linq; StephaneLenclud@140: using System.Text; StephaneLenclud@140: using System.Threading.Tasks; StephaneLenclud@140: // StephaneLenclud@171: using SharpLib.Display; StephaneLenclud@140: StephaneLenclud@140: namespace SharpDisplayManager StephaneLenclud@140: { StephaneLenclud@140: /// StephaneLenclud@140: /// A UI thread copy of a client relevant data. StephaneLenclud@140: /// Keeping this copy in the UI thread helps us deal with threading issues. StephaneLenclud@140: /// StephaneLenclud@140: public class ClientData StephaneLenclud@140: { StephaneLenclud@140: public ClientData(string aSessionId, ICallback aCallback) StephaneLenclud@140: { StephaneLenclud@140: SessionId = aSessionId; StephaneLenclud@140: Name = ""; StephaneLenclud@184: Priority = Priorities.Default; StephaneLenclud@140: Callback = aCallback; StephaneLenclud@279: HasNewLayout = true; StephaneLenclud@279: View = new View(); StephaneLenclud@140: } StephaneLenclud@140: StephaneLenclud@140: public string SessionId { get; set; } StephaneLenclud@140: public string Name { get; set; } StephaneLenclud@184: public uint Priority { get; set; } StephaneLenclud@279: public Target Target { get; set; } StephaneLenclud@279: public View View { get; set; } StephaneLenclud@140: public ICallback Callback { get; set; } StephaneLenclud@279: StephaneLenclud@141: StephaneLenclud@175: public bool HasNewLayout { get; set; } StephaneLenclud@175: StephaneLenclud@141: //Client management StephaneLenclud@141: public DateTime LastSwitchTime { get; set; } StephaneLenclud@176: StephaneLenclud@176: StephaneLenclud@176: StephaneLenclud@140: } StephaneLenclud@140: }