X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FParseOrSemanticError.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FParseOrSemanticError.cs;h=c534f89077e1f2ea81acef97ecf9b18c9379689d;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=509bd584274cda3f383ae3e5856d5d22aba3b704;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs b/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs index 509bd584..c534f890 100644 --- a/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs +++ b/c_sharp/src/org/ldk/structs/ParseOrSemanticError.cs @@ -28,17 +28,17 @@ public class ParseOrSemanticError : CommonBase { /** A ParseOrSemanticError of type ParseError */ public class ParseOrSemanticError_ParseError : ParseOrSemanticError { - public ParseError parse_error; + public Bolt11ParseError parse_error; internal ParseOrSemanticError_ParseError(long ptr) : base(null, ptr) { long parse_error = bindings.LDKParseOrSemanticError_ParseError_get_parse_error(ptr); - org.ldk.structs.ParseError parse_error_hu_conv = org.ldk.structs.ParseError.constr_from_ptr(parse_error); + org.ldk.structs.Bolt11ParseError parse_error_hu_conv = org.ldk.structs.Bolt11ParseError.constr_from_ptr(parse_error); if (parse_error_hu_conv != null) { parse_error_hu_conv.ptrs_to.AddLast(this); }; this.parse_error = parse_error_hu_conv; } } /** A ParseOrSemanticError of type SemanticError */ public class ParseOrSemanticError_SemanticError : ParseOrSemanticError { - public SemanticError semantic_error; + public Bolt11SemanticError semantic_error; internal ParseOrSemanticError_SemanticError(long ptr) : base(null, ptr) { this.semantic_error = bindings.LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr); } @@ -64,19 +64,20 @@ public class ParseOrSemanticError : CommonBase { /** * Utility method to constructs a new ParseError-variant ParseOrSemanticError */ - public static ParseOrSemanticError parse_error(org.ldk.structs.ParseError a) { + public static ParseOrSemanticError parse_error(org.ldk.structs.Bolt11ParseError a) { long ret = bindings.ParseOrSemanticError_parse_error(a.ptr); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.ParseOrSemanticError ret_hu_conv = org.ldk.structs.ParseOrSemanticError.constr_from_ptr(ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); }; return ret_hu_conv; } /** * Utility method to constructs a new SemanticError-variant ParseOrSemanticError */ - public static ParseOrSemanticError semantic_error(SemanticError a) { + public static ParseOrSemanticError semantic_error(Bolt11SemanticError a) { long ret = bindings.ParseOrSemanticError_semantic_error(a); GC.KeepAlive(a); if (ret >= 0 && ret <= 4096) { return null; }