|
|
@ -65,19 +65,22 @@ |
|
|
|
return self; |
|
|
|
return self; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
- (GRPCProtoCall *)RPCToMethod:(NSString *)method |
|
|
|
#pragma clang diagnostic push |
|
|
|
|
|
|
|
#pragma clang diagnostic ignored "-Wincompatible-pointer-types" |
|
|
|
|
|
|
|
- (ProtoRPC *)RPCToMethod:(NSString *)method |
|
|
|
requestsWriter:(GRXWriter *)requestsWriter |
|
|
|
requestsWriter:(GRXWriter *)requestsWriter |
|
|
|
responseClass:(Class)responseClass |
|
|
|
responseClass:(Class)responseClass |
|
|
|
responsesWriteable:(id<GRXWriteable>)responsesWriteable { |
|
|
|
responsesWriteable:(id<GRXWriteable>)responsesWriteable { |
|
|
|
GRPCProtoMethod *methodName = [[GRPCProtoMethod alloc] initWithPackage:_packageName |
|
|
|
ProtoMethod *methodName = [[ProtoMethod alloc] initWithPackage:_packageName |
|
|
|
service:_serviceName |
|
|
|
service:_serviceName |
|
|
|
method:method]; |
|
|
|
method:method]; |
|
|
|
return [[GRPCProtoCall alloc] initWithHost:_host |
|
|
|
return [[ProtoRPC alloc] initWithHost:_host |
|
|
|
method:methodName |
|
|
|
method:methodName |
|
|
|
requestsWriter:requestsWriter |
|
|
|
requestsWriter:requestsWriter |
|
|
|
responseClass:responseClass |
|
|
|
responseClass:responseClass |
|
|
|
responsesWriteable:responsesWriteable]; |
|
|
|
responsesWriteable:responsesWriteable]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#pragma clang diagnostic pop |
|
|
|
@end |
|
|
|
@end |
|
|
|
|
|
|
|
|
|
|
|
@implementation GRPCProtoService |
|
|
|
@implementation GRPCProtoService |
|
|
|