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 ChannelHandshakeConfig extends CommonBase {
10 ChannelHandshakeConfig(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ChannelHandshakeConfig_free(ptr); }
17 public ChannelHandshakeConfig clone() {
18 long ret = bindings.ChannelHandshakeConfig_clone(this.ptr);
19 ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
23 public int get_minimum_depth() {
24 int ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr);
28 public void set_minimum_depth(int val) {
29 bindings.ChannelHandshakeConfig_set_minimum_depth(this.ptr, val);
32 public short get_our_to_self_delay() {
33 short ret = bindings.ChannelHandshakeConfig_get_our_to_self_delay(this.ptr);
37 public void set_our_to_self_delay(short val) {
38 bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val);
41 public long get_our_htlc_minimum_msat() {
42 long ret = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr);
46 public void set_our_htlc_minimum_msat(long val) {
47 bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val);
50 public static ChannelHandshakeConfig constructor_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg) {
51 long ret = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg);
52 ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);
56 public static ChannelHandshakeConfig constructor_default() {
57 long ret = bindings.ChannelHandshakeConfig_default();
58 ChannelHandshakeConfig ret_hu_conv = new ChannelHandshakeConfig(null, ret);