public override int GetHashCode() { int hash = 1; if (Control != 0) { hash ^= Control.GetHashCode(); } if (Status != 0) { hash ^= Status.GetHashCode(); } if (DeviceName.Length != 0) { hash ^= DeviceName.GetHashCode(); } if (DeviceId.Length != 0) { hash ^= DeviceId.GetHashCode(); } if (Operator.Length != 0) { hash ^= Operator.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = AlertID; hashCode = (hashCode * 397) ^ Code; hashCode = (hashCode * 397) ^ (Source != null ? Source.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Severity != null ? Severity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ SnoozedEndDate.GetHashCode(); hashCode = (hashCode * 397) ^ (ThresholdValue1 != null ? ThresholdValue1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue2 != null ? ThresholdValue2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue3 != null ? ThresholdValue3.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue4 != null ? ThresholdValue4.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue5 != null ? ThresholdValue5.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DeviceGuid != null ? DeviceGuid.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AdditionalInfo != null ? AdditionalInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AlertCategoryID != null ? AlertCategoryID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Archived.GetHashCode(); hashCode = (hashCode * 397) ^ ArchivedDate.GetHashCode(); hashCode = (hashCode * 397) ^ TicketID.GetHashCode(); hashCode = (hashCode * 397) ^ (AlertMessage != null ? AlertMessage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DeviceName != null ? DeviceName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CustomerID; hashCode = (hashCode * 397) ^ (CustomerName != null ? CustomerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MessageTemplate != null ? MessageTemplate.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FolderID.GetHashCode(); hashCode = (hashCode * 397) ^ PollingCyclesCount.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (DeviceName.Length != 0) { hash ^= DeviceName.GetHashCode(); } if (InterfaceName.Length != 0) { hash ^= InterfaceName.GetHashCode(); } if (Address.Length != 0) { hash ^= Address.GetHashCode(); } if (DeviceDetails.Length != 0) { hash ^= DeviceDetails.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashFullName = FullName == null ? 0 : FullName.GetHashCode(); int hashDeviceName = DeviceName == null ? 0 : DeviceName.GetHashCode(); int hashCOMPort = COMPort == null ? 0 : COMPort.GetHashCode(); return(hashFullName ^ hashDeviceName ^ hashCOMPort); }
public override int GetHashCode() { int result = DeviceName.GetHashCode(); result = 31 * result + Interval; result = 31 * result + Timeout; result = 31 * result + EqualityComparer <byte[]> .Default.GetHashCode(ScanResponse);; return(result); }
/// <summary> /// Computes the hash code for the current metadata object. /// </summary> /// <returns> /// The hash code for the current metadata object, extracted from a combination /// of hashes for the device name and various version numbers. /// </returns> public override int GetHashCode() { return(17 * DeviceName.GetHashCode() + 8971 * FirmwareVersion.GetHashCode() + 2803 * ProtocolVersion.GetHashCode() + 691 * HardwareVersion.GetHashCode() + 1409 * AssemblyNumber.GetHashCode() + 2333 * PrereleaseVersion.GetHashCode()); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Photos != null) { hashCode = hashCode * 59 + Photos.GetHashCode(); } if (Gear != null) { hashCode = hashCode * 59 + Gear.GetHashCode(); } if (Calories != null) { hashCode = hashCode * 59 + Calories.GetHashCode(); } if (SegmentEfforts != null) { hashCode = hashCode * 59 + SegmentEfforts.GetHashCode(); } if (DeviceName != null) { hashCode = hashCode * 59 + DeviceName.GetHashCode(); } if (EmbedToken != null) { hashCode = hashCode * 59 + EmbedToken.GetHashCode(); } if (SplitsMetric != null) { hashCode = hashCode * 59 + SplitsMetric.GetHashCode(); } if (SplitsStandard != null) { hashCode = hashCode * 59 + SplitsStandard.GetHashCode(); } if (Laps != null) { hashCode = hashCode * 59 + Laps.GetHashCode(); } if (BestEfforts != null) { hashCode = hashCode * 59 + BestEfforts.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { var s = 1; if (Addresses != null) { foreach (var a in Addresses) { s += a.GetHashCode(); } } s += (DeviceName?.GetHashCode() + DeviceModel?.GetHashCode()) ?? 0; return(s); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.deviceName) { hashcode = (hashcode * 397) + DeviceName.GetHashCode(); } if (__isset.systemName) { hashcode = (hashcode * 397) + SystemName.GetHashCode(); } if (__isset.systemVersion) { hashcode = (hashcode * 397) + SystemVersion.GetHashCode(); } if (__isset.model) { hashcode = (hashcode * 397) + Model.GetHashCode(); } if (__isset.carrierCode) { hashcode = (hashcode * 397) + CarrierCode.GetHashCode(); } if (__isset.carrierName) { hashcode = (hashcode * 397) + CarrierName.GetHashCode(); } if (__isset.applicationType) { hashcode = (hashcode * 397) + ApplicationType.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { return(DeviceName.GetHashCode()); }