mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
git remote add ssk ../SignalServiceKit git remote update git merge -s ours --allow-unrelated-histories --no-commit ssk/master git read-tree --prefix=SignalServiceKit -u ssk/master git commit
31 lines
604 B
Objective-C
31 lines
604 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSGetProfileRequest.h"
|
|
#import "TSConstants.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation OWSGetProfileRequest
|
|
|
|
- (instancetype)initWithRecipientId:(NSString *)recipientId
|
|
{
|
|
OWSAssert(recipientId.length > 0);
|
|
|
|
NSString *path = [NSString stringWithFormat:textSecureProfileAPIFormat, recipientId];
|
|
self = [super initWithURL:[NSURL URLWithString:path]];
|
|
if (!self) {
|
|
return self;
|
|
}
|
|
|
|
self.HTTPMethod = @"GET";
|
|
self.parameters = nil;
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|