1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Server/ClientData.cs Thu Jun 11 17:21:15 2015 +0200
1.3 @@ -0,0 +1,32 @@
1.4 +using System;
1.5 +using System.Collections.Generic;
1.6 +using System.Linq;
1.7 +using System.Text;
1.8 +using System.Threading.Tasks;
1.9 +//
1.10 +using SharpDisplay;
1.11 +
1.12 +namespace SharpDisplayManager
1.13 +{
1.14 + /// <summary>
1.15 + /// A UI thread copy of a client relevant data.
1.16 + /// Keeping this copy in the UI thread helps us deal with threading issues.
1.17 + /// </summary>
1.18 + public class ClientData
1.19 + {
1.20 + public ClientData(string aSessionId, ICallback aCallback)
1.21 + {
1.22 + SessionId = aSessionId;
1.23 + Name = "";
1.24 + Fields = new List<DataField>();
1.25 + Layout = new TableLayout(1, 2); //Default to one column and two rows
1.26 + Callback = aCallback;
1.27 + }
1.28 +
1.29 + public string SessionId { get; set; }
1.30 + public string Name { get; set; }
1.31 + public List<DataField> Fields { get; set; }
1.32 + public TableLayout Layout { get; set; }
1.33 + public ICallback Callback { get; set; }
1.34 + }
1.35 +}