diff options
author | Jorge Canizales <jcanizales@google.com> | 2016-07-29 15:45:02 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2016-07-29 15:45:02 -0700 |
commit | 7a2bc14fc0f5ad3b70ac9c47d37ec96625ba80dc (patch) | |
tree | 3b9fd21b356a7cc8b12780394fd676b7ca3cabb5 /src/objective-c/examples/SwiftSample/ViewController.swift | |
parent | 8a9fe2ad9705089b91bff9ab3b2ef5a6011326ee (diff) | |
parent | 5e623b8d8d8d106bd4ab9a6d77ef43b1a134d8ec (diff) |
Merge commit '5e623b8d8d8d106bd4ab9a6d77ef43b1a134d8ec' into p0-advance-protobuf-version
Diffstat (limited to 'src/objective-c/examples/SwiftSample/ViewController.swift')
-rw-r--r-- | src/objective-c/examples/SwiftSample/ViewController.swift | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/objective-c/examples/SwiftSample/ViewController.swift b/src/objective-c/examples/SwiftSample/ViewController.swift index 2a95d2de51..e7bab13762 100644 --- a/src/objective-c/examples/SwiftSample/ViewController.swift +++ b/src/objective-c/examples/SwiftSample/ViewController.swift @@ -33,6 +33,8 @@ import UIKit +import RemoteTest + class ViewController: UIViewController { override func viewDidLoad() { @@ -60,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)") @@ -79,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()) |