SwiftSample app: ProtoMethod -> GRPCProtoMethod, etc.

pull/7425/head
Jorge Canizales 8 years ago
parent d7f0e87708
commit a5e86f3aef
  1. 4
      src/objective-c/examples/SwiftSample/ViewController.swift

@ -62,7 +62,7 @@ class ViewController: UIViewController {
// Same but manipulating headers:
var RPC : ProtoRPC! // Needed to convince Swift to capture by reference (__block)
var RPC : GRPCProtoCall! // Needed to convince Swift to capture by reference (__block)
RPC = service.RPCToUnaryCallWithRequest(request) { response, error in
if let response = response {
NSLog("2. Finished successfully with response:\n\(response)")
@ -81,7 +81,7 @@ class ViewController: UIViewController {
// Same example call using the generic gRPC client library:
let method = ProtoMethod(package: "grpc.testing", service: "TestService", method: "UnaryCall")
let method = GRPCProtoMethod(package: "grpc.testing", service: "TestService", method: "UnaryCall")
let requestsWriter = GRXWriter(value: request.data())

Loading…
Cancel
Save