Package net.i2p.client.impl
Class LkupResult
java.lang.Object
net.i2p.client.impl.LkupResult
- All Implemented Interfaces:
LookupResult
public class LkupResult extends Object implements LookupResult
The return value of I2PSession.lookupDest2()
- Since:
- 0.9.43
-
Field Summary
Fields inherited from interface net.i2p.client.LookupResult
RESULT_DECRYPTION_FAILURE, RESULT_FAILURE, RESULT_KEY_REQUIRED, RESULT_SECRET_AND_KEY_REQUIRED, RESULT_SECRET_REQUIRED, RESULT_SUCCESS
-
Constructor Summary
Constructors Constructor Description LkupResult(int code, Destination dest)
-
Method Summary
Modifier and Type Method Description Destination
getDestination()
int
getResultCode()
-
Constructor Details
-
LkupResult
LkupResult(int code, Destination dest)
-
-
Method Details
-
getResultCode
public int getResultCode()- Specified by:
getResultCode
in interfaceLookupResult
- Returns:
- zero for success, nonzero for failure
-
getDestination
- Specified by:
getDestination
in interfaceLookupResult
- Returns:
- Destination on success, null on failure
-