-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a separate API client for the APIs that can only be used with …
…vandyvans.com
- Loading branch information
Showing
9 changed files
with
280 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// VVVandyVansClient.h | ||
// Vandy Vans | ||
// | ||
// Created by Seth Friedman on 1/30/14. | ||
// Copyright (c) 2014 VandyMobile. All rights reserved. | ||
// | ||
|
||
#import "AFHTTPSessionManager.h" | ||
|
||
@class VVRoute; | ||
@class MKPolyline; | ||
|
||
@interface VVVandyVansClient : AFHTTPSessionManager | ||
|
||
+ (instancetype)sharedClient; | ||
|
||
/** This method gives the API key for accessing Syncromatics's Vandy Vans service. */ | ||
+ (NSString *)apiKey; | ||
|
||
- (NSURLSessionDataTask *)fetchStopsForRoute:(VVRoute *)route withCompletionBlock:(void (^)(NSArray *stops, NSError *error))completionBlock; | ||
|
||
- (NSURLSessionDataTask *)fetchPolylineForRoute:(VVRoute *)route withCompletionBlock:(void (^)(MKPolyline *polyline, NSError *error))completionBlock; | ||
|
||
@end |
Oops, something went wrong.