X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRefund.cs;h=f9a20662c1ee503370f298c633193314de378897;hb=152d721883552dd92925833d15687d7d64d01c35;hp=218d31e579d3dbf133900749847b07e3999f5a10;hpb=5d91c4ade4b5f736d100428ccf84709ad29f971d;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Refund.cs b/c_sharp/src/org/ldk/structs/Refund.cs index 218d31e5..f9a20662 100644 --- a/c_sharp/src/org/ldk/structs/Refund.cs +++ b/c_sharp/src/org/ldk/structs/Refund.cs @@ -243,5 +243,16 @@ public class Refund : CommonBase { return ret_hu_conv; } + /** + * Get the string representation of a Refund object + */ + public string to_str() { + long ret = bindings.Refund_to_str(this.ptr); + GC.KeepAlive(this); + if (ret >= 0 && ret <= 4096) { return null; } + string ret_conv = InternalUtils.decodeString(ret); + return ret_conv; + } + } } } }