Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. @interface WebserviceHelper : NSObject {
  2.  
  3. int currentType;
  4. NSString *SERVER_URL;
  5. WebserviceManager *webService;
  6. }
  7.  
  8. @property (nonatomic, assign) id delegate;
  9.  
  10. - (void)retrieveStudentwithCode:(NSString *)code {
  11. currentType = STUDENT_TYPE;
  12. NSString *param = [NSString stringWithFormat:@"token=uencom&cid=%@", code];
  13. NSString *link = [NSString stringWithFormat:@"%@getStudentInfo", SERVER_URL];
  14. [webService retrieveData:link withParameters:param];
  15. }
  16.  
  17. - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)receivedData {
  18. data = [NSMutableData new];
  19. [data appendData:receivedData];
  20.  
  21.  
  22. }
  23.  
  24. - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
  25.  
  26.  
  27. [self stopPostingToWebservice];
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement