Signal-iOS/SignalServiceKit/src/Network/API/Requests/TSContactsIntersectionRequest.m
Michael Kirk ccb4a88742 Import SSK (and history) into Signal-iOS
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
2017-07-21 13:55:01 -04:00

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