+ long htlcs = bindings.LDKEvent_PaymentClaimed_get_htlcs(ptr);
+ int htlcs_conv_13_len = InternalUtils.getArrayLength(htlcs);
+ ClaimedHTLC[] htlcs_conv_13_arr = new ClaimedHTLC[htlcs_conv_13_len];
+ for (int n = 0; n < htlcs_conv_13_len; n++) {
+ long htlcs_conv_13 = InternalUtils.getU64ArrayElem(htlcs, n);
+ org.ldk.structs.ClaimedHTLC htlcs_conv_13_hu_conv = null; if (htlcs_conv_13 < 0 || htlcs_conv_13 > 4096) { htlcs_conv_13_hu_conv = new org.ldk.structs.ClaimedHTLC(null, htlcs_conv_13); }
+ if (htlcs_conv_13_hu_conv != null) { htlcs_conv_13_hu_conv.ptrs_to.AddLast(this); };
+ htlcs_conv_13_arr[n] = htlcs_conv_13_hu_conv;
+ }
+ bindings.free_buffer(htlcs);
+ this.htlcs = htlcs_conv_13_arr;
+ long sender_intended_total_msat = bindings.LDKEvent_PaymentClaimed_get_sender_intended_total_msat(ptr);
+ org.ldk.structs.Option_u64Z sender_intended_total_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(sender_intended_total_msat);
+ if (sender_intended_total_msat_hu_conv != null) { sender_intended_total_msat_hu_conv.ptrs_to.AddLast(this); };
+ this.sender_intended_total_msat = sender_intended_total_msat_hu_conv;
+ }
+ }
+ /** A Event of type InvoiceRequestFailed */
+ public class Event_InvoiceRequestFailed : Event {
+ /**
+ * The `payment_id` to have been associated with payment for the requested invoice.
+ */
+ public byte[] payment_id;
+ internal Event_InvoiceRequestFailed(long ptr) : base(null, ptr) {
+ long payment_id = bindings.LDKEvent_InvoiceRequestFailed_get_payment_id(ptr);
+ byte[] payment_id_conv = InternalUtils.decodeUint8Array(payment_id);
+ this.payment_id = payment_id_conv;