import LDKCHeaders import LDKCHeaders public class Result_UnsignedChannelUpdateDecodeErrorZ { public internal(set) var cOpaqueStruct: LDKCResult_UnsignedChannelUpdateDecodeErrorZ?; /* DEFAULT_CONSTRUCTOR_START */ public init() { self.cOpaqueStruct = LDKCResult_UnsignedChannelUpdateDecodeErrorZ(contents: LDKCResult_UnsignedChannelUpdateDecodeErrorZPtr(), result_ok: true) } /* DEFAULT_CONSTRUCTOR_END */ public init(pointer: LDKCResult_UnsignedChannelUpdateDecodeErrorZ){ self.cOpaqueStruct = pointer } public func isOk() -> Bool { return self.cOpaqueStruct?.result_ok == true } /* RESULT_METHODS_START */ public func getError() -> DecodeError? { if self.cOpaqueStruct?.result_ok == false { return DecodeError(pointer: self.cOpaqueStruct!.contents.err.pointee) } return nil } public func getValue() -> UnsignedChannelUpdate? { if self.cOpaqueStruct?.result_ok == true { return UnsignedChannelUpdate(pointer: self.cOpaqueStruct!.contents.result.pointee) } return nil } /* RESULT_METHODS_END */ }