internal static ProduceResponse Decode(KafkaDecoder decoder, string topic) { var partitionId = decoder.ReadInt32(); var error = decoder.ReadErrorResponseCode(); var offset = decoder.ReadInt64(); var response = new ProduceResponse(topic, partitionId, error, offset); return(response); }
protected bool Equals(ProduceResponse other) { return(string.Equals(Topic, other.Topic) && PartitionId == other.PartitionId && Error == other.Error && Offset == other.Offset); }