2017-05-23 16:28:50 +02:00
|
|
|
//
|
2018-02-13 07:10:29 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-05-23 16:28:50 +02:00
|
|
|
//
|
2015-12-07 03:31:43 +01:00
|
|
|
|
2016-10-17 16:15:50 +02:00
|
|
|
#import "ContactsManagerProtocol.h"
|
2018-02-16 02:45:28 +01:00
|
|
|
#import "TSYapDatabaseObject.h"
|
2015-12-07 03:31:43 +01:00
|
|
|
|
2018-02-13 07:10:29 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2018-10-15 21:08:00 +02:00
|
|
|
extern const int32_t kGroupIdLength;
|
2018-10-10 14:55:20 +02:00
|
|
|
|
2015-12-07 03:31:43 +01:00
|
|
|
@interface TSGroupModel : TSYapDatabaseObject
|
|
|
|
|
2018-02-13 07:10:29 +01:00
|
|
|
@property (nonatomic) NSArray<NSString *> *groupMemberIds;
|
|
|
|
@property (nullable, readonly, nonatomic) NSString *groupName;
|
|
|
|
@property (readonly, nonatomic) NSData *groupId;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
|
|
|
#if TARGET_OS_IOS
|
2018-02-13 07:10:29 +01:00
|
|
|
@property (nullable, nonatomic, strong) UIImage *groupImage;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
2018-02-13 07:10:29 +01:00
|
|
|
- (instancetype)initWithTitle:(nullable NSString *)title
|
|
|
|
memberIds:(NSArray<NSString *> *)memberIds
|
|
|
|
image:(nullable UIImage *)image
|
2016-07-31 02:40:14 +02:00
|
|
|
groupId:(NSData *)groupId;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
|
|
|
- (BOOL)isEqual:(id)other;
|
|
|
|
- (BOOL)isEqualToGroupModel:(TSGroupModel *)model;
|
2016-10-17 16:15:50 +02:00
|
|
|
- (NSString *)getInfoStringAboutUpdateTo:(TSGroupModel *)model contactsManager:(id<ContactsManagerProtocol>)contactsManager;
|
2015-12-07 03:31:43 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
@end
|
2018-02-13 07:10:29 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|