mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
29 lines
682 B
Mathematica
29 lines
682 B
Mathematica
|
//
|
||
|
// TSUpdateAttributesRequest.m
|
||
|
// Signal
|
||
|
//
|
||
|
// Created by Frederic Jacobs on 22/08/15.
|
||
|
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "TSConstants.h"
|
||
|
#import "TSUpdateAttributesRequest.h"
|
||
|
#import "TSAttributes.h"
|
||
|
|
||
|
@implementation TSUpdateAttributesRequest
|
||
|
|
||
|
- (instancetype)initWithUpdatedAttributes
|
||
|
{
|
||
|
NSString *endPoint = [textSecureAccountsAPI stringByAppendingString:textSecureAttributesAPI];
|
||
|
self = [super initWithURL:[NSURL URLWithString:endPoint]];
|
||
|
|
||
|
if (self) {
|
||
|
[self setHTTPMethod:@"PUT"];
|
||
|
[self.parameters addEntriesFromDictionary:[TSAttributes attributesFromStorage]];
|
||
|
}
|
||
|
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
@end
|