TS bindings
[ldk-java] / ts / structs / ClosingSigned.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class ClosingSigned extends CommonBase {
6         ClosingSigned(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.ClosingSigned_free(ptr); }
11         }
12
13         public ClosingSigned clone() {
14                 uint32_t ret = bindings.ClosingSigned_clone(this.ptr);
15                 ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] get_channel_id() {
20                 byte[] ret = bindings.ClosingSigned_get_channel_id(this.ptr);
21                 return ret;
22         }
23
24         public void set_channel_id(byte[] val) {
25                 bindings.ClosingSigned_set_channel_id(this.ptr, val);
26         }
27
28         public long get_fee_satoshis() {
29                 long ret = bindings.ClosingSigned_get_fee_satoshis(this.ptr);
30                 return ret;
31         }
32
33         public void set_fee_satoshis(long val) {
34                 bindings.ClosingSigned_set_fee_satoshis(this.ptr, val);
35         }
36
37         public byte[] get_signature() {
38                 byte[] ret = bindings.ClosingSigned_get_signature(this.ptr);
39                 return ret;
40         }
41
42         public void set_signature(byte[] val) {
43                 bindings.ClosingSigned_set_signature(this.ptr, val);
44         }
45
46         public static ClosingSigned constructor_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg) {
47                 uint32_t ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg);
48                 ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
49                 return ret_hu_conv;
50         }
51
52         public byte[] write() {
53                 byte[] ret = bindings.ClosingSigned_write(this.ptr);
54                 return ret;
55         }
56
57         public static ClosingSigned constructor_read(byte[] ser) {
58                 uint32_t ret = bindings.ClosingSigned_read(ser);
59                 ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
60                 return ret_hu_conv;
61         }
62
63 }