2015-12-07 03:31:43 +01:00
|
|
|
// Created by Frederic Jacobs on 12/11/14.
|
|
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
|
|
|
|
#import "TSInteraction.h"
|
|
|
|
|
2016-07-28 01:58:49 +02:00
|
|
|
@class TSContactThread;
|
|
|
|
|
2015-12-07 03:31:43 +01:00
|
|
|
typedef enum {
|
|
|
|
RPRecentCallTypeIncoming = 1,
|
|
|
|
RPRecentCallTypeOutgoing,
|
|
|
|
RPRecentCallTypeMissed,
|
|
|
|
} RPRecentCallType;
|
|
|
|
|
|
|
|
@interface TSCall : TSInteraction
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) RPRecentCallType callType;
|
|
|
|
|
|
|
|
- (instancetype)initWithTimestamp:(uint64_t)timeStamp
|
|
|
|
withCallNumber:(NSString *)contactNumber
|
|
|
|
callType:(RPRecentCallType)callType
|
|
|
|
inThread:(TSContactThread *)thread;
|
|
|
|
|
|
|
|
@end
|