title: How to access passed Enum argument in Swift 3
body: <p>I'm having some trouble accessing a parameter that is passed with an enum.</p>
  
  <p>Generic RequestType, more will be included.</p>
  
  <pre><code>enum RequestType {
    case flagging(api : FlaggingRequestType)
  }
  </code></pre>
  
  <p>Here is my enum that accepts another FlaggingRequestType (another enum  that accepts a string parameter)</p>
  
  <pre><code>enum FlaggingRequestType {
    case getFlag(api : String)
  }
  
  protocol Requestable {
    var requestType : RequestType { get set }
  }
  </code></pre>
  
  <p>Here I build my flagging request</p>
  
  <pre><code>let flaggingRequest = RequestBuilder.buildFlaggingRequest(flagRequest: .getFlag(api: "http://www.apiworld.com"))
  </code></pre>
  
  <p>Here is my method to actually sends the request from another method.</p>
  
  <pre><code>func sendRequest(for apiRequest : Requestable) {
    switch apiRequest.requestType {
    case .flagging:
    self.flaggingAPI(for: apiRequest)
   }
  }
  </code></pre>
  
  <p>The problem is I can't figure out how to access the value passed in the <code>api</code> parameter found in <code>apiRequest</code>/ <code>flaggingRequest</code>. Is this possible? I hope this is clear :)</p>