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.
session-ios/SignalServiceKit/src/Messages/TSCall.h

41 lines
1.2 KiB
C

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
10 years ago
#import "OWSReadTracking.h"
10 years ago
#import "TSInteraction.h"
NS_ASSUME_NONNULL_BEGIN
@class TSContactThread;
10 years ago
typedef enum {
RPRecentCallTypeIncoming = 1,
RPRecentCallTypeOutgoing,
RPRecentCallTypeMissed,
// These call types are used until the call connects.
RPRecentCallTypeOutgoingIncomplete,
RPRecentCallTypeIncomingIncomplete,
RPRecentCallTypeMissedBecauseOfChangedIdentity,
RPRecentCallTypeIncomingDeclined
10 years ago
} RPRecentCallType;
@interface TSCall : TSInteraction <OWSReadTracking, OWSPreviewText>
10 years ago
@property (nonatomic, readonly) RPRecentCallType callType;
- (instancetype)initInteractionWithTimestamp:(uint64_t)timestamp inThread:(TSThread *)thread NS_UNAVAILABLE;
- (instancetype)initWithTimestamp:(uint64_t)timestamp
10 years ago
withCallNumber:(NSString *)contactNumber
callType:(RPRecentCallType)callType
inThread:(TSContactThread *)thread NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
10 years ago
- (void)updateCallType:(RPRecentCallType)callType;
10 years ago
@end
NS_ASSUME_NONNULL_END