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
28 lines
713 B
Objective-C
28 lines
713 B
Objective-C
//
|
|
// TSUpdateAttributesRequest.m
|
|
// Signal
|
|
//
|
|
// Created by Frederic Jacobs on 22/08/15.
|
|
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSAttributes.h"
|
|
#import "TSConstants.h"
|
|
#import "TSUpdateAttributesRequest.h"
|
|
|
|
@implementation TSUpdateAttributesRequest
|
|
|
|
- (instancetype)initWithUpdatedAttributesWithVoice {
|
|
NSString *endPoint = [textSecureAccountsAPI stringByAppendingString:textSecureAttributesAPI];
|
|
self = [super initWithURL:[NSURL URLWithString:endPoint]];
|
|
|
|
if (self) {
|
|
[self setHTTPMethod:@"PUT"];
|
|
[self.parameters addEntriesFromDictionary:[TSAttributes attributesFromStorageWithVoiceSupport]];
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|