IOS-1469 Move comments from protocol to class IOS-1469
authorAlejandro Gelos <agp@pep.security>
Tue, 19 Feb 2019 10:52:01 +0100
branchIOS-1469
changeset 7718e355d17b8026
parent 7717 55ab53b7039b
child 7734 11e08d1cb741
IOS-1469 Move comments from protocol to class
pEpForiOS/Util/Reachability/ReachabilityUtils.swift
pEpForiOS/Util/Reachability/ReachabilityUtilsProtocol.swift
     1.1 --- a/pEpForiOS/Util/Reachability/ReachabilityUtils.swift	Tue Feb 19 10:13:55 2019 +0100
     1.2 +++ b/pEpForiOS/Util/Reachability/ReachabilityUtils.swift	Tue Feb 19 10:52:01 2019 +0100
     1.3 @@ -87,6 +87,11 @@
     1.4          stopNotifier()
     1.5      }
     1.6      
     1.7 +    /// Get current connection status
     1.8 +    ///
     1.9 +    /// - Parameters:
    1.10 +    ///   - completion: connected and not connected to internet
    1.11 +    ///   - failure: failToGetReachabilityState when failed to get internet status
    1.12      public func getConnectionStatus(completion: @escaping ((Connection)->()),
    1.13                                         failure: @escaping ((ReachabilityError) -> ()) ) {
    1.14          setReachabilityFlags(
    1.15 @@ -99,6 +104,7 @@
    1.16          })
    1.17      }
    1.18      
    1.19 +    /// Start updating internet connection state through ReachabilityDelegate
    1.20      public func startNotifier() {
    1.21          guard !notifierRunning else { return }
    1.22          
    1.23 @@ -133,6 +139,7 @@
    1.24          notifierRunning = true
    1.25      }
    1.26      
    1.27 +    /// Stop updating reachable value
    1.28      public func stopNotifier() {
    1.29          defer { notifierRunning = false }
    1.30          
     2.1 --- a/pEpForiOS/Util/Reachability/ReachabilityUtilsProtocol.swift	Tue Feb 19 10:13:55 2019 +0100
     2.2 +++ b/pEpForiOS/Util/Reachability/ReachabilityUtilsProtocol.swift	Tue Feb 19 10:52:01 2019 +0100
     2.3 @@ -11,17 +11,8 @@
     2.4  protocol ReachabilityUtilsProtocol {
     2.5      var delegate: ReachabilityDelegate? {get set}
     2.6      
     2.7 -    /// Get current connection status
     2.8 -    ///
     2.9 -    /// - Parameters:
    2.10 -    ///   - completion: connected and not connected to internet
    2.11 -    ///   - failure: failToGetReachabilityState when failed to get internet status
    2.12      func getConnectionStatus(completion: @escaping ((Reachability.Connection)->()),
    2.13                                  failure: @escaping ((Reachability.ReachabilityError) -> ()) )
    2.14 -    
    2.15 -    /// Start updating internet connection state through ReachabilityDelegate
    2.16      func startNotifier()
    2.17 -    
    2.18 -    /// Stop updating reachable value
    2.19      func stopNotifier()
    2.20  }