Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -4584,6 +4584,9 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) | ... | @@ -4584,6 +4584,9 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) |
4584 | _httpClient.requestSerializer = [AFJSONRequestSerializer serializer]; | 4584 | _httpClient.requestSerializer = [AFJSONRequestSerializer serializer]; |
4585 | [_httpClient.requestSerializer setTimeoutInterval:30]; | 4585 | [_httpClient.requestSerializer setTimeoutInterval:30]; |
4586 | 4586 | ||
4587 | + [self createDBIfNeeded]; | ||
4588 | + [self initDBIfNeeded]; | ||
4589 | + [self restore]; | ||
4587 | //Set HTTP Headers | 4590 | //Set HTTP Headers |
4588 | time_t timestamp = (time_t) [[NSDate date] timeIntervalSince1970]; | 4591 | time_t timestamp = (time_t) [[NSDate date] timeIntervalSince1970]; |
4589 | // NSString *accessToken = [NSString alloc]; | 4592 | // NSString *accessToken = [NSString alloc]; |
... | @@ -4740,6 +4743,9 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) | ... | @@ -4740,6 +4743,9 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2) |
4740 | _httpClient.requestSerializer = [AFJSONRequestSerializer serializer]; | 4743 | _httpClient.requestSerializer = [AFJSONRequestSerializer serializer]; |
4741 | [_httpClient.requestSerializer setTimeoutInterval:30]; | 4744 | [_httpClient.requestSerializer setTimeoutInterval:30]; |
4742 | 4745 | ||
4746 | + [self createDBIfNeeded]; | ||
4747 | + [self initDBIfNeeded]; | ||
4748 | + [self restore]; | ||
4743 | //Set HTTP Headers | 4749 | //Set HTTP Headers |
4744 | time_t timestamp = (time_t) [[NSDate date] timeIntervalSince1970]; | 4750 | time_t timestamp = (time_t) [[NSDate date] timeIntervalSince1970]; |
4745 | // NSString *accessToken = [NSString alloc]; | 4751 | // NSString *accessToken = [NSString alloc]; | ... | ... |
-
Please register or login to post a comment