// // RedPhoneAPICall.h // Signal // // Created by Frederic Jacobs on 05/10/14. // Copyright (c) 2014 Open Whisper Systems. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @class PhoneNumber; @interface RPAPICall : NSObject typedef NS_ENUM(NSInteger, HTTPMethod) { HTTP_GET, HTTP_POST, HTTP_PUT, HTTP_DELETE, SIGNAL_RING, SIGNAL_BUSY }; #pragma mark API Call Properties @property (nonatomic, readonly) NSString *endPoint; @property (nonatomic, readonly) HTTPMethod method; @property (nonatomic, readonly) NSMutableDictionary *parameters; @property (nonatomic, readonly) AFHTTPRequestSerializer *requestSerializer; @property (nonatomic, readonly) AFHTTPResponseSerializer *responseSerializer; #pragma mark API Call Contstructors + (RPAPICall *)verifyWithTSToken:(NSString *)tsToken signalingKey:(NSData *)signalingKey; + (RPAPICall *)registerPushNotificationWithPushToken:(NSString *)pushToken voipToken:(NSString *)voipToken; @end NS_ASSUME_NONNULL_END