|
|
@ -222,8 +222,7 @@ void PrintMethodImplementations(Printer* printer, |
|
|
|
map< ::grpc::string, ::grpc::string> vars = { |
|
|
|
map< ::grpc::string, ::grpc::string> vars = { |
|
|
|
{"service_class", ServiceClassName(service)}}; |
|
|
|
{"service_class", ServiceClassName(service)}}; |
|
|
|
|
|
|
|
|
|
|
|
printer.Print( |
|
|
|
printer.Print(vars, "@protocol $service_class$ <NSObject>\n\n"); |
|
|
|
vars, "@protocol $service_class$ <NSObject, GRPCProtoServiceInit>\n\n"); |
|
|
|
|
|
|
|
for (int i = 0; i < service->method_count(); i++) { |
|
|
|
for (int i = 0; i < service->method_count(); i++) { |
|
|
|
PrintMethodDeclarations(&printer, service->method(i)); |
|
|
|
PrintMethodDeclarations(&printer, service->method(i)); |
|
|
|
} |
|
|
|
} |
|
|
|