2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class UpdateFulfillHTLC extends CommonBase {
6 UpdateFulfillHTLC(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.UpdateFulfillHTLC_free(ptr); }
13 public UpdateFulfillHTLC clone() {
14 uint32_t ret = bindings.UpdateFulfillHTLC_clone(this.ptr);
15 UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);
19 public byte[] get_channel_id() {
20 byte[] ret = bindings.UpdateFulfillHTLC_get_channel_id(this.ptr);
24 public void set_channel_id(byte[] val) {
25 bindings.UpdateFulfillHTLC_set_channel_id(this.ptr, val);
28 public long get_htlc_id() {
29 long ret = bindings.UpdateFulfillHTLC_get_htlc_id(this.ptr);
33 public void set_htlc_id(long val) {
34 bindings.UpdateFulfillHTLC_set_htlc_id(this.ptr, val);
37 public byte[] get_payment_preimage() {
38 byte[] ret = bindings.UpdateFulfillHTLC_get_payment_preimage(this.ptr);
42 public void set_payment_preimage(byte[] val) {
43 bindings.UpdateFulfillHTLC_set_payment_preimage(this.ptr, val);
46 public static UpdateFulfillHTLC constructor_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg) {
47 uint32_t ret = bindings.UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
48 UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);
52 public byte[] write() {
53 byte[] ret = bindings.UpdateFulfillHTLC_write(this.ptr);
57 public static UpdateFulfillHTLC constructor_read(byte[] ser) {
58 uint32_t ret = bindings.UpdateFulfillHTLC_read(ser);
59 UpdateFulfillHTLC ret_hu_conv = new UpdateFulfillHTLC(null, ret);