///
/// HybridLocationSpec.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

import NitroModules

/// See ``HybridLocationSpec``
public protocol HybridLocationSpec_protocol: HybridObject {
  // Properties
  var latitude: Double { get }
  var longitude: Double { get }
  var altitude: Double { get }
  var horizontalAccuracy: Double { get }
  var verticalAccuracy: Double { get }
  var timestamp: Double { get }
  var isMock: Bool { get }

  // Methods
  
}

public extension HybridLocationSpec_protocol {
  /// Default implementation of ``HybridObject.toString``
  func toString() -> String {
    return "[HybridObject Location]"
  }
}

/// See ``HybridLocationSpec``
open class HybridLocationSpec_base {
  private weak var cxxWrapper: HybridLocationSpec_cxx? = nil
  public init() { }
  public func getCxxWrapper() -> HybridLocationSpec_cxx {
  #if DEBUG
    guard self is any HybridLocationSpec else {
      fatalError("`self` is not a `HybridLocationSpec`! Did you accidentally inherit from `HybridLocationSpec_base` instead of `HybridLocationSpec`?")
    }
  #endif
    if let cxxWrapper = self.cxxWrapper {
      return cxxWrapper
    } else {
      let cxxWrapper = HybridLocationSpec_cxx(self as! any HybridLocationSpec)
      self.cxxWrapper = cxxWrapper
      return cxxWrapper
    }
  }
}

/**
 * A Swift base-protocol representing the Location HybridObject.
 * Implement this protocol to create Swift-based instances of Location.
 * ```swift
 * class HybridLocation : HybridLocationSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridLocationSpec = HybridLocationSpec_protocol & HybridLocationSpec_base
