コード例 #1
0
        public override int GetHashCode()
        {
            int hashCode = 1605817888;

            if (OrderId != null)
            {
                hashCode += OrderId.GetHashCode();
            }

            if (Version != null)
            {
                hashCode += Version.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (State != null)
            {
                hashCode += State.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (LocationId.Length != 0)
            {
                hash ^= LocationId.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (metadata_ != null)
            {
                hash ^= Metadata.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hashCode = -400983667;

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (ProductType != null)
            {
                hashCode += ProductType.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            return(hashCode);
        }
コード例 #4
0
        public override int GetHashCode()
        {
            int hashCode = -735515174;

            if (StartAtRange != null)
            {
                hashCode += StartAtRange.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (SegmentFilters != null)
            {
                hashCode += SegmentFilters.GetHashCode();
            }

            if (BookingId != null)
            {
                hashCode += BookingId.GetHashCode();
            }

            return(hashCode);
        }
コード例 #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (LocationId.Length != 0)
            {
                hash ^= LocationId.GetHashCode();
            }
            if (Type != global::Google.Cloud.Firestore.Admin.V1.Database.Types.DatabaseType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (ConcurrencyMode != global::Google.Cloud.Firestore.Admin.V1.Database.Types.ConcurrencyMode.Unspecified)
            {
                hash ^= ConcurrencyMode.GetHashCode();
            }
            if (Etag.Length != 0)
            {
                hash ^= Etag.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #6
0
        public override int GetHashCode()
        {
            int hashCode = -1717136415;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Description != null)
            {
                hashCode += Description.GetHashCode();
            }

            if (AmountMoney != null)
            {
                hashCode += AmountMoney.GetHashCode();
            }

            if (ReceivableId != null)
            {
                hashCode += ReceivableId.GetHashCode();
            }

            return(hashCode);
        }
コード例 #7
0
        public override int GetHashCode()
        {
            int hashCode = 2055161563;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (Limit != null)
            {
                hashCode += Limit.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            return(hashCode);
        }
コード例 #8
0
ファイル: FtdDeviceInfo.cs プロジェクト: ESOmenium/Modbus
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^
            Flags.GetHashCode() ^
            SerialNumber.GetHashCode() ^
            Type.GetHashCode() ^
            LocationId.GetHashCode() ^
            Description.GetHashCode());
 }
コード例 #9
0
        public override int GetHashCode()
        {
            int hashCode = 226628405;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (Tenders != null)
            {
                hashCode += Tenders.GetHashCode();
            }

            if (Refunds != null)
            {
                hashCode += Refunds.GetHashCode();
            }

            if (ReferenceId != null)
            {
                hashCode += ReferenceId.GetHashCode();
            }

            if (Product != null)
            {
                hashCode += Product.GetHashCode();
            }

            if (ClientId != null)
            {
                hashCode += ClientId.GetHashCode();
            }

            if (ShippingAddress != null)
            {
                hashCode += ShippingAddress.GetHashCode();
            }

            if (OrderId != null)
            {
                hashCode += OrderId.GetHashCode();
            }

            return(hashCode);
        }
コード例 #10
0
        public override int GetHashCode()
        {
            int hashCode = 801909259;

            if (IdempotencyKey != null)
            {
                hashCode += IdempotencyKey.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (PlanId != null)
            {
                hashCode += PlanId.GetHashCode();
            }

            if (CustomerId != null)
            {
                hashCode += CustomerId.GetHashCode();
            }

            if (StartDate != null)
            {
                hashCode += StartDate.GetHashCode();
            }

            if (CanceledDate != null)
            {
                hashCode += CanceledDate.GetHashCode();
            }

            if (TaxPercentage != null)
            {
                hashCode += TaxPercentage.GetHashCode();
            }

            if (PriceOverrideMoney != null)
            {
                hashCode += PriceOverrideMoney.GetHashCode();
            }

            if (CardId != null)
            {
                hashCode += CardId.GetHashCode();
            }

            if (Timezone != null)
            {
                hashCode += Timezone.GetHashCode();
            }

            return(hashCode);
        }
コード例 #11
0
ファイル: Refund.cs プロジェクト: HostMeApp/square-dotnet-sdk
        public override int GetHashCode()
        {
            int hashCode = -772282082;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (TransactionId != null)
            {
                hashCode += TransactionId.GetHashCode();
            }

            if (TenderId != null)
            {
                hashCode += TenderId.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (Reason != null)
            {
                hashCode += Reason.GetHashCode();
            }

            if (AmountMoney != null)
            {
                hashCode += AmountMoney.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (ProcessingFeeMoney != null)
            {
                hashCode += ProcessingFeeMoney.GetHashCode();
            }

            if (AdditionalRecipients != null)
            {
                hashCode += AdditionalRecipients.GetHashCode();
            }

            return(hashCode);
        }
コード例 #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FiscalSetupId.GetHashCode();
         hashCode = (hashCode * 397) ^ ArticleId.GetHashCode();
         hashCode = (hashCode * 397) ^ ArticleVariantId.GetHashCode();
         hashCode = (hashCode * 397) ^ LocationId.GetHashCode();
         return(hashCode);
     }
 }
コード例 #13
0
        public override int GetHashCode()
        {
            int hashCode = 805936600;

            if (BeginTime != null)
            {
                hashCode += BeginTime.GetHashCode();
            }

            if (EndTime != null)
            {
                hashCode += EndTime.GetHashCode();
            }

            if (SortOrder != null)
            {
                hashCode += SortOrder.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Total != null)
            {
                hashCode += Total.GetHashCode();
            }

            if (Last4 != null)
            {
                hashCode += Last4.GetHashCode();
            }

            if (CardBrand != null)
            {
                hashCode += CardBrand.GetHashCode();
            }

            if (Limit != null)
            {
                hashCode += Limit.GetHashCode();
            }

            return(hashCode);
        }
コード例 #14
0
ファイル: ProductInventory.cs プロジェクト: johaDev/CodegenCS
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (Bin == default(byte) ? 0 : Bin.GetHashCode());
         hash = hash * 23 + (LocationId == default(short) ? 0 : LocationId.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode());
         hash = hash * 23 + (Quantity == default(short) ? 0 : Quantity.GetHashCode());
         hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode());
         hash = hash * 23 + (Shelf == null ? 0 : Shelf.GetHashCode());
         return(hash);
     }
 }
コード例 #15
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (LocationId != null)
         {
             hashCode = hashCode * 59 + LocationId.GetHashCode();
         }
         if (ArrTime != null)
         {
             hashCode = hashCode * 59 + ArrTime.GetHashCode();
         }
         if (EndTime != null)
         {
             hashCode = hashCode * 59 + EndTime.GetHashCode();
         }
         if (WaitingTime != null)
         {
             hashCode = hashCode * 59 + WaitingTime.GetHashCode();
         }
         if (Distance != null)
         {
             hashCode = hashCode * 59 + Distance.GetHashCode();
         }
         if (DrivingTime != null)
         {
             hashCode = hashCode * 59 + DrivingTime.GetHashCode();
         }
         if (LoadBefore != null)
         {
             hashCode = hashCode * 59 + LoadBefore.GetHashCode();
         }
         if (LoadAfter != null)
         {
             hashCode = hashCode * 59 + LoadAfter.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #16
0
        public override int GetHashCode()
        {
            int hashCode = 224728365;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (OrderIds != null)
            {
                hashCode += OrderIds.GetHashCode();
            }

            return(hashCode);
        }
コード例 #17
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = LocationId.GetHashCode();
         hashCode = (hashCode * 397) ^ (CountryCode != null ? CountryCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RegionCode != null ? RegionCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CityName != null ? CityName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Latitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
         hashCode = (hashCode * 397) ^ MetroCode.GetHashCode();
         hashCode = (hashCode * 397) ^ (AreaCode != null ? AreaCode.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #18
0
        public override int GetHashCode()
        {
            int hashCode = -211695136;

            if (BeginTime != null)
            {
                hashCode += BeginTime.GetHashCode();
            }

            if (EndTime != null)
            {
                hashCode += EndTime.GetHashCode();
            }

            if (SortOrder != null)
            {
                hashCode += SortOrder.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (SourceType != null)
            {
                hashCode += SourceType.GetHashCode();
            }

            if (Limit != null)
            {
                hashCode += Limit.GetHashCode();
            }

            return(hashCode);
        }
コード例 #19
0
        public override int GetHashCode()
        {
            int hashCode = 1946622093;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (BreakName != null)
            {
                hashCode += BreakName.GetHashCode();
            }

            if (ExpectedDuration != null)
            {
                hashCode += ExpectedDuration.GetHashCode();
            }
            hashCode += IsPaid.GetHashCode();

            if (Version != null)
            {
                hashCode += Version.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            return(hashCode);
        }
コード例 #20
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (ActualCost == null ? 0 : ActualCost.GetHashCode());
         hash = hash * 23 + (ActualEndDate == null ? 0 : ActualEndDate.GetHashCode());
         hash = hash * 23 + (ActualResourceHrs == null ? 0 : ActualResourceHrs.GetHashCode());
         hash = hash * 23 + (ActualStartDate == null ? 0 : ActualStartDate.GetHashCode());
         hash = hash * 23 + (LocationId == default(short) ? 0 : LocationId.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (OperationSequence == default(short) ? 0 : OperationSequence.GetHashCode());
         hash = hash * 23 + (PlannedCost == default(decimal) ? 0 : PlannedCost.GetHashCode());
         hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode());
         hash = hash * 23 + (ScheduledEndDate == default(DateTime) ? 0 : ScheduledEndDate.GetHashCode());
         hash = hash * 23 + (ScheduledStartDate == default(DateTime) ? 0 : ScheduledStartDate.GetHashCode());
         hash = hash * 23 + (WorkOrderId == default(int) ? 0 : WorkOrderId.GetHashCode());
         return(hash);
     }
 }
コード例 #21
0
        public override int GetHashCode()
        {
            int hashCode = -660264854;

            if (OrderId != null)
            {
                hashCode += OrderId.GetHashCode();
            }

            if (Version != null)
            {
                hashCode += Version.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (State != null)
            {
                hashCode += State.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (FulfillmentUpdate != null)
            {
                hashCode += FulfillmentUpdate.GetHashCode();
            }

            return(hashCode);
        }
コード例 #22
0
        public override int GetHashCode()
        {
            int hashCode = 133095493;

            if (StartAt != null)
            {
                hashCode += StartAt.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (AppointmentSegments != null)
            {
                hashCode += AppointmentSegments.GetHashCode();
            }

            return(hashCode);
        }
コード例 #23
0
        public override int GetHashCode()
        {
            int hashCode = 1552949827;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Description != null)
            {
                hashCode += Description.GetHashCode();
            }

            if (AmountMoney != null)
            {
                hashCode += AmountMoney.GetHashCode();
            }

            return(hashCode);
        }
コード例 #24
0
        public override int GetHashCode()
        {
            int hashCode = -1549280345;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            if (Limit != null)
            {
                hashCode += Limit.GetHashCode();
            }

            return(hashCode);
        }
コード例 #25
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     // credit: http://stackoverflow.com/a/263416/677735
     unchecked // Overflow is fine, just wrap
     {
         var hash = 41;
         // Suitable nullity checks etc, of course :)
         if (LocationId != null)
         {
             hash = hash * 59 + LocationId.GetHashCode();
         }
         if (Lon != null)
         {
             hash = hash * 59 + Lon.GetHashCode();
         }
         if (Lat != null)
         {
             hash = hash * 59 + Lat.GetHashCode();
         }
         return(hash);
     }
 }
コード例 #26
0
        public override int GetHashCode()
        {
            int hashCode = 151741649;

            if (CatalogObjectId != null)
            {
                hashCode += CatalogObjectId.GetHashCode();
            }

            if (CatalogObjectType != null)
            {
                hashCode += CatalogObjectType.GetHashCode();
            }

            if (State != null)
            {
                hashCode += State.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Quantity != null)
            {
                hashCode += Quantity.GetHashCode();
            }

            if (CalculatedAt != null)
            {
                hashCode += CalculatedAt.GetHashCode();
            }

            return(hashCode);
        }
コード例 #27
0
        public override int GetHashCode()
        {
            int hashCode = -598612092;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (PriceMoney != null)
            {
                hashCode += PriceMoney.GetHashCode();
            }

            if (PricingType != null)
            {
                hashCode += PricingType.GetHashCode();
            }

            if (TrackInventory != null)
            {
                hashCode += TrackInventory.GetHashCode();
            }

            if (InventoryAlertType != null)
            {
                hashCode += InventoryAlertType.GetHashCode();
            }

            if (InventoryAlertThreshold != null)
            {
                hashCode += InventoryAlertThreshold.GetHashCode();
            }

            return(hashCode);
        }
コード例 #28
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (LocationId != null)
         {
             hashCode = hashCode * 59 + LocationId.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Lon != null)
         {
             hashCode = hashCode * 59 + Lon.GetHashCode();
         }
         if (Lat != null)
         {
             hashCode = hashCode * 59 + Lat.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #29
0
        public override int GetHashCode()
        {
            int hashCode = -1449210230;

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (SortOrder != null)
            {
                hashCode += SortOrder.GetHashCode();
            }

            if (BeginTime != null)
            {
                hashCode += BeginTime.GetHashCode();
            }

            if (EndTime != null)
            {
                hashCode += EndTime.GetHashCode();
            }

            if (Limit != null)
            {
                hashCode += Limit.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            return(hashCode);
        }
コード例 #30
0
        public override int GetHashCode()
        {
            int hashCode = -855846569;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (ReferenceId != null)
            {
                hashCode += ReferenceId.GetHashCode();
            }

            if (FromState != null)
            {
                hashCode += FromState.GetHashCode();
            }

            if (ToState != null)
            {
                hashCode += ToState.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (CatalogObjectId != null)
            {
                hashCode += CatalogObjectId.GetHashCode();
            }

            if (CatalogObjectType != null)
            {
                hashCode += CatalogObjectType.GetHashCode();
            }

            if (Quantity != null)
            {
                hashCode += Quantity.GetHashCode();
            }

            if (TotalPriceMoney != null)
            {
                hashCode += TotalPriceMoney.GetHashCode();
            }

            if (OccurredAt != null)
            {
                hashCode += OccurredAt.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (Source != null)
            {
                hashCode += Source.GetHashCode();
            }

            if (EmployeeId != null)
            {
                hashCode += EmployeeId.GetHashCode();
            }

            if (TransactionId != null)
            {
                hashCode += TransactionId.GetHashCode();
            }

            if (RefundId != null)
            {
                hashCode += RefundId.GetHashCode();
            }

            if (PurchaseOrderId != null)
            {
                hashCode += PurchaseOrderId.GetHashCode();
            }

            if (GoodsReceiptId != null)
            {
                hashCode += GoodsReceiptId.GetHashCode();
            }

            return(hashCode);
        }