mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
|
9 years ago
|
//
|
||
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
|
//
|
||
|
10 years ago
|
|
||
|
9 years ago
|
#import "OWSReadTracking.h"
|
||
|
10 years ago
|
#import "TSInteraction.h"
|
||
|
|
|
||
|
9 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
|
||
|
9 years ago
|
@class TSContactThread;
|
||
|
|
|
||
|
10 years ago
|
typedef enum {
|
||
|
|
RPRecentCallTypeIncoming = 1,
|
||
|
|
RPRecentCallTypeOutgoing,
|
||
|
|
RPRecentCallTypeMissed,
|
||
|
9 years ago
|
// These call types are used until the call connects.
|
||
|
|
RPRecentCallTypeOutgoingIncomplete,
|
||
|
|
RPRecentCallTypeIncomingIncomplete,
|
||
|
9 years ago
|
RPRecentCallTypeMissedBecauseOfChangedIdentity,
|
||
|
8 years ago
|
RPRecentCallTypeIncomingDeclined
|
||
|
10 years ago
|
} RPRecentCallType;
|
||
|
|
|
||
|
9 years ago
|
@interface TSCall : TSInteraction <OWSReadTracking>
|
||
|
10 years ago
|
|
||
|
|
@property (nonatomic, readonly) RPRecentCallType callType;
|
||
|
|
|
||
|
9 years ago
|
- (instancetype)initWithTimestamp:(uint64_t)timestamp
|
||
|
10 years ago
|
withCallNumber:(NSString *)contactNumber
|
||
|
|
callType:(RPRecentCallType)callType
|
||
|
9 years ago
|
inThread:(TSContactThread *)thread NS_DESIGNATED_INITIALIZER;
|
||
|
|
|
||
|
|
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
||
|
10 years ago
|
|
||
|
9 years ago
|
- (void)updateCallType:(RPRecentCallType)callType;
|
||
|
|
|
||
|
10 years ago
|
@end
|
||
|
9 years ago
|
|
||
|
|
NS_ASSUME_NONNULL_END
|