Initial checkin
[ldk-swift-linux] / LDKSwift / Sources / LDKSwift / tuples / C2Tuple_BlockHashChannelMonitorZ.swift
1 import LDKCHeaders
2
3 public class C2Tuple_BlockHashChannelMonitorZ {
4
5     public internal(set) var cOpaqueStruct: LDKC2Tuple_BlockHashChannelMonitorZ?;
6
7     public init(pointer: LDKC2Tuple_BlockHashChannelMonitorZ){
8                 self.cOpaqueStruct = pointer
9         }
10
11     /* TUPLE_METHODS_START */
12
13     public func new(a: [UInt8], b: ChannelMonitor) -> C2Tuple_BlockHashChannelMonitorZ {
14         
15         return C2Tuple_BlockHashChannelMonitorZ(pointer: C2Tuple_BlockHashChannelMonitorZ_new(Bindings.new_LDKThirtyTwoBytes(array: a), b.cOpaqueStruct!));
16     }
17
18                                 
19         deinit {
20                                         
21                                         if self.cOpaqueStruct?.b.is_owned == true {
22                                                 return
23                                         }
24                                 
25                                         
26                                         
27                 C2Tuple_BlockHashChannelMonitorZ_free(self.cOpaqueStruct!)
28                                 
29         }
30                         
31     /* TUPLE_METHODS_END */
32
33 }