public override int GetHashCode() { int hash = 1; if (MessageType.Length != 0) { hash ^= MessageType.GetHashCode(); } if (CompressionType != global::AcFunDanmu.ZtLiveScMessage.Types.CompressionType.Unknown) { hash ^= CompressionType.GetHashCode(); } if (Payload.Length != 0) { hash ^= Payload.GetHashCode(); } if (LiveId.Length != 0) { hash ^= LiveId.GetHashCode(); } if (Ticket.Length != 0) { hash ^= Ticket.GetHashCode(); } if (ServerTimestampMs != 0L) { hash ^= ServerTimestampMs.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public virtual void WriteData(FastBinaryWriter writer, Object additionalInfo) { // Version 5.0 data types writer.Write(FSequenceID); writer.Write(FSessionID); writer.Write(FRequestID); writer.Write(FSourceUtcOffset); writer.Write(FDateTime); writer.Write(FDomainID); writer.Write(FProcessID); writer.Write(FThreadID); writer.Write(FCategory); writer.Write(FApplication); writer.Write(FMachineName); writer.Write(FUserDomainName); writer.Write(FUserName); writer.Write(FIndentLevel); writer.Write(FBkColor.ToArgb()); writer.Write(FMessageType.GetHashCode()); writer.Write(FMessageSubType); writer.Write(FMessage); writer.Write(FDetailType); writer.Write(FExtPropertyContainer); writer.Write(FSubDetails); writer.Write(FDetails); }
public override int GetHashCode() { int hash = 1; if (MessageType.Length != 0) { hash ^= MessageType.GetHashCode(); } if (MessageData.Length != 0) { hash ^= MessageData.GetHashCode(); } if (IsCommand != false) { hash ^= IsCommand.GetHashCode(); } if (sender_ != null) { hash ^= Sender.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (MessageType != 0) { hash ^= MessageType.GetHashCode(); } if (MessageId.Length != 0) { hash ^= MessageId.GetHashCode(); } if (SessionId.Length != 0) { hash ^= SessionId.GetHashCode(); } if (MessageCode.Length != 0) { hash ^= MessageCode.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(MessageType.GetHashCode() ^ (Feed ?? "").GetHashCode() ^ (Topic ?? "").GetHashCode() ^ IsAdd.GetHashCode()); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { var h1 = MessageType?.GetHashCode() ?? 0; var h2 = Arg?.GetHashCode() ?? 0; return(((h1 << 5) + h1) ^ h2); }
public override int GetHashCode() { return(OrderId.GetHashCode() ^ MessageType.GetHashCode() ^ SourceSystemId.GetHashCode() ^ Metadata.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (payloadCase_ == PayloadOneofCase.ProtobufPayload) { hash ^= ProtobufPayload.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.JsonPayload) { hash ^= JsonPayload.GetHashCode(); } if (RequestedOutputFormat != 0) { hash ^= RequestedOutputFormat.GetHashCode(); } if (MessageType.Length != 0) { hash ^= MessageType.GetHashCode(); } if (TestCategory != 0) { hash ^= TestCategory.GetHashCode(); } hash ^= (int)payloadCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (MessageType != global::Tron.Protocol.Wrappers.Server.ServerWrapperMessageType.WrappermessagetypeChat) { hash ^= MessageType.GetHashCode(); } if (realMessageCase_ == RealMessageOneofCase.ChatMessage) { hash ^= ChatMessage.GetHashCode(); } if (realMessageCase_ == RealMessageOneofCase.ReadyMessage) { hash ^= ReadyMessage.GetHashCode(); } if (realMessageCase_ == RealMessageOneofCase.ConfigureMessage) { hash ^= ConfigureMessage.GetHashCode(); } if (realMessageCase_ == RealMessageOneofCase.PlayerEventMessage) { hash ^= PlayerEventMessage.GetHashCode(); } hash ^= (int)realMessageCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <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() { unchecked { return(((MessageType != null ? MessageType.GetHashCode() : 0) * 397) ^ Received.GetHashCode()); } }
public override int GetHashCode() { return(MessageType.GetHashCode() ^ Feed.GetHashCode() ^ Topic.GetHashCode() ^ IsImage.GetHashCode() ^ (DataPackets?.GetHashCode() ?? 0)); }
public override int GetHashCode() { return(MessageType.GetHashCode() ^ ClientId.GetHashCode() ^ Feed.GetHashCode() ^ Topic.GetHashCode() ^ (Entitlements?.GetHashCode() ?? 0)); }
public override int GetHashCode() { unchecked { return(((NanoDocumentId != null ? NanoDocumentId.GetHashCode() : 0) * 397) ^ (MessageType != null ? MessageType.GetHashCode() : 0)); } }
public override int GetHashCode() { return(MessageType.GetHashCode() ^ ClientId.GetHashCode() ^ Host.GetHashCode() ^ User.GetHashCode() ^ Feed.GetHashCode() ^ Topic.GetHashCode()); }
public override int GetHashCode() { unchecked { var hashCode = MessageType.GetHashCode(); hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 69; hash = (hash * 7799) ^ (HandlerType?.GetHashCode() ?? 0); hash = (hash * 7799) ^ (MessageType?.GetHashCode() ?? 0); return(hash); } }
public override int GetHashCode() { var result = _type.GetHashCode(); result = 29 * result + _hasUnreaded.GetHashCode(); result = 29 * result + _hasUnreadRepliesToMe.GetHashCode(); result = 29 * result + _hasModeratorials.GetHashCode(); result = 29 * result + _closed.GetHashCode(); return(result); }
public override int GetHashCode() { int hash = Data.GetHashCode(); hash = (hash * 397) ^ DataType.GetHashCode(); hash = (hash * 397) ^ ResponseType.GetHashCode(); hash = (hash * 397) ^ MessageType.GetHashCode(); hash = (hash * 397) ^ CorrelationId.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = (MessageType != null ? MessageType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ServiceName != null ? ServiceName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ContentTypes != null ? ContentTypes.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Transports != null ? Transports.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (Name ?? "").GetHashCode(); hash = hash * 23 + MessageType.GetHashCode(); hash = hash * 23 + Topic.GetHashCode(); return(hash); } }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { int result = 17; result = result * 23 + MessageType.GetHashCode(); result = result * 23 + ((Condition != null) ? Condition.GetHashCode() : 0); result = result * 23 + ((Message != null) ? Message.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = (Source != null ? Source.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Receiver != null ? Receiver.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MessageType != null ? MessageType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NodeName != null ? NodeName.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Source != null ? Source.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MessageType != null ? MessageType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ExceptionType != null ? ExceptionType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ExceptionMessage != null ? ExceptionMessage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ExceptionText != null ? ExceptionText.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { if (ProductName == null) { return(base.GetHashCode()); } var hash = 13; hash = (hash * 7) + ProductName.GetHashCode(); hash = (hash * 7) + Topic.GetHashCode(); hash = (hash * 7) + Type.GetHashCode(); return(hash); }
/// <summary> /// Вычисляет хэш-код /// из полей категории /// </summary> /// <returns> /// Хэш-код /// из полей категории /// </returns> public override int GetHashCode() { if (ProductName == null) { return(base.GetHashCode()); } var hashCode = 10; hashCode = hashCode * 5 + ProductName.GetHashCode(); hashCode = hashCode * 4 + Type.GetHashCode(); hashCode = hashCode * 3 + Topic.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + MessageType.GetHashCode(); hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + OrderId.GetHashCode(); hash = hash * 29 + Side.GetHashCode(); hash = hash * 29 + OrderTime.GetHashCode(); hash = hash * 29 + OrderDate.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 29 + MessageType.GetHashCode(); hash = hash * 29 + Symbol.GetHashCode(); hash = hash * 29 + Side.GetHashCode(); hash = hash * 29 + Price.GetHashCode(); hash = hash * 29 + Time.GetHashCode(); hash = hash * 29 + Date.GetHashCode(); return hash; } }
/// <summary> /// Send a Message to Default Channel. /// </summary> public void Default(string message, MessageType type) { #region "[rgn] Packet Structure Analyze " //--------------------------------------- //SZ ID SZ NM //--------------------------------------- //07 00 96 01 03 00 61 65 77 //0B 00 96 01 07 00 62 6C 7A 69 6E 68 61 #endregion PacketBuilder Builder = new PacketBuilder(0x96, Connection); Builder.Append(type.GetHashCode()); Builder.Append(message, true); Builder.SetPacketSource(PacketSource.Client); Connection.Send(Builder.GetPacket()); }
public override int GetHashCode() { unchecked { var hashCode = Image != null?Image.GetHashCode() : 0; hashCode = hashCode * 397 ^ Hidden.GetHashCode(); hashCode = hashCode * 397 ^ (MessageType != null ? MessageType.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Type != null ? Type.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Adspace != null ? Adspace.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Title != null ? Title.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Body != null ? Body.GetHashCode() : 0); hashCode = hashCode * 397 ^ Spotlight.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (MessageType != null ? MessageType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CommunicationType.GetHashCode(); hashCode = (hashCode * 397) ^ RouteType.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Priority; hashCode = (hashCode * 397) ^ Exclusive.GetHashCode(); hashCode = (hashCode * 397) ^ (LocalContext != null ? LocalContext.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RemoteBoundedContext != null ? RemoteBoundedContext.GetHashCode() : 0); hashCode = m_Hints.Keys.OrderBy(k => k).Aggregate(hashCode, (h, key) => (h * 397) ^ key.GetHashCode()); hashCode = m_Hints.Values.OrderBy(v => v).Aggregate(hashCode, (h, value) => (h * 397) ^ (value != null?value.GetHashCode():0)); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (MessageType != global::Communication.Proto.MessageType.AddPlayer) { hash ^= MessageType.GetHashCode(); } if (PlayerID != 0L) { hash ^= PlayerID.GetHashCode(); } if (TeamID != 0L) { hash ^= TeamID.GetHashCode(); } if (JobType != global::Communication.Proto.JobType.Job0) { hash ^= JobType.GetHashCode(); } if (PropType != global::Communication.Proto.PropType.Null) { hash ^= PropType.GetHashCode(); } if (TimeInMilliseconds != 0) { hash ^= TimeInMilliseconds.GetHashCode(); } if (Angle != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Angle); } if (ToPlayerID != 0L) { hash ^= ToPlayerID.GetHashCode(); } if (Message.Length != 0) { hash ^= Message.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }