1
0
Fork 0

added new requestForBandwidthViewerForInterface function

master
Spike Grobstein 14 years ago
parent e05de6706a
commit 3d9bd1bc2a

@ -30,6 +30,7 @@
- (id) initWithHostname:(NSString*)new_hostname port:(NSInteger*)new_port username:(NSString*)new_username password:(NSString*)new_password; - (id) initWithHostname:(NSString*)new_hostname port:(NSInteger*)new_port username:(NSString*)new_username password:(NSString*)new_password;
- (NSMutableURLRequest*) buildRequest:(NSString*)uri; - (NSMutableURLRequest*) buildRequest:(NSString*)uri;
- (NSMutableURLRequest*) requestForBandwidthViewerForInterface:(NSString*)interface;
- (void) getStatusUpdate:(NSString*)uri delegate:(id)delegate; - (void) getStatusUpdate:(NSString*)uri delegate:(id)delegate;
- (NSString*) getHostname; - (NSString*) getHostname;

@ -43,6 +43,13 @@
return [theRequest autorelease]; 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 - (void) getStatusUpdate:(NSString*)uri delegate:(id)delegate
{ {

Loading…
Cancel
Save