+ /**
+ * The maximum value which may be relayed to the next hop via the channel.
+ */
+ public Option_u64Z get_htlc_maximum_msat() {
+ long ret = bindings.DirectionalChannelInfo_get_htlc_maximum_msat(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The maximum value which may be relayed to the next hop via the channel.
+ */
+ public void set_htlc_maximum_msat(Option_u64Z val) {
+ bindings.DirectionalChannelInfo_set_htlc_maximum_msat(this.ptr, val.ptr);
+ }
+
+ /**
+ * Fees charged when the channel is used for routing
+ */
+ public RoutingFees get_fees() {
+ long ret = bindings.DirectionalChannelInfo_get_fees(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RoutingFees(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Fees charged when the channel is used for routing
+ */
+ public void set_fees(RoutingFees val) {
+ bindings.DirectionalChannelInfo_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
+ }
+
+ /**
+ * Most recent update for the channel received from the network
+ * Mostly redundant with the data we store in fields explicitly.
+ * Everything else is useful only for sending out for initial routing sync.
+ * Not stored if contains excess data to prevent DoS.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ @Nullable