if (ptr != 0) { bindings.DirectionalChannelInfo_free(ptr); }
}
+ public DirectionalChannelInfo clone() {
+ long ret = bindings.DirectionalChannelInfo_clone(this.ptr);
+ DirectionalChannelInfo ret_hu_conv = new DirectionalChannelInfo(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
public int get_last_update() {
int ret = bindings.DirectionalChannelInfo_get_last_update(this.ptr);
return ret;
public RoutingFees get_fees() {
long ret = bindings.DirectionalChannelInfo_get_fees(this.ptr);
RoutingFees ret_hu_conv = new RoutingFees(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
public ChannelUpdate get_last_update_message() {
long ret = bindings.DirectionalChannelInfo_get_last_update_message(this.ptr);
ChannelUpdate ret_hu_conv = new ChannelUpdate(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
public static DirectionalChannelInfo constructor_read(byte[] ser) {
long ret = bindings.DirectionalChannelInfo_read(ser);
DirectionalChannelInfo ret_hu_conv = new DirectionalChannelInfo(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}