X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRefund.cs;h=d83b0c3413b205a6fed9236ec43ec7b66dd56bf2;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=bff3dd94e54435cced27a238206b28d8ce2e3094;hpb=8de7213fbf663ff60322896282dad51e8ab2f001;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Refund.cs b/c_sharp/src/org/ldk/structs/Refund.cs index bff3dd94..d83b0c34 100644 --- a/c_sharp/src/org/ldk/structs/Refund.cs +++ b/c_sharp/src/org/ldk/structs/Refund.cs @@ -76,6 +76,16 @@ public class Refund : CommonBase { return ret; } + /** + * Whether the refund has expired given the duration since the Unix epoch. + */ + public bool is_expired_no_std(long duration_since_epoch) { + bool ret = bindings.Refund_is_expired_no_std(this.ptr, duration_since_epoch); + GC.KeepAlive(this); + GC.KeepAlive(duration_since_epoch); + return ret; + } + /** * The issuer of the refund, possibly beginning with `user@domain` or `domain`. Intended to be * displayed to the user but with the caveat that it has not been verified in any way.