//
//  ASABExchangeRateCalculator.h
//  iOrdning
//
//  Created by Erik Aderstedt on 2014-08-15.
//  Copyright (c) 2014 Aderstedt Software AB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ASABExchangeRateCalculator : NSObject

+ (instancetype)sharedExchangeRateCalculator;

- (void)calculateExchangeRateBetween:(NSString *)currency andOtherCurrency:(NSString *)otherCurrency completionHandler:(void (^)(NSDecimalNumber *rate))handler;
- (xpc_connection_t) _connectionForServiceNamed:(const char *)serviceName
					   connectionInvalidHandler:(dispatch_block_t)handler
						  connectionInterrupted:(dispatch_block_t)handler2;
- (xpc_connection_t) _connectionForServiceNamed:(const char *)serviceName
					   connectionInvalidHandler:(dispatch_block_t)handler;

@end
