Skip to content

Commit

Permalink
Update ObjC sample to use the new ProtoMethod instead of GRPCMethodName
Browse files Browse the repository at this point in the history
  • Loading branch information
bdotdub committed Nov 11, 2015
1 parent 0dd67a1 commit 3f1f5a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/objective-c/examples/Sample/Sample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#import "ViewController.h"

#import <GRPCClient/GRPCCall.h>
#import <GRPCClient/GRPCMethodName.h>
#import <ProtoRPC/ProtoMethod.h>
#import <RemoteTest/Messages.pbobjc.h>
#import <RemoteTest/Test.pbrpc.h>
#import <RxLibrary/GRXWriter+Immediate.h>
Expand Down Expand Up @@ -66,14 +66,14 @@ - (void)viewDidLoad {

// Same example call using the generic gRPC client library:

GRPCMethodName *method = [[GRPCMethodName alloc] initWithPackage:@"grpc.testing"
interface:@"TestService"
method:@"UnaryCall"];
ProtoMethod *method = [[ProtoMethod alloc] initWithPackage:@"grpc.testing"
service:@"TestService"
method:@"UnaryCall"];

id<GRXWriter> requestsWriter = [GRXWriter writerWithValue:[request data]];
GRXWriter *requestsWriter = [GRXWriter writerWithValue:[request data]];

GRPCCall *call = [[GRPCCall alloc] initWithHost:kRemoteHost
method:method
path:method.HTTPPath
requestsWriter:requestsWriter];

id<GRXWriteable> responsesWriteable = [[GRXWriteable alloc] initWithValueHandler:^(NSData *value) {
Expand Down

0 comments on commit 3f1f5a4

Please sign in to comment.