/// <summary> /// Compares two DataTransfer requests for equality. /// </summary> /// <param name="DataTransferRequest">A DataTransfer request to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(DataTransferRequest DataTransferRequest) { if (DataTransferRequest is null) { return(false); } return(VendorId.Equals(DataTransferRequest.VendorId) && ((MessageId == null && DataTransferRequest.MessageId == null) || (MessageId != null && DataTransferRequest.MessageId != null && MessageId.Equals(DataTransferRequest.MessageId))) && ((Data == null && DataTransferRequest.Data == null) || (Data != null && DataTransferRequest.Data != null && Data.Equals(DataTransferRequest.Data)))); }
/// <summary> /// Compares two StatusNotification requests for equality. /// </summary> /// <param name="StatusNotificationRequest">A StatusNotification request to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public override Boolean Equals(StatusNotificationRequest StatusNotificationRequest) { if (StatusNotificationRequest is null) { return(false); } return(ConnectorId.Equals(StatusNotificationRequest.ConnectorId) && Status.Equals(StatusNotificationRequest.Status) && ErrorCode.Equals(StatusNotificationRequest.ErrorCode) && Info.Equals(StatusNotificationRequest.Info) && ((!StatusTimestamp.HasValue && !StatusNotificationRequest.StatusTimestamp.HasValue) || (StatusTimestamp.HasValue && StatusNotificationRequest.StatusTimestamp.HasValue && StatusTimestamp.Value.Equals(StatusNotificationRequest.StatusTimestamp.Value))) && VendorId.Equals(StatusNotificationRequest.VendorId) && VendorErrorCode.Equals(StatusNotificationRequest.VendorErrorCode)); }