deb3d0f192bb1cbf9c1d9898731eb6f0d888c8b0
[ldk-java] / ts / structs / HTLCUpdate.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class HTLCUpdate extends CommonBase {
6         HTLCUpdate(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.HTLCUpdate_free(ptr); }
11         }
12
13         public HTLCUpdate clone() {
14                 uint32_t ret = bindings.HTLCUpdate_clone(this.ptr);
15                 HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] write() {
20                 byte[] ret = bindings.HTLCUpdate_write(this.ptr);
21                 return ret;
22         }
23
24         public static HTLCUpdate constructor_read(byte[] ser) {
25                 uint32_t ret = bindings.HTLCUpdate_read(ser);
26                 HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret);
27                 return ret_hu_conv;
28         }
29
30 }