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