[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / Refund.cs
index d83b0c3413b205a6fed9236ec43ec7b66dd56bf2..218d31e579d3dbf133900749847b07e3999f5a10 100644 (file)
@@ -209,6 +209,18 @@ public class Refund : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the Refund.
+        */
+       public long hash() {
+               long ret = bindings.Refund_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Serialize the Refund object into a byte array which can be read by Refund_read
         */