49 lines
874 B
Objective-C
49 lines
874 B
Objective-C
//
|
|
// TSThread.h
|
|
// TextSecureKit
|
|
//
|
|
// Created by Frederic Jacobs on 16/11/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <YapDatabase/YapDatabaseRelationshipNode.h>
|
|
|
|
#import "TSYapDatabaseObject.h"
|
|
|
|
/**
|
|
* TSThread is the superclass of TSContactThread and TSGroupThread
|
|
*/
|
|
|
|
@interface TSThread : TSYapDatabaseObject
|
|
|
|
/**
|
|
* Returns whether the object is a group thread or not
|
|
*
|
|
* @return Is a group
|
|
*/
|
|
|
|
- (BOOL)isGroupThread;
|
|
|
|
/**
|
|
* Returns the name of the thread.
|
|
*
|
|
* @return name of the thread
|
|
*/
|
|
|
|
- (NSString*)name;
|
|
|
|
/**
|
|
* Returns the image representing the thread. Nil if not available.
|
|
*
|
|
* @return UIImage of the thread, or nil.
|
|
*/
|
|
|
|
- (UIImage*)image;
|
|
|
|
@property (getter=isBlocked) BOOL blocked;
|
|
@property (nonatomic) uint64_t lastMessageId;
|
|
- (NSDate*)lastMessageDate;
|
|
|
|
@end
|