2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class Shutdown extends CommonBase {
6 Shutdown(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.Shutdown_free(ptr); }
13 public Shutdown clone() {
14 uint32_t ret = bindings.Shutdown_clone(this.ptr);
15 Shutdown ret_hu_conv = new Shutdown(null, ret);
19 public byte[] get_channel_id() {
20 byte[] ret = bindings.Shutdown_get_channel_id(this.ptr);
24 public void set_channel_id(byte[] val) {
25 bindings.Shutdown_set_channel_id(this.ptr, val);
28 public byte[] get_scriptpubkey() {
29 byte[] ret = bindings.Shutdown_get_scriptpubkey(this.ptr);
33 public void set_scriptpubkey(byte[] val) {
34 bindings.Shutdown_set_scriptpubkey(this.ptr, val);
37 public static Shutdown constructor_new(byte[] channel_id_arg, byte[] scriptpubkey_arg) {
38 uint32_t ret = bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg);
39 Shutdown ret_hu_conv = new Shutdown(null, ret);
43 public byte[] write() {
44 byte[] ret = bindings.Shutdown_write(this.ptr);
48 public static Shutdown constructor_read(byte[] ser) {
49 uint32_t ret = bindings.Shutdown_read(ser);
50 Shutdown ret_hu_conv = new Shutdown(null, ret);