implemented resuming session

This commit is contained in:
Diego Waxemberg
2014-10-20 21:26:08 -04:00
parent 4c646e36c7
commit 84316166eb
4 changed files with 42 additions and 10 deletions

View File

@@ -155,6 +155,11 @@ static const NSString* PORT = @"47984";
return [self createRequestFromString:urlString];
}
- (NSURLRequest*) newResumeRequestWithRiKey:(NSString*)riKey riKeyId:(int)riKeyId {
NSString* urlString = [NSString stringWithFormat:@"%@/resume?uniqueid=%@&rikey=%@&rikeyid=%d", _baseURL, _uniqueId, riKey, riKeyId];
return [self createRequestFromString:urlString];
}
- (NSString*) bytesToHex:(NSData*)data {
const unsigned char* bytes = [data bytes];
NSMutableString *hex = [[NSMutableString alloc] init];