+ public static class LDKHTLCDestination {
+ private LDKHTLCDestination() {}
+ public final static class NextHopChannel extends LDKHTLCDestination {
+ public byte[] node_id;
+ public byte[] channel_id;
+ NextHopChannel(byte[] node_id, byte[] channel_id) { this.node_id = node_id; this.channel_id = channel_id; }
+ }
+ public final static class UnknownNextHop extends LDKHTLCDestination {
+ public long requested_forward_scid;
+ UnknownNextHop(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
+ }
+ public final static class FailedPayment extends LDKHTLCDestination {
+ public byte[] payment_hash;
+ FailedPayment(byte[] payment_hash) { this.payment_hash = payment_hash; }
+ }
+ static native void init();
+ }
+ static { LDKHTLCDestination.init(); }
+ public static native LDKHTLCDestination LDKHTLCDestination_ref_from_ptr(long ptr);
+ public static class LDKCOption_HTLCDestinationZ {
+ private LDKCOption_HTLCDestinationZ() {}
+ public final static class Some extends LDKCOption_HTLCDestinationZ {
+ public long some;
+ Some(long some) { this.some = some; }
+ }
+ public final static class None extends LDKCOption_HTLCDestinationZ {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_HTLCDestinationZ.init(); }
+ public static native LDKCOption_HTLCDestinationZ LDKCOption_HTLCDestinationZ_ref_from_ptr(long ptr);
+ // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long owner);