Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @interface WebserviceHelper : NSObject {
- int currentType;
- NSString *SERVER_URL;
- WebserviceManager *webService;
- }
- @property (nonatomic, assign) id delegate;
- - (void)retrieveStudentwithCode:(NSString *)code {
- currentType = STUDENT_TYPE;
- NSString *param = [NSString stringWithFormat:@"token=uencom&cid=%@", code];
- NSString *link = [NSString stringWithFormat:@"%@getStudentInfo", SERVER_URL];
- [webService retrieveData:link withParameters:param];
- }
- - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)receivedData {
- data = [NSMutableData new];
- [data appendData:receivedData];
- }
- - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
- [self stopPostingToWebservice];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement