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
27 lines
593 B
Objective-C
27 lines
593 B
Objective-C
//
|
|
// TSContactsIntersection.m
|
|
// TextSecureiOS
|
|
//
|
|
// Created by Frederic Jacobs on 10/12/13.
|
|
// Copyright (c) 2013 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSConstants.h"
|
|
|
|
#import "TSContactsIntersectionRequest.h"
|
|
|
|
@implementation TSContactsIntersectionRequest
|
|
|
|
- (id)initWithHashesArray:(NSArray *)hashes {
|
|
self = [self
|
|
initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", textSecureDirectoryAPI, @"tokens"]]];
|
|
|
|
self.HTTPMethod = @"PUT";
|
|
|
|
[self.parameters addEntriesFromDictionary:@{ @"contacts" : hashes }];
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|