dbowen / demiurgic-json-rpc Goto Github PK
View Code? Open in Web Editor NEWObjective-C JSON-RPC Implementation
Objective-C JSON-RPC Implementation
Does it support Sync. process ? like calling a function that return a value from the service response and waiting the response to come back
(BOOL)checkUserExistence{
NSInteger callID;
_jsonRPCService =[[DSJSONRPC alloc] initWithServiceEndpoint:[NSURL URLWithString:@"http://serv.m-diet.com/Persons.ashx"]];
DSJSONRPCCompletionHandler completionHandler = ^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *internalError) {
if (methodError) {
NSLog(@"\nMethod %@(%i) returned an error: %@\n\n", methodName, callId, methodError);
return NO;
}
else if (internalError) {
NSLog(@"\nMethod %@(%i) couldn't be sent with error: %@\n\n", methodName, callId, internalError);
return NO;
}
else {
NSLog(@"\nMethod %@(%i) completed with result: %@\n\n", methodName, callId, methodResult);
NSMutableDictionary *responceDictionary = (NSMutableDictionary *)methodResult;
return [[responceDictionary objectForKey:@"result"]boolValue];
}
};
callID = [_jsonRPCService callMethod:@"CheckPersonID" withParameters:@{ @"PersonID" : @"[email protected]"} onCompletion:completionHandler];
}
The README.md file says "Version 1.1.0 of Demiurgic JSON-RPC now has support for ARC." However, JSONKit.m lines 139-141 have this:
It seems that ARC support is still lacking with 1.1.0. As I downloaded 1.1.0 and it does not build without the compiler no-arc compiler flag.
I don't see any licensing information, could you add it? Preferably MIT, assuming this is meant to be free and open source.
Nice project, btw. :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.