[C#] Check in initial auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / TxOut.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 public class TxOut : CommonBase {
9         /** The script_pubkey in this output */
10         public readonly byte[] script_pubkey;
11         /** The value, in satoshis, of this output */
12         public readonly long value;
13
14     internal TxOut(object _dummy, long ptr) : base(ptr) {
15                 this.script_pubkey = bindings.TxOut_get_script_pubkey(ptr);
16                 this.value = bindings.TxOut_get_value(ptr);
17         }
18     public TxOut(long value, byte[] script_pubkey) : base(bindings.TxOut_new(script_pubkey, value)) {
19                 this.script_pubkey = bindings.TxOut_get_script_pubkey(ptr);
20                 this.value = bindings.TxOut_get_value(ptr);
21         }
22
23         ~TxOut() {
24                 if (ptr != 0) { bindings.TxOut_free(ptr); }
25         }
26 }} } }