/** * Invoked upon selection of priority. **/ private void priority_list_SelectedIndexChanged(object sender, EventArgs e) { try { Enum.TryParse(priority_list.GetItemText(priority_list.SelectedItem).ToUpper(), out priority); if (priority.Equals(Priority.HIGH)) { descriptionColor = Color.Red; } else if (priority.Equals(Priority.MEDIUM)) { descriptionColor = Color.Yellow; } else if (priority.Equals(Priority.LOW)) { descriptionColor = Color.Green; } description_box.BackColor = descriptionColor; } catch (ArgumentException ex) { MessageBox.Show("A priority must be picked."); priority_list.BackColor = Color.Red; return; } problem_type_list.BackColor = Color.White; }
/// <summary> /// Two DnsResourceDataUri are equal iff their priority, weight and target fields are equal. /// </summary> public bool Equals(DnsResourceDataUri other) { return(other != null && Priority.Equals(other.Priority) && Weight.Equals(other.Weight) && Target.SequenceEqual(other.Target)); }
/// <summary> /// Returns true if Shipment instances are equal /// </summary> /// <param name="input">Instance of Shipment to be compared</param> /// <returns>Boolean</returns> public bool Equals(Shipment input) { if (input == null) { return(false); } return (( Id == input.Id || (Id != null && Id.Equals(input.Id)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( Priority == input.Priority || (Priority != null && Priority.Equals(input.Priority)) ) && ( Pickup == input.Pickup || (Pickup != null && Pickup.Equals(input.Pickup)) ) && ( Delivery == input.Delivery || (Delivery != null && Delivery.Equals(input.Delivery)) ) && ( Size == input.Size || Size != null && Size.SequenceEqual(input.Size) ) && ( RequiredSkills == input.RequiredSkills || RequiredSkills != null && RequiredSkills.SequenceEqual(input.RequiredSkills) ) && ( AllowedVehicles == input.AllowedVehicles || AllowedVehicles != null && AllowedVehicles.SequenceEqual(input.AllowedVehicles) ) && ( DisallowedVehicles == input.DisallowedVehicles || DisallowedVehicles != null && DisallowedVehicles.SequenceEqual(input.DisallowedVehicles) ) && ( MaxTimeInVehicle == input.MaxTimeInVehicle || (MaxTimeInVehicle != null && MaxTimeInVehicle.Equals(input.MaxTimeInVehicle)) )); }
/// <summary> /// Two DnsResourceDataServerSelection are equal iff their priority, weight, port and target fields are equal. /// </summary> public bool Equals(DnsResourceDataServerSelection other) { return(other != null && Priority.Equals(other.Priority) && Weight.Equals(other.Weight) && Port.Equals(other.Port) && Target.Equals(other.Target)); }
public void Log(Priority priority, string message) { if (priority.Equals(Priority.HIGH)) { Debug.Log(message); } Log(message); }
private void Continue_Handler(object sender, RoutedEventArgs e) { if (Priority.Equals("Doctor")) { this.NavigationService.Navigate(new ConfirmAppointmentPage()); } else { this.NavigationService.Navigate(new ChoseDoctorPage("21.10.2020. 12:44")); } }
/// <summary> /// Returns true if RobotInfoAllOf instances are equal /// </summary> /// <param name="other">Instance of RobotInfoAllOf to be compared</param> /// <returns>Boolean</returns> public bool Equals(RobotInfoAllOf other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( EnergyCubes == other.EnergyCubes || EnergyCubes.Equals(other.EnergyCubes) ) && ( Health == other.Health || Health.Equals(other.Health) ) && ( Active == other.Active || Active.Equals(other.Active) ) && ( Virtual == other.Virtual || Virtual.Equals(other.Virtual) ) && ( Priority == other.Priority || Priority.Equals(other.Priority) ) && ( OnTurn == other.OnTurn || OnTurn.Equals(other.OnTurn) ) && ( IsMine == other.IsMine || IsMine.Equals(other.IsMine) ) && ( HandCards == other.HandCards || HandCards.Equals(other.HandCards) ) && ( Attitude == other.Attitude || Attitude.Equals(other.Attitude) ) && ( Type == other.Type || Type.Equals(other.Type) )); }
private static void TasksWithPriority(List <Task> tasks) { Console.WriteLine("Enter priority value to check how many such tasks do you have"); Priority definedPriority = InitPriority(); CheckTasksExist(tasks); List <Task> tasksByPriority = tasks.Where(task => definedPriority.Equals(task.Priority)).ToList(); if (tasksByPriority.Count != 0) { Console.WriteLine($"You have {tasksByPriority.Count} task(s) with {definedPriority} priority:"); PrintTaskList(tasksByPriority); } else { Console.WriteLine("You do not have tasks with such priority"); } }
/// <summary> /// このクラスのオブジェクト同士を比較する /// </summary> /// <param name="other">他のオブジェクト</param> /// <returns>自分自身の方が小さければ0未満の値、大きければ0より大きい値、等しければ0</returns> public int CompareTo(ToDoTask other) { // (1) 期限の古い順 if (!DueDate.Date.Equals(other.DueDate.Date)) { // 自分の DueDate の方が古ければ、負の値になる return((int)(DueDate.Date - other.DueDate.Date).TotalMinutes); } // (2) 期限が同じ場合、優先度の高い順 if (!Priority.Equals(other.Priority)) { // 自分の Priority の方が高ければ、負の値になる return(other.Priority - Priority); } // (3) 優先度も同じなら、名前順 return(Name.CompareTo(other.Name)); }
private bool ValidBlock2() { string temp = Block_2; string sub = null; bool valid = true; int offset = 0; // Check the length first. // If this is wrong don't bother checking anything else. // Block 2 is optional therefore it is a valid message if it is not present if (Block_2 == null) { errors.Add("Block 2 -- Optional -- : NOT present"); valid = true; return(valid); } else if (((Block_2.Length < MIN_BLOCK_2i_LEN) || (Block_2.Length > MAX_BLOCK_2i_LEN)) && ((Block_2.Length < MIN_BLOCK_2o_LEN) || (Block_2.Length > MAX_BLOCK_2o_LEN))) { errors.Add("Invalid length for block 2 : " + Block_2.Length); valid = false; return(valid); } // Check START OF BLOCK INDICATOR = { // This is a mandatory field. // The character { indicates the beginning of a block. if (temp[0] != '{') { errors.Add("BLOCK 2: Message missing START OF BLOCK INDICATOR ({)"); valid = false; } temp = temp.Substring(1); // Check BLOCK IDENTIFIER = 3c // This is a mandatory field. // 1 to 3 alphanumeric characters used to define block contents. // This block identiifer must be 1. sub = temp.Substring(0, temp.IndexOf(':')); if (string.Equals(sub, "2") == false) { errors.Add("BLOCK 2: Invalid BLOCK IDENTIFIER : " + sub + " Expecting : 2"); valid = false; } // We found the colon in the last step now get rid of it // This is a mandatory field. temp = temp.Substring(2); // Check the INPUT OUTPUT IDENTIFIER // This is a mandatory field. // For an input message, the Input/Output Identifier consists of the single letter 'I' // For an input message, the Input/Output Identifier consists of the single letter 'O' InputOutputID = temp.Substring(0, 1); if ((InputOutputID.Equals("I") == false) && (InputOutputID.Equals("O") == false)) { errors.Add("BLOCK 2: Invalid INPUT OUTPUT IDENTIFIER : " + InputOutputID + " Expecting : I or O"); valid = false; } // Check SWIFT MESSAGE TYPE // The Message Type consists of 3 digits which define the MT number of the message being input // NO CHECK NEEDED. // Move forward fitr IOId temp = temp.Substring(1); // Move forward for SWIFT message type. MessageType = temp.Substring(0, 3); if (IsValidMessageType(MessageType) == false) { errors.Add("BLOCK 2: Invalid SWIFT Message Type : " + MessageType); valid = false; } temp = temp.Substring(3); if (InputOutputID.Equals("I") == true) { // We now know it is an INPUT message check the length if ((Block_2.Length < MIN_BLOCK_2i_LEN) || (Block_2.Length > MAX_BLOCK_2i_LEN)) { errors.Add("Invalid length for block 2 INPUT Message: " + Block_2.Length + " Expection length between : " + MIN_BLOCK_2i_LEN + " and " + MAX_BLOCK_2i_LEN); valid = false; return(valid); } // The DESTINATION ADDRESS = 12x // This address is the 12-character SWIFT address of the receiver of the message. // It defines the destination to which the message should be sent. // NO CHECK needed DestinationAddress = temp.Substring(0, 12); temp = temp.Substring(12); // Check the PRIORITY = 1a // This character, used within FIN Application Headers only, defines the priority with which a message is delivered. // The possible values are: // S = System // U = Urgent // N = Normal Priority = temp.Substring(0, 1); if ((Priority.Equals("S") == false) && (Priority.Equals("U") == false) && (Priority.Equals("N") == false)) { errors.Add("BLOCK 2: PRIORITY not set: "); valid = false; offset = 0; Priority = ""; } else { offset = 1; } // Check DELIVERY MONITORING = 1x // Delivery monitoring options apply only to FIN user-to-user messages. The chosen option is expressed as a single digit: // 1 = Non - Delivery Warning // 2 = Delivery Notification // 3 = Non - Delivery Warning and Delivery Notification // If the message has priority 'U', the user must request delivery monitoring option '1' or '3'. // If the message has priority 'N', the user can request delivery monitoring option '2' or, by leaving the option blank, no delivery monitoring. temp = temp.Substring(offset); DeliveryMonitoring = temp.Substring(0, 1); if (Priority.Equals("S")) { if ((DeliveryMonitoring.Equals("1") == false) && (DeliveryMonitoring.Equals("1") == false) && (DeliveryMonitoring.Equals("3") == false) && (DeliveryMonitoring.Equals("") == false)) { errors.Add("BLOCK 2: Invalid DELIVERY MONITORING - not set" + DeliveryMonitoring + " PRIORITY : " + Priority + " DELIVERY MONITORING MUST BE : 1, 2, 3 or blank"); valid = false; } else { offset = 1; } } else if (Priority.Equals("U")) { if ((DeliveryMonitoring.Equals("1") == false) && (DeliveryMonitoring.Equals("3") == false)) { errors.Add("BLOCK 2: Invalid DELIVERY MONITORING - " + DeliveryMonitoring + " PRIORITY : " + Priority + " DELIVERY MONITORING MUST BE : 1 or 3"); valid = false; } else { offset = 1; } } else if (Priority.Equals("N")) { if ((DeliveryMonitoring.Equals("2") == false) && (DeliveryMonitoring.Equals("") == false)) { errors.Add("BLOCK 2: Invalid DELIVERY MONITORING - " + DeliveryMonitoring + " PRIORITY : " + Priority + " DELIVERY MONITORING MUST BE : 2 or blank"); valid = false; } else { offset = 1; } } else { offset = 0; DeliveryMonitoring = ""; } // Check OBSOLESCENCE PERIOD = 3n // The obsolescence period defines the period of time after which a Delayed Message (DLM) trailer is added to a FIN user-to-user message // when the message is delivered. For urgent priority messages, it is also the period of time after which, if the message remains undelivered, // a Non-Delivery Warning is generated. // The values for the obsolescence period are: // 003 (15 minutes) for 'U' priority, and // 020 (100 minutes) for 'N' priority. temp = temp.Substring(offset); ObsolescencePeriod = temp.Substring(0, 3); if (Priority.Equals("U")) { if (ObsolescencePeriod.Equals("003") == false) { errors.Add("BLOCK 2: Invalid OBSOLESCENCE PERIOD - " + ObsolescencePeriod + " PRIORITY : " + Priority + " DELIVERY MONITORING MUST BE : 003"); valid = false; } } else if (Priority.Equals("N")) { if (ObsolescencePeriod.Equals("020") == false) { errors.Add("BLOCK 2: Invalid OBSOLESCENCE PERIOD - " + ObsolescencePeriod + " PRIORITY : " + Priority + " DELIVERY MONITORING MUST BE : 020"); valid = false; } } // Check END OF BLOCK INDICATOR = } // This is a mandatory field. // The character } indicates the end of a block. temp = temp.Substring(3); if (temp[0] != '}') { errors.Add("BLOCK 2: Message missing END OF BLOCK INDICATOR (})"); valid = false; } return(valid); } else if (InputOutputID.Equals("O") == true) { // We now know it is an OUTPUT message check the length if ((Block_2.Length < MIN_BLOCK_2o_LEN) || (Block_2.Length > MAX_BLOCK_2o_LEN)) { errors.Add("Invalid length for block 2 OUTPUT Message: " + Block_2.Length + " Expection length between : " + MIN_BLOCK_2o_LEN + " and " + MAX_BLOCK_2o_LEN); valid = false; return(valid); } // The INPUT TIME = HHMM // The Input Time local to the sender of the message. // The hour (HH) and minute (MM) on which the sender sent the message to SWIFT. // This is a mandatory field. InputTime = temp.Substring(0, 4); temp = temp.Substring(4); // The MIR - Message Input Reference // The MIR consists of four elements: // 1.Sender's Date - Date when the Sender sent the message // 2.The Logical Termial (LT)Address is a 12 - character FIN address. // It is the address of the sending LT for this message and includes the Branch Code. It consists of: // -the Sender BIC 8 CODE(8 characters) // - the Logical Terminal Code(1 upper case alphabetic character) // - the Sender BIC Branch Code(3 characters). It defines the sender of the message to the SWIFT network. // 3.Session number - As appropriate, the current application session number based on the Login.See block 1, field 4 // 4.Sequence number - See block 1, field 5 MIR = temp.Substring(0, 28); temp = temp.Substring(28); MIRSenderDate = MIR.Substring(0, 6); MIRLTAddress = MIR.Substring(6, 12); MIRBICCode = MIRLTAddress.Substring(0, 8); MIRLTCode = MIRLTAddress.Substring(8, 1);; MIRBICBranchCode = MIRLTAddress.Substring(9, 3); MIRSessNum = MIR.Substring(18, 4); MIRSeqNum = MIR.Substring(22, 6); // The OUTPUT DATE - YYMMDD // The output date, local to the receiver // This is a mandatory field OutputDate = temp.Substring(0, 6); temp = temp.Substring(6); // The OUTPUT TIME - HHMM // The output time, local to the receiver // This is a mandatory field OutputTime = temp.Substring(0, 4); temp = temp.Substring(4); // Check the PRIORITY = 1a // This character, used within FIN Application Headers only, defines the priority with which a message is delivered. // The possible values are: // S = System // U = Urgent // N = Normal Priority = temp.Substring(0, 1); if ((Priority.Equals("S") == false) && (Priority.Equals("U") == false) && (Priority.Equals("N") == false)) { errors.Add("BLOCK 2: PRIORITY -- OPTIONAL -- : not present"); valid = false; offset = 0; Priority = ""; } else { offset = 1; } // Check END OF BLOCK INDICATOR = } // This is a mandatory field. // The character } indicates the end of a block. temp = temp.Substring(offset); if (temp[0] != '}') { errors.Add("BLOCK 2: Message missing END OF BLOCK INDICATOR (})"); valid = false; } } else { // Some how we corrupted the valid data we just had. errors.Add("BLOCK 2: Data corruption"); valid = false; } return(valid); }
public bool Equals(QueuePriority other) { // ReSharper disable SuspiciousTypeConversion.Global return(Priority.Equals(other) && Sequence.Equals(other)); // ReSharper restore SuspiciousTypeConversion.Global }
public void Equals_priority_should_return_true_when_this_value_is_equal_to_other(Priority left, Priority right) { left.Equals(right).Should().BeTrue(); }
public void Equals_object_should_return_false_when_this_value_is_not_equal_to_other(Priority left, object right) { left.Equals(right).Should().BeFalse(); }
public bool Equals(ContentTypeDescription input) { if (input == null) { return(false); } return (( CType == input.CType || (CType != null && CType.Equals(input.CType)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( ContentDescription == input.ContentDescription || (ContentDescription != null && ContentDescription.Equals(input.ContentDescription)) ) && ( PreviewImage == input.PreviewImage || (PreviewImage != null && PreviewImage.Equals(input.PreviewImage)) ) && ( Priority == input.Priority || (Priority.Equals(input.Priority)) ) && ( Reminder == input.Reminder || (Reminder != null && Reminder.Equals(input.Reminder)) ) && ( Properties == input.Properties || (Properties != null && Properties.SequenceEqual(input.Properties)) ) && ( TagMetadata == input.TagMetadata || (TagMetadata != null && TagMetadata.SequenceEqual(input.TagMetadata)) ) && ( TagMetadataItems == input.TagMetadataItems || (TagMetadataItems != null && TagMetadataItems.SequenceEqual(input.TagMetadataItems)) ) && ( UsageExamples == input.UsageExamples || (UsageExamples != null && UsageExamples.SequenceEqual(input.UsageExamples)) ) && ( ShowInContentEditor == input.ShowInContentEditor || (ShowInContentEditor != null && ShowInContentEditor.Equals(input.ShowInContentEditor)) ) && ( TypeOf == input.TypeOf || (TypeOf != null && TypeOf.Equals(input.TypeOf)) ) && ( BindIdentifierToProperty == input.BindIdentifierToProperty || (BindIdentifierToProperty != null && BindIdentifierToProperty.Equals(input.BindIdentifierToProperty)) ) && ( BoundRegex == input.BoundRegex || (BoundRegex != null && BoundRegex.Equals(input.BoundRegex)) ) && ( ForceIdentifierBinding == input.ForceIdentifierBinding || (ForceIdentifierBinding != null && ForceIdentifierBinding.Equals(input.ForceIdentifierBinding)) ) && ( AllowComments == input.AllowComments || (AllowComments != null && AllowComments.Equals(input.AllowComments)) ) && ( AutoEnglishPropertyFallback == input.AutoEnglishPropertyFallback || (AutoEnglishPropertyFallback != null && AutoEnglishPropertyFallback.Equals(input.AutoEnglishPropertyFallback)) ) && ( BulkUploadable == input.BulkUploadable || (BulkUploadable != null && BulkUploadable.Equals(input.BulkUploadable)) ) && ( Previews == input.Previews || (Previews != null && Previews.SequenceEqual(input.Previews)) ) && ( SuppressCmsPath == input.SuppressCmsPath || (SuppressCmsPath != null && SuppressCmsPath.Equals(input.SuppressCmsPath)) ) && ( PropertySections == input.PropertySections || (PropertySections != null && PropertySections.SequenceEqual(input.PropertySections)) )); }
/// <summary> /// Returns true if Service instances are equal /// </summary> /// <param name="input">Instance of Service to be compared</param> /// <returns>Boolean</returns> public bool Equals(Service input) { if (input == null) { return(false); } return (( Id == input.Id || (Id != null && Id.Equals(input.Id)) ) && ( Type == input.Type || (Type != null && Type.Equals(input.Type)) ) && ( Priority == input.Priority || (Priority != null && Priority.Equals(input.Priority)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( Address == input.Address || (Address != null && Address.Equals(input.Address)) ) && ( Duration == input.Duration || (Duration != null && Duration.Equals(input.Duration)) ) && ( PreparationTime == input.PreparationTime || (PreparationTime != null && PreparationTime.Equals(input.PreparationTime)) ) && ( TimeWindows == input.TimeWindows || TimeWindows != null && TimeWindows.SequenceEqual(input.TimeWindows) ) && ( Size == input.Size || Size != null && Size.SequenceEqual(input.Size) ) && ( RequiredSkills == input.RequiredSkills || RequiredSkills != null && RequiredSkills.SequenceEqual(input.RequiredSkills) ) && ( AllowedVehicles == input.AllowedVehicles || AllowedVehicles != null && AllowedVehicles.SequenceEqual(input.AllowedVehicles) ) && ( DisallowedVehicles == input.DisallowedVehicles || DisallowedVehicles != null && DisallowedVehicles.SequenceEqual(input.DisallowedVehicles) ) && ( MaxTimeInVehicle == input.MaxTimeInVehicle || (MaxTimeInVehicle != null && MaxTimeInVehicle.Equals(input.MaxTimeInVehicle)) )); }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } var other = (MessageProperties)obj; if (AppId == null) { if (other.AppId != null) { return(false); } } else if (!AppId.Equals(other.AppId)) { return(false); } if (ClusterId == null) { if (other.ClusterId != null) { return(false); } } else if (!ClusterId.Equals(other.ClusterId)) { return(false); } if (ContentEncoding == null) { if (other.ContentEncoding != null) { return(false); } } else if (!ContentEncoding.Equals(other.ContentEncoding)) { return(false); } if (ContentLength != other.ContentLength) { return(false); } if (ContentType == null) { if (other.ContentType != null) { return(false); } } else if (!ContentType.Equals(other.ContentType)) { return(false); } if (CorrelationId == null) { if (other.CorrelationId != null) { return(false); } } else if (!CorrelationId.Equals(other.CorrelationId)) { return(false); } if (DeliveryMode != other.DeliveryMode) { return(false); } if (DeliveryTag != other.DeliveryTag) { return(false); } if (Expiration == null) { if (other.Expiration != null) { return(false); } } else if (!Expiration.Equals(other.Expiration)) { return(false); } if (!Headers.Equals(other.Headers)) { return(false); } if (MessageCount == null) { if (other.MessageCount != null) { return(false); } } else if (!MessageCount.Equals(other.MessageCount)) { return(false); } if (MessageId == null) { if (other.MessageId != null) { return(false); } } else if (!MessageId.Equals(other.MessageId)) { return(false); } if (Priority == null) { if (other.Priority != null) { return(false); } } else if (!Priority.Equals(other.Priority)) { return(false); } if (ReceivedExchange == null) { if (other.ReceivedExchange != null) { return(false); } } else if (!ReceivedExchange.Equals(other.ReceivedExchange)) { return(false); } if (ReceivedRoutingKey == null) { if (other.ReceivedRoutingKey != null) { return(false); } } else if (!ReceivedRoutingKey.Equals(other.ReceivedRoutingKey)) { return(false); } if (Redelivered == null) { if (other.Redelivered != null) { return(false); } } else if (!Redelivered.Equals(other.Redelivered)) { return(false); } if (ReplyTo == null) { if (other.ReplyTo != null) { return(false); } } else if (!ReplyTo.Equals(other.ReplyTo)) { return(false); } if (Timestamp == null) { if (other.Timestamp != null) { return(false); } } else if (!Timestamp.Equals(other.Timestamp)) { return(false); } if (Type == null) { if (other.Type != null) { return(false); } } else if (!Type.Equals(other.Type)) { return(false); } if (UserId == null) { if (other.UserId != null) { return(false); } } else if (!UserId.Equals(other.UserId)) { return(false); } return(true); }
/// <summary> /// Returns true if RobotInfo instances are equal /// </summary> /// <param name="other">Instance of RobotInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(RobotInfo other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Direction == other.Direction || Direction.Equals(other.Direction) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Id == other.Id || Id.Equals(other.Id) ) && ( Location == other.Location || Location != null && Location.Equals(other.Location) ) && ( EnergyCubes == other.EnergyCubes || EnergyCubes.Equals(other.EnergyCubes) ) && ( Health == other.Health || Health.Equals(other.Health) ) && ( Active == other.Active || Active.Equals(other.Active) ) && ( Virtual == other.Virtual || Virtual.Equals(other.Virtual) ) && ( Priority == other.Priority || Priority.Equals(other.Priority) ) && ( OnTurn == other.OnTurn || OnTurn.Equals(other.OnTurn) ) && ( IsMine == other.IsMine || IsMine.Equals(other.IsMine) ) && ( HandCards == other.HandCards || HandCards.Equals(other.HandCards) ) && ( Attitude == other.Attitude || Attitude.Equals(other.Attitude) ) && ( Type == other.Type || Type.Equals(other.Type) )); }
protected bool Equals(Location other) { return(ChangeFrequency == other.ChangeFrequency && LastModified.Equals(other.LastModified) && Priority.Equals(other.Priority) && Equals(Url, other.Url) && Equals(Metadata, other.Metadata)); }
/// <summary> /// Returns true if Withdrawal instances are equal /// </summary> /// <param name="other">Instance of Withdrawal to be compared</param> /// <returns>Boolean</returns> public bool Equals(Withdrawal other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( UpdatedTimestamp == other.UpdatedTimestamp || UpdatedTimestamp != null && UpdatedTimestamp.Equals(other.UpdatedTimestamp) ) && ( Fee == other.Fee || Fee != null && Fee.Equals(other.Fee) ) && ( ConfirmedTimestamp == other.ConfirmedTimestamp || ConfirmedTimestamp != null && ConfirmedTimestamp.Equals(other.ConfirmedTimestamp) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( Priority == other.Priority || Priority != null && Priority.Equals(other.Priority) ) && ( Currency == other.Currency || Currency.Equals(other.Currency) ) && ( State == other.State || State.Equals(other.State) ) && ( Address == other.Address || Address != null && Address.Equals(other.Address) ) && ( CreatedTimestamp == other.CreatedTimestamp || CreatedTimestamp != null && CreatedTimestamp.Equals(other.CreatedTimestamp) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( TransactionId == other.TransactionId || TransactionId != null && TransactionId.Equals(other.TransactionId) )); }