session-ios/Signal/src/textsecure/Messages/TSCall.h

34 lines
866 B
Objective-C

//
// TSCall.h
// TextSecureKit
//
// Created by Frederic Jacobs on 12/11/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TSInteraction.h"
#import "Contact.h"
@interface TSCall : TSInteraction
typedef NS_ENUM(NSInteger, TSCallType) {
TSCallTypeSuccess,
TSCallTypeMissed,
TSCallTypeBusy,
TSCallTypeFailed
};
@property (nonatomic, readonly) NSNumber *duration;
@property (nonatomic, readonly) BOOL wasCaller;
@property (nonatomic, readonly) TSCallType callType;
@property (nonatomic) NSString *redPhoneNumber;
- (instancetype)initWithTimestamp:(uint64_t)timeStamp
withCallNumber:(NSString*)contactNumber
wasCaller:(BOOL)caller callType:(TSCallType)callType
duration:(NSNumber*)duration;
@end