[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / InitFeatures.cs
index 44c97a13c6687756d536311942e7ec54717b5e64..4f1551e3778bbc20a27a284a95ecd7db5a046d5e 100644 (file)
@@ -50,6 +50,18 @@ public class InitFeatures : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the InitFeatures.
+        */
+       public long hash() {
+               long ret = bindings.InitFeatures_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Create a blank Features with no features set
         */
@@ -541,6 +553,40 @@ public class InitFeatures : CommonBase {
                return ret;
        }
 
+       /**
+        * Set this feature as optional.
+        */
+       public void set_route_blinding_optional() {
+               bindings.InitFeatures_set_route_blinding_optional(this.ptr);
+               GC.KeepAlive(this);
+       }
+
+       /**
+        * Set this feature as required.
+        */
+       public void set_route_blinding_required() {
+               bindings.InitFeatures_set_route_blinding_required(this.ptr);
+               GC.KeepAlive(this);
+       }
+
+       /**
+        * Checks if this feature is supported.
+        */
+       public bool supports_route_blinding() {
+               bool ret = bindings.InitFeatures_supports_route_blinding(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       /**
+        * Checks if this feature is required.
+        */
+       public bool requires_route_blinding() {
+               bool ret = bindings.InitFeatures_requires_route_blinding(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
        /**
         * Set this feature as optional.
         */