[C#] Add initial hooks, the C# code compiles, the C not at all
[ldk-java] / c_sharp / src / org / ldk / util / WitnessVersion.cs
1 using System;
2
3 namespace org { namespace ldk { namespace util {
4
5 /**
6  * A 4-bit unsigned integer representing a Bitcoin SegWit version
7  */
8 public class WitnessVersion {
9         byte val;
10         public WitnessVersion(byte val) {
11                 if (val > 16 || val < 0) {
12                         throw new ArgumentException();
13                 }
14                 this.val = val;
15         }
16
17         /**
18          * @return the value represented
19          */
20         public byte getVal() {
21                 return val;
22         }
23 }
24
25 } } }