 
   var sampleData: NSData {
     switch self {
-    case .Listing:
-      return JSONReader.readJSONData("Listing")
+    case .SubredditListing:
+      return JSONReader.readJSONData("SubredditList")
+    case .LinkListing:
+      return JSONReader.readJSONData("LinkListing")
     }
   }
 
   var headers: [String: String]? {
+    var bearerToken: String? = nil
     switch self {
-    case .Listing(let token, _, _, _):
-      guard let token = token else {
-        return nil
-      }
-      return ["Authorization": "bearer \(token)"]
+    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 {

  }

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

}


  var path: String {
    switch self {
    case .SubredditListing:
      return "subreddits/mine"
    case .LinkListing(_, let subredditName, let listing, _):
      return "r/\(subredditName)/\(listing.path)"
    }
  }

  var method: Moya.Method {
    switch self {
    default:
      return .GET
    }
  }

  var parameters: [String: AnyObject]? {
    switch self {
    case .SubredditListing(_, let after):
      guard let after = after else {
        return nil
      }
      return ["after": after]
    case .LinkListing(_, _, _, let after):
      guard let after = after else {
        return nil
      }
