From 3d9bd1bc2aa30ebc559cbb675b9b864396240010 Mon Sep 17 00:00:00 2001 From: Spike Grobstein Date: Tue, 31 May 2011 19:36:33 -0400 Subject: [PATCH] added new requestForBandwidthViewerForInterface function --- WRTStatusClient.h | 1 + WRTStatusClient.m | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/WRTStatusClient.h b/WRTStatusClient.h index 7c8c339..c45af76 100644 --- a/WRTStatusClient.h +++ b/WRTStatusClient.h @@ -30,6 +30,7 @@ - (id) initWithHostname:(NSString*)new_hostname port:(NSInteger*)new_port username:(NSString*)new_username password:(NSString*)new_password; - (NSMutableURLRequest*) buildRequest:(NSString*)uri; +- (NSMutableURLRequest*) requestForBandwidthViewerForInterface:(NSString*)interface; - (void) getStatusUpdate:(NSString*)uri delegate:(id)delegate; - (NSString*) getHostname; diff --git a/WRTStatusClient.m b/WRTStatusClient.m index 159e52d..1068f3c 100644 --- a/WRTStatusClient.m +++ b/WRTStatusClient.m @@ -43,6 +43,13 @@ return [theRequest autorelease]; } +- (NSMutableURLRequest*) requestForBandwidthViewerForInterface:(NSString*)interface +{ + NSString *endpoint = [NSString stringWithFormat:@"graph_if.svg?%@", interface]; + + return [self buildRequest:endpoint]; +} + - (void) getStatusUpdate:(NSString*)uri delegate:(id)delegate {