public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } if (contentCase_ == ContentOneofCase.StartStream) { hash ^= StartStream.GetHashCode(); } if (contentCase_ == ContentOneofCase.InvocationRequest) { hash ^= InvocationRequest.GetHashCode(); } if (contentCase_ == ContentOneofCase.InvocationResponse) { hash ^= InvocationResponse.GetHashCode(); } hash ^= (int)contentCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (logout_ != null) { hash ^= Logout.GetHashCode(); } if (error_ != null) { hash ^= Error.GetHashCode(); } if (RequestId != 0) { hash ^= RequestId.GetHashCode(); } if (IsLast != false) { hash ^= IsLast.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (StatusCode != 0) { hash ^= StatusCode.GetHashCode(); } if (RequestId != 0UL) { hash ^= RequestId.GetHashCode(); } if (ApiUrl.Length != 0) { hash ^= ApiUrl.GetHashCode(); } hash ^= platformReturns_.GetHashCode(); if (authTicket_ != null) { hash ^= AuthTicket.GetHashCode(); } hash ^= returns_.GetHashCode(); if (Error.Length != 0) { hash ^= Error.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } if (EventId.Length != 0) { hash ^= EventId.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (eventCase_ == EventOneofCase.JobEvent) { hash ^= JobEvent.GetHashCode(); } if (eventCase_ == EventOneofCase.ProfileEvent) { hash ^= ProfileEvent.GetHashCode(); } if (EventNotes.Length != 0) { hash ^= EventNotes.GetHashCode(); } hash ^= (int)eventCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } if (OwnerId.Length != 0) { hash ^= OwnerId.GetHashCode(); } if (Skip != 0) { hash ^= Skip.GetHashCode(); } if (Take != 0) { hash ^= Take.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { return((RequestId.GetHashCode() * 397) ^ (Address != null ? Address.GetHashCode() : 0)); } }
public override int GetHashCode() { int hash = 1; if (Type != global::Prisel.Protobuf.PacketType.Default) { hash ^= Type.GetHashCode(); } if (messageCase_ == MessageOneofCase.SystemAction) { hash ^= SystemAction.GetHashCode(); } if (messageCase_ == MessageOneofCase.Action) { hash ^= Action.GetHashCode(); } if (HasRequestId) { hash ^= RequestId.GetHashCode(); } if (status_ != null) { hash ^= Status.GetHashCode(); } if (payload_ != null) { hash ^= Payload.GetHashCode(); } hash ^= (int)messageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (RequestId != 0) { hash ^= RequestId.GetHashCode(); } if (UserId.Length != 0) { hash ^= UserId.GetHashCode(); } if (StatusText.Length != 0) { hash ^= StatusText.GetHashCode(); } if (Lat != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lat); } if (Long != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Long); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void TestGetHashCode() { var id = Int32.MaxValue; var requestIdType = RequestIdType.FinancialInfo; var actionType = RequestActionType.Update; var instance = new RequestId(id, requestIdType, actionType); Assert.AreNotEqual(0, instance.GetHashCode()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.requestId) { hashcode = (hashcode * 397) + RequestId.GetHashCode(); } if (__isset.state) { hashcode = (hashcode * 397) + State.GetHashCode(); } if (__isset.messageId) { hashcode = (hashcode * 397) + MessageId.GetHashCode(); } if (__isset.eventNo) { hashcode = (hashcode * 397) + EventNo.GetHashCode(); } if (__isset.receiverCount) { hashcode = (hashcode * 397) + ReceiverCount.GetHashCode(); } if (__isset.successCount) { hashcode = (hashcode * 397) + SuccessCount.GetHashCode(); } if (__isset.failCount) { hashcode = (hashcode * 397) + FailCount.GetHashCode(); } if (__isset.cancelCount) { hashcode = (hashcode * 397) + CancelCount.GetHashCode(); } if (__isset.blockCount) { hashcode = (hashcode * 397) + BlockCount.GetHashCode(); } if (__isset.unregisterCount) { hashcode = (hashcode * 397) + UnregisterCount.GetHashCode(); } if (__isset.timestamp) { hashcode = (hashcode * 397) + Timestamp.GetHashCode(); } if (__isset.message) { hashcode = (hashcode * 397) + Message.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + SicCode.GetHashCode(); hash = hash * 29 + Description.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + (RequestId != null ? RequestId.GetHashCode() : 0); hash = hash * 29 + TradeConditionId.GetHashCode(); hash = hash * 29 + ShortName.GetHashCode(); hash = hash * 29 + LongName.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.requestId) { hashcode = (hashcode * 397) + RequestId.GetHashCode(); } if (__isset.state) { hashcode = (hashcode * 397) + State.GetHashCode(); } if (__isset.messageStoreRequestId) { hashcode = (hashcode * 397) + MessageStoreRequestId.GetHashCode(); } if (__isset.messageIds) { hashcode = (hashcode * 397) + TCollections.GetHashCode(MessageIds); } if (__isset.receiverCount) { hashcode = (hashcode * 397) + ReceiverCount.GetHashCode(); } if (__isset.successCount) { hashcode = (hashcode * 397) + SuccessCount.GetHashCode(); } if (__isset.failCount) { hashcode = (hashcode * 397) + FailCount.GetHashCode(); } if (__isset.blockCount) { hashcode = (hashcode * 397) + BlockCount.GetHashCode(); } if (__isset.unregisteredCount) { hashcode = (hashcode * 397) + UnregisteredCount.GetHashCode(); } if (__isset.unrelatedCount) { hashcode = (hashcode * 397) + UnrelatedCount.GetHashCode(); } if (__isset.errorDescription) { hashcode = (hashcode * 397) + ErrorDescription.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + SecurityTypeId.GetHashCode(); hash = hash * 29 + ShortName.GetHashCode(); hash = hash * 29 + LongName.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } if (ServingData.Length != 0) { hash ^= ServingData.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + ListedMarketId.GetHashCode(); hash = hash * 29 + SecurityTypeId.GetHashCode(); hash = hash * 29 + Description.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } hash ^= items_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + ListedMarketId.GetHashCode(); hash = hash * 29 + ShortName.GetHashCode(); hash = hash * 29 + LongName.GetHashCode(); hash = hash * 29 + GroupId.GetHashCode(); hash = hash * 29 + ShortGroupName.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId.GetHashCode(); hash = hash * 29 + Timestamp.GetHashCode(); hash = hash * 29 + High.GetHashCode(); hash = hash * 29 + Low.GetHashCode(); hash = hash * 29 + Open.GetHashCode(); hash = hash * 29 + Close.GetHashCode(); hash = hash * 29 + PeriodVolume.GetHashCode(); hash = hash * 29 + OpenInterest.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.requestId) { hashcode = (hashcode * 397) + RequestId.GetHashCode(); } if (__isset.messageIds) { hashcode = (hashcode * 397) + TCollections.GetHashCode(MessageIds); } } return(hashcode); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + ExchangeId.GetHashCode(); hash = hash * 29 + SecurityType.GetHashCode(); hash = hash * 29 + (Last.HasValue ? Last.GetHashCode() : 0); hash = hash * 29 + (TradeSize.HasValue ? TradeSize.GetHashCode() : 0); hash = hash * 29 + (TradedMarket.HasValue ? TradedMarket.GetHashCode() : 0); hash = hash * 29 + (TradeDate.HasValue ? TradeDate.GetHashCode() : 0); hash = hash * 29 + (TradeTime.HasValue ? TradeTime.GetHashCode() : 0); hash = hash * 29 + (Open.HasValue ? Open.GetHashCode() : 0); hash = hash * 29 + (High.HasValue ? High.GetHashCode() : 0); hash = hash * 29 + (Low.HasValue ? Low.GetHashCode() : 0); hash = hash * 29 + (Close.HasValue ? Close.GetHashCode() : 0); hash = hash * 29 + (Bid.HasValue ? Bid.GetHashCode() : 0); hash = hash * 29 + (BidMarket.HasValue ? BidMarket.GetHashCode() : 0); hash = hash * 29 + (BidSize.HasValue ? BidSize.GetHashCode() : 0); hash = hash * 29 + (Ask.HasValue ? Ask.GetHashCode() : 0); hash = hash * 29 + (AskMarket.HasValue ? AskMarket.GetHashCode() : 0); hash = hash * 29 + (AskSize.HasValue ? AskSize.GetHashCode() : 0); hash = hash * 29 + (Volume.HasValue ? Volume.GetHashCode() : 0); hash = hash * 29 + (PDayVolume.HasValue ? PDayVolume.GetHashCode() : 0); hash = hash * 29 + (UpVolume.HasValue ? UpVolume.GetHashCode() : 0); hash = hash * 29 + (DownVolume.HasValue ? DownVolume.GetHashCode() : 0); hash = hash * 29 + (NeutralVolume.HasValue ? NeutralVolume.GetHashCode() : 0); hash = hash * 29 + (TradeCount.HasValue ? TradeCount.GetHashCode() : 0); hash = hash * 29 + (UpTrades.HasValue ? UpTrades.GetHashCode() : 0); hash = hash * 29 + (DownTrades.HasValue ? DownTrades.GetHashCode() : 0); hash = hash * 29 + (NeutralTrades.HasValue ? NeutralTrades.GetHashCode() : 0); hash = hash * 29 + (VWAP.HasValue ? VWAP.GetHashCode() : 0); hash = hash * 29 + (MutualDiv.HasValue ? MutualDiv.GetHashCode() : 0); hash = hash * 29 + (SevenDayYield.HasValue ? SevenDayYield.GetHashCode() : 0); hash = hash * 29 + (OpenInterest.HasValue ? OpenInterest.GetHashCode() : 0); hash = hash * 29 + (Settlement.HasValue ? Settlement.GetHashCode() : 0); hash = hash * 29 + (SettlementDate.HasValue ? SettlementDate.GetHashCode() : 0); hash = hash * 29 + (ExpirationDate.HasValue ? ExpirationDate.GetHashCode() : 0); hash = hash * 29 + (Strike.HasValue ? Strike.GetHashCode() : 0); return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0; hash = hash * 29 + Timestamp.GetHashCode(); hash = hash * 29 + High.GetHashCode(); hash = hash * 29 + Low.GetHashCode(); hash = hash * 29 + Open.GetHashCode(); hash = hash * 29 + Close.GetHashCode(); hash = hash * 29 + TotalVolume.GetHashCode(); hash = hash * 29 + PeriodVolume.GetHashCode(); hash = hash * 29 + NumberOfTrades.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (StatusCode != 0) { hash ^= StatusCode.GetHashCode(); } if (RequestId != 0UL) { hash ^= RequestId.GetHashCode(); } hash ^= requests_.GetHashCode(); hash ^= platformRequests_.GetHashCode(); if (Latitude != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude); } if (Longitude != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude); } if (Accuracy != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Accuracy); } if (authInfo_ != null) { hash ^= AuthInfo.GetHashCode(); } if (authTicket_ != null) { hash ^= AuthTicket.GetHashCode(); } if (MsSinceLastLocationfix != 0L) { hash ^= MsSinceLastLocationfix.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId.GetHashCode(); hash = hash * 29 + Timestamp.GetHashCode(); hash = hash * 29 + Last.GetHashCode(); hash = hash * 29 + LastSize.GetHashCode(); hash = hash * 29 + TotalVolume.GetHashCode(); hash = hash * 29 + Bid.GetHashCode(); hash = hash * 29 + Ask.GetHashCode(); hash = hash * 29 + TickId.GetHashCode(); hash = hash * 29 + BasisForLast.GetHashCode(); hash = hash * 29 + TradeMarketCenter.GetHashCode(); hash = hash * 29 + TradeConditions.GetHashCode(); return(hash); } }
public override int GetHashCode() { int hash = 1; if (StatusCode != 0) { hash ^= StatusCode.GetHashCode(); } if (RequestId != 0UL) { hash ^= RequestId.GetHashCode(); } hash ^= requests_.GetHashCode(); if (unknown6_ != null) { hash ^= Unknown6.GetHashCode(); } if (Latitude != 0D) { hash ^= Latitude.GetHashCode(); } if (Longitude != 0D) { hash ^= Longitude.GetHashCode(); } if (Altitude != 0D) { hash ^= Altitude.GetHashCode(); } if (authInfo_ != null) { hash ^= AuthInfo.GetHashCode(); } if (authTicket_ != null) { hash ^= AuthTicket.GetHashCode(); } if (Unknown12 != 0L) { hash ^= Unknown12.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (StatusCode != 0) { hash ^= StatusCode.GetHashCode(); } if (RequestId != 0UL) { hash ^= RequestId.GetHashCode(); } hash ^= requests_.GetHashCode(); if (unknown6_ != null) { hash ^= Unknown6.GetHashCode(); } if (Latitude != 0D) { hash ^= Latitude.GetHashCode(); } if (Longitude != 0D) { hash ^= Longitude.GetHashCode(); } if (Accuracy != 0D) { hash ^= Accuracy.GetHashCode(); } if (authInfo_ != null) { hash ^= AuthInfo.GetHashCode(); } if (authTicket_ != null) { hash ^= AuthTicket.GetHashCode(); } if (MsSinceLastLocationfix != 0L) { hash ^= MsSinceLastLocationfix.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + RequestId.GetHashCode(); hash = hash * 29 + Type.GetHashCode(); hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + Timestamp.GetHashCode(); hash = hash * 29 + Open.GetHashCode(); hash = hash * 29 + High.GetHashCode(); hash = hash * 29 + Low.GetHashCode(); hash = hash * 29 + Last.GetHashCode(); hash = hash * 29 + CummulativeVolume.GetHashCode(); hash = hash * 29 + IntervalVolume.GetHashCode(); hash = hash * 29 + NumberOfTrades.GetHashCode(); return(hash); } }
/// <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 (RequestId != null) { hashCode = hashCode * 59 + RequestId.GetHashCode(); } if (ErrorType != null) { hashCode = hashCode * 59 + ErrorType.GetHashCode(); } if (ErrorCodes != null) { hashCode = hashCode * 59 + ErrorCodes.GetHashCode(); } return(hashCode); } }
/// <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 (RequestId != null) { hashCode = hashCode * 59 + RequestId.GetHashCode(); } if (Destination != null) { hashCode = hashCode * 59 + Destination.GetHashCode(); } if (Payload != null) { hashCode = hashCode * 59 + Payload.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (RequestId != 0) { hash ^= RequestId.GetHashCode(); } if (UserId.Length != 0) { hash ^= UserId.GetHashCode(); } if (StatusText.Length != 0) { hash ^= StatusText.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }