Ejemplo n.º 1
0
 public ConsoleState(ConsoleState original)
 {
     Id                = original.Id;
     Connected         = original.Connected;
     TelemetryState    = original.TelemetryState;
     TelemetryInterval = original.TelemetryInterval;
     ConsoleColor      = original.ConsoleColor;
 }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            bool result = false;

            if (obj is ConsoleState)
            {
                ConsoleState other = (ConsoleState)obj;
                result = Id.Equals(other.Id) &&
                         Connected.Equals(other.Connected) &&
                         TelemetryState.Equals(other.TelemetryState) &&
                         TelemetryInterval.Equals(other.TelemetryInterval) &&
                         ConsoleColor.Equals(other.ConsoleColor);
            }
            return(result);
        }