1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class UpdateFulfillHTLC extends CommonBase {
7 UpdateFulfillHTLC(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
11 bindings.UpdateFulfillHTLC_free(ptr);
14 public UpdateFulfillHTLC(UpdateFulfillHTLC orig) {
15 super(bindings.UpdateFulfillHTLC_clone(orig == null ? 0 : orig.ptr & ~1));
16 this.ptrs_to.add(orig);
19 public byte[] get_channel_id(UpdateFulfillHTLC this_ptr) {
20 byte[] ret = bindings.UpdateFulfillHTLC_get_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
21 this.ptrs_to.add(this_ptr);
25 public void set_channel_id(UpdateFulfillHTLC this_ptr, byte[] val) {
26 bindings.UpdateFulfillHTLC_set_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
27 this.ptrs_to.add(this_ptr);
30 public long get_htlc_id(UpdateFulfillHTLC this_ptr) {
31 long ret = bindings.UpdateFulfillHTLC_get_htlc_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
32 this.ptrs_to.add(this_ptr);
36 public void set_htlc_id(UpdateFulfillHTLC this_ptr, long val) {
37 bindings.UpdateFulfillHTLC_set_htlc_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
38 this.ptrs_to.add(this_ptr);
41 public byte[] get_payment_preimage(UpdateFulfillHTLC this_ptr) {
42 byte[] ret = bindings.UpdateFulfillHTLC_get_payment_preimage(this_ptr == null ? 0 : this_ptr.ptr & ~1);
43 this.ptrs_to.add(this_ptr);
47 public void set_payment_preimage(UpdateFulfillHTLC this_ptr, byte[] val) {
48 bindings.UpdateFulfillHTLC_set_payment_preimage(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
49 this.ptrs_to.add(this_ptr);
52 public UpdateFulfillHTLC(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg) {
53 super(bindings.UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg));
56 public byte[] write(UpdateFulfillHTLC obj) {
57 byte[] ret = bindings.UpdateFulfillHTLC_write(obj == null ? 0 : obj.ptr & ~1);
58 this.ptrs_to.add(obj);
62 public UpdateFulfillHTLC(byte[] ser) {
63 super(bindings.UpdateFulfillHTLC_read(ser));