[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / Record.cs
1 using org.ldk.impl;
2 using org.ldk.enums;
3 using org.ldk.util;
4 using System;
5
6 namespace org { namespace ldk { namespace structs {
7
8
9 /**
10  * A Record, unit of logging output with Metadata to enable filtering
11  * Module_path, file, line to inform on log's source
12  */
13 public class Record : CommonBase {
14         internal Record(object _dummy, long ptr) : base(ptr) { }
15         ~Record() {
16                 if (ptr != 0) { bindings.Record_free(ptr); }
17         }
18
19         /**
20          * The verbosity level of the message.
21          */
22         public Level get_level() {
23                 Level ret = bindings.Record_get_level(this.ptr);
24                 GC.KeepAlive(this);
25                 return ret;
26         }
27
28         /**
29          * The verbosity level of the message.
30          */
31         public void set_level(Level val) {
32                 bindings.Record_set_level(this.ptr, val);
33                 GC.KeepAlive(this);
34                 GC.KeepAlive(val);
35         }
36
37         /**
38          * The message body.
39          */
40         public string get_args() {
41                 long ret = bindings.Record_get_args(this.ptr);
42                 GC.KeepAlive(this);
43                 if (ret >= 0 && ret <= 4096) { return null; }
44                 string ret_conv = InternalUtils.decodeString(ret);
45                 return ret_conv;
46         }
47
48         /**
49          * The message body.
50          */
51         public void set_args(string val) {
52                 bindings.Record_set_args(this.ptr, InternalUtils.encodeString(val));
53                 GC.KeepAlive(this);
54                 GC.KeepAlive(val);
55         }
56
57         /**
58          * The module path of the message.
59          */
60         public string get_module_path() {
61                 long ret = bindings.Record_get_module_path(this.ptr);
62                 GC.KeepAlive(this);
63                 if (ret >= 0 && ret <= 4096) { return null; }
64                 string ret_conv = InternalUtils.decodeString(ret);
65                 return ret_conv;
66         }
67
68         /**
69          * The module path of the message.
70          */
71         public void set_module_path(string val) {
72                 bindings.Record_set_module_path(this.ptr, InternalUtils.encodeString(val));
73                 GC.KeepAlive(this);
74                 GC.KeepAlive(val);
75         }
76
77         /**
78          * The source file containing the message.
79          */
80         public string get_file() {
81                 long ret = bindings.Record_get_file(this.ptr);
82                 GC.KeepAlive(this);
83                 if (ret >= 0 && ret <= 4096) { return null; }
84                 string ret_conv = InternalUtils.decodeString(ret);
85                 return ret_conv;
86         }
87
88         /**
89          * The source file containing the message.
90          */
91         public void set_file(string val) {
92                 bindings.Record_set_file(this.ptr, InternalUtils.encodeString(val));
93                 GC.KeepAlive(this);
94                 GC.KeepAlive(val);
95         }
96
97         /**
98          * The line containing the message.
99          */
100         public int get_line() {
101                 int ret = bindings.Record_get_line(this.ptr);
102                 GC.KeepAlive(this);
103                 return ret;
104         }
105
106         /**
107          * The line containing the message.
108          */
109         public void set_line(int val) {
110                 bindings.Record_set_line(this.ptr, val);
111                 GC.KeepAlive(this);
112                 GC.KeepAlive(val);
113         }
114
115         internal long clone_ptr() {
116                 long ret = bindings.Record_clone_ptr(this.ptr);
117                 GC.KeepAlive(this);
118                 return ret;
119         }
120
121         /**
122          * Creates a copy of the Record
123          */
124         public Record clone() {
125                 long ret = bindings.Record_clone(this.ptr);
126                 GC.KeepAlive(this);
127                 if (ret >= 0 && ret <= 4096) { return null; }
128                 org.ldk.structs.Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Record(null, ret); }
129                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
130                 return ret_hu_conv;
131         }
132
133 }
134 } } }