//
//  KGInterfaceBrokerRegistry.h
//  KakaoGame SDK
//
//  Created by Ronaldo Kim on 2016. 9. 19..
//  Copyright (c) 2016. Kakao Corp. All rights reserved.
//

#import <KakaoGame/KakaoGame+Private.h>

typedef void (^InterfaceBrokerHandler)(NSString* uri, int txNo, NSDictionary* paramDic, NSString** returnJson);

@interface KGInterfaceBrokerRegistry : NSObject

+ (instancetype)sharedInstance;

- (void)registerInterfaceBrokerHandlerWithUri:(NSString *)uri handler:(InterfaceBrokerHandler)handler;

- (InterfaceBrokerHandler)interfaceBrokerHandlerWithUri:(NSString *)uri;

+ (NSString*)makeJsonResponseWithUri:(NSString *)uri txNo:(int)txNo error:(NSError *)error contents:(id)contents;

@end

