X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FOffer.cs;h=8ff67b8a9e4d18223338b2acdda220680fd6fc18;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=2ac035d9703463e7d0b65c2478f105e753ff03da;hpb=a32b8843c44637ebd82c83390d17db573b972153;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Offer.cs b/c_sharp/src/org/ldk/structs/Offer.cs index 2ac035d9..8ff67b8a 100644 --- a/c_sharp/src/org/ldk/structs/Offer.cs +++ b/c_sharp/src/org/ldk/structs/Offer.cs @@ -208,6 +208,16 @@ public class Offer : CommonBase { return ret; } + /** + * Whether the offer has expired given the duration since the Unix epoch. + */ + public bool is_expired_no_std(long duration_since_epoch) { + bool ret = bindings.Offer_is_expired_no_std(this.ptr, duration_since_epoch); + GC.KeepAlive(this); + GC.KeepAlive(duration_since_epoch); + return ret; + } + /** * Returns whether the given quantity is valid for the offer. */