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