/// <summary> /// Returns true if the LiveInstrumentInfo has the same information. /// </summary> public bool Equals(LiveInstrumentInfo other) { if (ReferenceEquals(other, null)) { return(false); } else { return(InstrumentInfo.Equals(other.InstrumentInfo) && Status == other.Status && TimeDifference == other.TimeDifference && LastSuccessfulCommunication == other.LastSuccessfulCommunication && ErrorCount == other.ErrorCount && DownloadingExperimentsEqual(other)); } }
/// <summary> /// Creates a new LiveInstrumentInfo with the provided InstrumentInfo /// </summary> public LiveInstrumentInfo(InstrumentInfo instrumentInfo) { InstrumentInfo = instrumentInfo; }