+
import CommonBase from './CommonBase';
import * as bindings from '../bindings' // TODO: figure out location
-public class UpdateFailHTLC extends CommonBase {
- UpdateFailHTLC(Object _dummy, long ptr) { super(ptr); }
- @Override @SuppressWarnings("deprecation")
- protected void finalize() throws Throwable {
- super.finalize();
- if (ptr != 0) { bindings.UpdateFailHTLC_free(ptr); }
- }
+
+ export default class UpdateFailHTLC extends CommonBase {
+ constructor(_dummy: object, ptr: number) {
+ super(ptr);
+ }
+
+
+ protected finalize() {
+ super.finalize();
+
+ if (this.ptr != 0) {
+ bindings.UpdateFailHTLC_free(this.ptr);
+ }
+ }
public UpdateFailHTLC clone() {
- uint32_t ret = bindings.UpdateFailHTLC_clone(this.ptr);
- UpdateFailHTLC ret_hu_conv = new UpdateFailHTLC(null, ret);
+ number ret = bindings.UpdateFailHTLC_clone(this.ptr);
+ const ret_hu_conv: UpdateFailHTLC = new UpdateFailHTLC(null, ret);
return ret_hu_conv;
}
- public byte[] get_channel_id() {
- byte[] ret = bindings.UpdateFailHTLC_get_channel_id(this.ptr);
+ public Uint8Array get_channel_id() {
+ Uint8Array ret = bindings.UpdateFailHTLC_get_channel_id(this.ptr);
return ret;
}
- public void set_channel_id(byte[] val) {
+ public void set_channel_id(Uint8Array val) {
bindings.UpdateFailHTLC_set_channel_id(this.ptr, val);
}
- public long get_htlc_id() {
- long ret = bindings.UpdateFailHTLC_get_htlc_id(this.ptr);
+ public number get_htlc_id() {
+ number ret = bindings.UpdateFailHTLC_get_htlc_id(this.ptr);
return ret;
}
- public void set_htlc_id(long val) {
+ public void set_htlc_id(number val) {
bindings.UpdateFailHTLC_set_htlc_id(this.ptr, val);
}
- public byte[] write() {
- byte[] ret = bindings.UpdateFailHTLC_write(this.ptr);
+ public Uint8Array write() {
+ Uint8Array ret = bindings.UpdateFailHTLC_write(this.ptr);
return ret;
}
- public static UpdateFailHTLC constructor_read(byte[] ser) {
- uint32_t ret = bindings.UpdateFailHTLC_read(ser);
- UpdateFailHTLC ret_hu_conv = new UpdateFailHTLC(null, ret);
+ public static UpdateFailHTLC constructor_read(Uint8Array ser) {
+ number ret = bindings.UpdateFailHTLC_read(ser);
+ const ret_hu_conv: UpdateFailHTLC = new UpdateFailHTLC(null, ret);
return ret_hu_conv;
}