[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / InFlightHtlcs.cs
index 0e956560c056fc6e7795e0d96047372fcb6d6e6a..ef9bb6f680dc783573c74e987fc7d4be283578d7 100644 (file)
@@ -45,6 +45,32 @@ public class InFlightHtlcs : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Takes in a path with payer's node id and adds the path's details to `InFlightHtlcs`.
+        */
+       public void process_path(org.ldk.structs.Path path, byte[] payer_node_id) {
+               bindings.InFlightHtlcs_process_path(this.ptr, path == null ? 0 : path.ptr, InternalUtils.check_arr_len(payer_node_id, 33));
+               GC.KeepAlive(this);
+               GC.KeepAlive(path);
+               GC.KeepAlive(payer_node_id);
+               if (this != null) { this.ptrs_to.AddLast(path); };
+       }
+
+       /**
+        * Adds a known HTLC given the public key of the HTLC source, target, and short channel
+        * id.
+        */
+       public void add_inflight_htlc(org.ldk.structs.NodeId source, org.ldk.structs.NodeId target, long channel_scid, long used_msat) {
+               bindings.InFlightHtlcs_add_inflight_htlc(this.ptr, source == null ? 0 : source.ptr, target == null ? 0 : target.ptr, channel_scid, used_msat);
+               GC.KeepAlive(this);
+               GC.KeepAlive(source);
+               GC.KeepAlive(target);
+               GC.KeepAlive(channel_scid);
+               GC.KeepAlive(used_msat);
+               if (this != null) { this.ptrs_to.AddLast(source); };
+               if (this != null) { this.ptrs_to.AddLast(target); };
+       }
+
        /**
         * Returns liquidity in msat given the public key of the HTLC source, target, and short channel
         * id.