mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
26 lines
636 B
Objective-C
26 lines
636 B
Objective-C
//
|
|
// TSRecipient.h
|
|
// TextSecureKit
|
|
//
|
|
// Created by Frederic Jacobs on 17/11/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSYapDatabaseObject.h"
|
|
|
|
@interface TSRecipient : TSYapDatabaseObject
|
|
|
|
- (instancetype)initWithTextSecureIdentifier:(NSString*)textSecureIdentifier relay:(NSString*)relay;
|
|
|
|
+ (instancetype)recipientWithTextSecureIdentifier:(NSString*)textSecureIdentifier withTransaction:(YapDatabaseReadTransaction*)transaction;
|
|
|
|
- (NSSet*)devices; //NSNumbers
|
|
|
|
- (void)addDevices:(NSSet *)set;
|
|
|
|
- (void)removeDevices:(NSSet *)set;
|
|
|
|
@property (nonatomic, readonly) NSString *relay;
|
|
|
|
@end
|