/// <summary>
        /// Initializes a new instance of the <see cref="ClientRunData"/> class.
        /// </summary>
        /// <param name="other">The other instance from which data will be copied.</param>
        protected ClientRunData(ClientRunData other)
        {
            if (other == null)
            {
                return;
            }

            StartTime = other.StartTime;
        }
示例#2
0
        private static ClientRunData GetClientRunDataFahClient(ClientRun clientRun)
        {
            var clientRunData = new ClientRunData();

            foreach (var line in clientRun.LogLines)
            {
                switch (line.LineType)
                {
                case LogLineType.LogOpen:
                    clientRunData.StartTime = (DateTime)line.LineData;
                    break;
                }
            }

            return(clientRunData);
        }
示例#3
0
        private static ClientRunData GetClientRunDataLegacy(ClientRun clientRun)
        {
            var clientRunData = new ClientRunData();

            foreach (var line in clientRun.LogLines)
            {
                if (line.LineType == LogLineType.LogOpen)
                {
                    clientRunData.StartTime = (DateTime)line.LineData;
                }
                else if (line.LineType == LogLineType.ClientVersion)
                {
                    clientRunData.ClientVersion = line.LineData.ToString();
                }
                else if (line.LineType == LogLineType.ClientArguments)
                {
                    clientRunData.Arguments = line.LineData.ToString();
                }
                else if (line.LineType == LogLineType.ClientUserNameTeam)
                {
                    var userAndTeam = (Tuple <string, int>)line.LineData;
                    clientRunData.FoldingID = userAndTeam.Item1;
                    clientRunData.Team      = userAndTeam.Item2;
                }
                else if (line.LineType == LogLineType.ClientUserID ||
                         line.LineType == LogLineType.ClientReceivedUserID)
                {
                    clientRunData.UserID = line.LineData.ToString();
                }
                else if (line.LineType == LogLineType.ClientMachineID)
                {
                    clientRunData.MachineID = (int)line.LineData;
                }
            }

            return(clientRunData);
        }
 public CustomClientRunData(ClientRunData clientRunData)
     : base(clientRunData)
 {
 }