blob: 45d352609212bed6dda38c22287acdbe9508d11e [file] [log] [blame]
Jorge Canizales2779ccb2015-04-20 23:42:46 -07001/*
2 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003 * Copyright 2015 gRPC authors.
Jorge Canizales2779ccb2015-04-20 23:42:46 -07004 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Jorge Canizales2779ccb2015-04-20 23:42:46 -07008 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Jorge Canizales2779ccb2015-04-20 23:42:46 -070010 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +020011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
Jorge Canizales2779ccb2015-04-20 23:42:46 -070016 *
17 */
18
19#import <Foundation/Foundation.h>
Jorge Canizales3936ed72015-06-21 14:43:56 -070020#import <GRPCClient/GRPCCall.h>
Jorge Canizales2779ccb2015-04-20 23:42:46 -070021
Jorge Canizalesbe808e32015-07-04 14:37:58 -070022#import "ProtoMethod.h"
23
Muxi Yanc92d90a2018-04-11 18:10:02 -070024__attribute__((deprecated("Please use GRPCProtoCall."))) @interface ProtoRPC
25 : GRPCCall
Jorge Canizales2779ccb2015-04-20 23:42:46 -070026
Muxi Yanc92d90a2018-04-11 18:10:02 -070027 /**
28 * host parameter should not contain the scheme (http:// or https://), only the name or IP
29 * addr and the port number, for example @"localhost:5050".
30 */
31 -
32 (instancetype)initWithHost : (NSString *)host method
33 : (GRPCProtoMethod *)method requestsWriter : (GRXWriter *)requestsWriter responseClass
34 : (Class)responseClass responsesWriteable
35 : (id<GRXWriteable>)responsesWriteable NS_DESIGNATED_INITIALIZER;
Jorge Canizales2779ccb2015-04-20 23:42:46 -070036
37- (void)start;
38@end
Makarand Dharmapurikar6f950102016-06-07 16:52:19 -070039
40/**
Makarand Dharmapurikar4f11ab12016-06-08 10:40:00 -070041 * This subclass is empty now. Eventually we'll remove ProtoRPC class
Makarand Dharmapurikar6f950102016-06-07 16:52:19 -070042 * to avoid potential naming conflict
43 */
Yuchen Zeng36a58a72016-06-20 14:01:07 -070044#pragma clang diagnostic push
45#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Muxi Yanc92d90a2018-04-11 18:10:02 -070046 @interface GRPCProtoCall : ProtoRPC
Yuchen Zeng36a58a72016-06-20 14:01:07 -070047#pragma clang diagnostic pop
Makarand Dharmapurikar6f950102016-06-07 16:52:19 -070048
Muxi Yanc92d90a2018-04-11 18:10:02 -070049 @end