[C#] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / c_sharp / src / org / ldk / structs / DirectedChannelInfo.cs
index c08ef7555cf6a4c2abb4333803956c282f01a805..07be5945f0e41582a039b83887727b41552f7b85 100644 (file)
@@ -46,15 +46,6 @@ public class DirectedChannelInfo : CommonBase {
                return ret_hu_conv;
        }
 
-       /**
-        * Returns the maximum HTLC amount allowed over the channel in the direction.
-        */
-       public long htlc_maximum_msat() {
-               long ret = bindings.DirectedChannelInfo_htlc_maximum_msat(this.ptr);
-               GC.KeepAlive(this);
-               return ret;
-       }
-
        /**
         * Returns the [`EffectiveCapacity`] of the channel in the direction.
         * 
@@ -71,5 +62,33 @@ public class DirectedChannelInfo : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Returns the `node_id` of the source hop.
+        * 
+        * Refers to the `node_id` forwarding the payment to the next hop.
+        */
+       public NodeId source() {
+               long ret = bindings.DirectedChannelInfo_source(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
+               return ret_hu_conv;
+       }
+
+       /**
+        * Returns the `node_id` of the target hop.
+        * 
+        * Refers to the `node_id` receiving the payment from the previous hop.
+        */
+       public NodeId target() {
+               long ret = bindings.DirectedChannelInfo_target(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeId(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
+               return ret_hu_conv;
+       }
+
 }
 } } }