Skip to content
Snippets Groups Projects
Commit 1ac8f9a2 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Rename interface->service

parent 469d4b6f
No related branches found
No related tags found
No related merge requests found
...@@ -38,10 +38,9 @@ ...@@ -38,10 +38,9 @@
// A fully-qualified gRPC method name. Full qualification is needed because a gRPC endpoint can // A fully-qualified gRPC method name. Full qualification is needed because a gRPC endpoint can
// implement multiple interfaces. // implement multiple interfaces.
// TODO(jcanizales): Move to ProtoRPC package. // TODO(jcanizales): Move to ProtoRPC package.
// TODO(jcanizales): Rename interface -> service.
@interface ProtoMethod : NSObject @interface ProtoMethod : NSObject
@property(nonatomic, readonly) NSString *package; @property(nonatomic, readonly) NSString *package;
@property(nonatomic, readonly) NSString *interface; @property(nonatomic, readonly) NSString *service;
@property(nonatomic, readonly) NSString *method; @property(nonatomic, readonly) NSString *method;
- (instancetype)initWithPackage:(NSString *)package - (instancetype)initWithPackage:(NSString *)package
interface:(NSString *)interface interface:(NSString *)interface
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
method:(NSString *)method { method:(NSString *)method {
if ((self = [super init])) { if ((self = [super init])) {
_package = [package copy]; _package = [package copy];
_interface = [interface copy]; _service = [interface copy];
_method = [method copy]; _method = [method copy];
} }
return self; return self;
......
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
@implementation ProtoMethod (HTTP2Encoding) @implementation ProtoMethod (HTTP2Encoding)
- (NSString *)HTTP2Path { - (NSString *)HTTP2Path {
if (self.package) { if (self.package) {
return [NSString stringWithFormat:@"/%@.%@/%@", self.package, self.interface, self.method]; return [NSString stringWithFormat:@"/%@.%@/%@", self.package, self.service, self.method];
} else { } else {
return [NSString stringWithFormat:@"/%@/%@", self.interface, self.method]; return [NSString stringWithFormat:@"/%@/%@", self.service, self.method];
} }
} }
@end @end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment