Send with raw parameters
Summary: On Android we already had an API to send raw arguments i.e. raw json as params. This just adds feature parity on iOS. Reviewed By: LukeDefeo Differential Revision: D41433777 fbshipit-source-id: abd47f987b9e2b451100e81acf6fea61cd876807
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c0cf7d62d6
commit
1406e291ee
@@ -35,6 +35,10 @@
|
|||||||
[self sendInternal:method withParams:params];
|
[self sendInternal:method withParams:params];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)send:(NSString*)method withRawParams:(NSString*)params {
|
||||||
|
conn_->sendRaw([method UTF8String], [params UTF8String]);
|
||||||
|
}
|
||||||
|
|
||||||
- (void)send:(NSString*)method withArrayParams:(NSArray*)params {
|
- (void)send:(NSString*)method withArrayParams:(NSArray*)params {
|
||||||
[self sendInternal:method withParams:params];
|
[self sendInternal:method withParams:params];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,11 @@ Invoke a method on the Sonar desktop plugin with with a matching identifier.
|
|||||||
*/
|
*/
|
||||||
- (void)send:(NSString*)method withParams:(NSDictionary*)params;
|
- (void)send:(NSString*)method withParams:(NSDictionary*)params;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Invoke a method on the Sonar desktop plugin with with a matching identifier.
|
||||||
|
*/
|
||||||
|
- (void)send:(NSString*)method withRawParams:(NSString*)params;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Invoke a method on the Sonar desktop plugin with with a matching identifier.
|
Invoke a method on the Sonar desktop plugin with with a matching identifier.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -38,6 +38,10 @@
|
|||||||
[self sendInternal:method withParams:params loggedTo:&_sent];
|
[self sendInternal:method withParams:params loggedTo:&_sent];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)send:(NSString*)method withRawParams:(NSString*)params {
|
||||||
|
[self sendInternal:method withParams:params loggedTo:&_sent];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)send:(NSString*)method withArrayParams:(NSArray*)params {
|
- (void)send:(NSString*)method withArrayParams:(NSArray*)params {
|
||||||
[self sendInternal:method withParams:params loggedTo:&_sentWithArray];
|
[self sendInternal:method withParams:params loggedTo:&_sentWithArray];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user