 
 enum RedditAPI {
 
-  case Listing(token: String?, name: String, listing: ListingType, after: String?)
+  case SubredditListing(token: String, after: String?)
+  case LinkListing(token: String?, subredditName: String, listing: ListingType, after: String?)
 
 }
 

  }

  var url: String {
    return "\(baseURL)\(path)"
  }

}


  var sampleData: NSData {
    switch self {
    case .SubredditListing:
      return JSONReader.readJSONData("SubredditList")
    case .LinkListing:
      return JSONReader.readJSONData("LinkListing")
    }
  }

  var headers: [String: String]? {
    var bearerToken: String? = nil
    switch self {
    case .SubredditListing(let token, _):
      bearerToken = token
    case .LinkListing(let token, _, _, _):
      bearerToken = token
    default:
      return nil
    }
    guard let token = bearerToken else {
      return nil
    }
    return ["Authorization": "bearer \(token)"]
  }

  var parameterEncoding: ParameterEncoding {
