public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } BaseProtocolResponse that = ( BaseProtocolResponse )o; return(Objects.Equals(_version, that._version) && Objects.Equals(_protocolName, that._protocolName)); }
internal virtual void EncodeProtocolResponse <U>(BaseProtocolResponse <U> protocolResponse, System.Action <ByteBuf, U> writer) where U : IComparable <U> { Out.writeInt(protocolResponse.StatusCode().codeValue()); StringMarshal.marshal(Out, protocolResponse.ProtocolName()); writer(Out, protocolResponse.Version()); }