mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
31 lines
931 B
Objective-C
31 lines
931 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "ContactsManagerProtocol.h"
|
|
#import "TSYapDatabaseObject.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface TSGroupModel : TSYapDatabaseObject
|
|
|
|
@property (nonatomic) NSArray<NSString *> *groupMemberIds;
|
|
@property (nullable, readonly, nonatomic) NSString *groupName;
|
|
@property (readonly, nonatomic) NSData *groupId;
|
|
|
|
#if TARGET_OS_IOS
|
|
@property (nullable, nonatomic, strong) UIImage *groupImage;
|
|
|
|
- (instancetype)initWithTitle:(nullable NSString *)title
|
|
memberIds:(NSArray<NSString *> *)memberIds
|
|
image:(nullable UIImage *)image
|
|
groupId:(NSData *)groupId;
|
|
|
|
- (BOOL)isEqual:(id)other;
|
|
- (BOOL)isEqualToGroupModel:(TSGroupModel *)model;
|
|
- (NSString *)getInfoStringAboutUpdateTo:(TSGroupModel *)model contactsManager:(id<ContactsManagerProtocol>)contactsManager;
|
|
#endif
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|