1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class UnsignedChannelUpdate extends CommonBase {
10 UnsignedChannelUpdate(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.UnsignedChannelUpdate_free(ptr); }
17 public UnsignedChannelUpdate clone() {
18 long ret = bindings.UnsignedChannelUpdate_clone(this.ptr);
19 UnsignedChannelUpdate ret_hu_conv = new UnsignedChannelUpdate(null, ret);
23 public byte[] get_chain_hash() {
24 byte[] ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr);
28 public void set_chain_hash(byte[] val) {
29 bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
32 public long get_short_channel_id() {
33 long ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr);
37 public void set_short_channel_id(long val) {
38 bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val);
41 public int get_timestamp() {
42 int ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr);
46 public void set_timestamp(int val) {
47 bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val);
50 public byte get_flags() {
51 byte ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr);
55 public void set_flags(byte val) {
56 bindings.UnsignedChannelUpdate_set_flags(this.ptr, val);
59 public short get_cltv_expiry_delta() {
60 short ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr);
64 public void set_cltv_expiry_delta(short val) {
65 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val);
68 public long get_htlc_minimum_msat() {
69 long ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr);
73 public void set_htlc_minimum_msat(long val) {
74 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val);
77 public int get_fee_base_msat() {
78 int ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr);
82 public void set_fee_base_msat(int val) {
83 bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val);
86 public int get_fee_proportional_millionths() {
87 int ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr);
91 public void set_fee_proportional_millionths(int val) {
92 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
95 public byte[] write() {
96 byte[] ret = bindings.UnsignedChannelUpdate_write(this.ptr);
100 public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_read(byte[] ser) {
101 long ret = bindings.UnsignedChannelUpdate_read(ser);
102 Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);