560a6b5d62d1de2a399b911cb1785213185b1c41
[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                 string ret = bindings.Record_get_args(this.ptr);
42                 GC.KeepAlive(this);
43                 return ret;
44         }
45
46         /**
47          * The message body.
48          */
49         public void set_args(string val) {
50                 bindings.Record_set_args(this.ptr, val);
51                 GC.KeepAlive(this);
52                 GC.KeepAlive(val);
53         }
54
55         /**
56          * The module path of the message.
57          */
58         public string get_module_path() {
59                 string ret = bindings.Record_get_module_path(this.ptr);
60                 GC.KeepAlive(this);
61                 return ret;
62         }
63
64         /**
65          * The module path of the message.
66          */
67         public void set_module_path(string val) {
68                 bindings.Record_set_module_path(this.ptr, val);
69                 GC.KeepAlive(this);
70                 GC.KeepAlive(val);
71         }
72
73         /**
74          * The source file containing the message.
75          */
76         public string get_file() {
77                 string ret = bindings.Record_get_file(this.ptr);
78                 GC.KeepAlive(this);
79                 return ret;
80         }
81
82         /**
83          * The source file containing the message.
84          */
85         public void set_file(string val) {
86                 bindings.Record_set_file(this.ptr, val);
87                 GC.KeepAlive(this);
88                 GC.KeepAlive(val);
89         }
90
91         /**
92          * The line containing the message.
93          */
94         public int get_line() {
95                 int ret = bindings.Record_get_line(this.ptr);
96                 GC.KeepAlive(this);
97                 return ret;
98         }
99
100         /**
101          * The line containing the message.
102          */
103         public void set_line(int val) {
104                 bindings.Record_set_line(this.ptr, val);
105                 GC.KeepAlive(this);
106                 GC.KeepAlive(val);
107         }
108
109         internal long clone_ptr() {
110                 long ret = bindings.Record_clone_ptr(this.ptr);
111                 GC.KeepAlive(this);
112                 return ret;
113         }
114
115         /**
116          * Creates a copy of the Record
117          */
118         public Record clone() {
119                 long ret = bindings.Record_clone(this.ptr);
120                 GC.KeepAlive(this);
121                 if (ret >= 0 && ret <= 4096) { return null; }
122                 org.ldk.structs.Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Record(null, ret); }
123                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
124                 return ret_hu_conv;
125         }
126
127 }
128 } } }