package com.muwire.core.search

import com.muwire.core.Event
import com.muwire.core.Persona

import net.i2p.data.Destination

class QueryEvent extends Event {

    SearchEvent searchEvent
    boolean firstHop, local
    Destination replyTo
    Persona originator
    Destination receivedOn
    byte[] sig
    long queryTime
    byte[] sig2

    String toString() {
        "searchEvent: $searchEvent firstHop:$firstHop, replyTo:${replyTo.toBase32()}" +
        "originator: ${originator.getHumanReadableName()} receivedOn: ${receivedOn.toBase32()}"
    }
}
