2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class UpdateAddHTLC extends CommonBase {
6 UpdateAddHTLC(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.UpdateAddHTLC_free(ptr); }
13 public UpdateAddHTLC clone() {
14 uint32_t ret = bindings.UpdateAddHTLC_clone(this.ptr);
15 UpdateAddHTLC ret_hu_conv = new UpdateAddHTLC(null, ret);
19 public byte[] get_channel_id() {
20 byte[] ret = bindings.UpdateAddHTLC_get_channel_id(this.ptr);
24 public void set_channel_id(byte[] val) {
25 bindings.UpdateAddHTLC_set_channel_id(this.ptr, val);
28 public long get_htlc_id() {
29 long ret = bindings.UpdateAddHTLC_get_htlc_id(this.ptr);
33 public void set_htlc_id(long val) {
34 bindings.UpdateAddHTLC_set_htlc_id(this.ptr, val);
37 public long get_amount_msat() {
38 long ret = bindings.UpdateAddHTLC_get_amount_msat(this.ptr);
42 public void set_amount_msat(long val) {
43 bindings.UpdateAddHTLC_set_amount_msat(this.ptr, val);
46 public byte[] get_payment_hash() {
47 byte[] ret = bindings.UpdateAddHTLC_get_payment_hash(this.ptr);
51 public void set_payment_hash(byte[] val) {
52 bindings.UpdateAddHTLC_set_payment_hash(this.ptr, val);
55 public int get_cltv_expiry() {
56 int ret = bindings.UpdateAddHTLC_get_cltv_expiry(this.ptr);
60 public void set_cltv_expiry(int val) {
61 bindings.UpdateAddHTLC_set_cltv_expiry(this.ptr, val);
64 public byte[] write() {
65 byte[] ret = bindings.UpdateAddHTLC_write(this.ptr);
69 public static UpdateAddHTLC constructor_read(byte[] ser) {
70 uint32_t ret = bindings.UpdateAddHTLC_read(ser);
71 UpdateAddHTLC ret_hu_conv = new UpdateAddHTLC(null, ret);