mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
ccb4a88742
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
36 lines
1 KiB
Objective-C
36 lines
1 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSYapDatabaseObject.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SignalRecipient : TSYapDatabaseObject
|
|
|
|
- (instancetype)initWithTextSecureIdentifier:(NSString *)textSecureIdentifier
|
|
relay:(nullable NSString *)relay;
|
|
|
|
+ (instancetype)selfRecipient;
|
|
+ (nullable instancetype)recipientWithTextSecureIdentifier:(NSString *)textSecureIdentifier;
|
|
+ (nullable instancetype)recipientWithTextSecureIdentifier:(NSString *)textSecureIdentifier
|
|
withTransaction:(YapDatabaseReadTransaction *)transaction;
|
|
|
|
- (void)addDevices:(NSSet *)set;
|
|
|
|
- (void)removeDevices:(NSSet *)set;
|
|
|
|
@property (nonatomic, nullable) NSString *relay;
|
|
@property (nonatomic, retain) NSMutableOrderedSet *devices;
|
|
|
|
- (BOOL)supportsVoice;
|
|
// This property indicates support for both WebRTC audio and video calls.
|
|
- (BOOL)supportsWebRTC;
|
|
|
|
- (NSString *)recipientId;
|
|
|
|
- (NSComparisonResult)compare:(SignalRecipient *)other;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|