session-ios/SignalServiceKit/src/Messages/TSGroupModel.h

34 lines
969 B
C
Raw Normal View History

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
2015-12-07 03:31:43 +01:00
#import "ContactsManagerProtocol.h"
2018-02-16 02:45:28 +01:00
#import "TSYapDatabaseObject.h"
2015-12-07 03:31:43 +01:00
NS_ASSUME_NONNULL_BEGIN
2018-10-15 21:08:00 +02:00
extern const int32_t kGroupIdLength;
2015-12-07 03:31:43 +01:00
@interface TSGroupModel : TSYapDatabaseObject
@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
@property (nullable, nonatomic, strong) UIImage *groupImage;
2015-12-07 03:31:43 +01:00
- (instancetype)initWithTitle:(nullable NSString *)title
memberIds:(NSArray<NSString *> *)memberIds
image:(nullable UIImage *)image
groupId:(NSData *)groupId;
2015-12-07 03:31:43 +01:00
- (BOOL)isEqual:(id)other;
- (BOOL)isEqualToGroupModel:(TSGroupModel *)model;
- (NSString *)getInfoStringAboutUpdateTo:(TSGroupModel *)model contactsManager:(id<ContactsManagerProtocol>)contactsManager;
2015-12-07 03:31:43 +01:00
#endif
@end
NS_ASSUME_NONNULL_END