mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
863 B
C
28 lines
863 B
C
|
9 years ago
|
//
|
||
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
|
//
|
||
|
10 years ago
|
|
||
|
|
#import "TSYapDatabaseObject.h"
|
||
|
9 years ago
|
#import "ContactsManagerProtocol.h"
|
||
|
10 years ago
|
|
||
|
|
@interface TSGroupModel : TSYapDatabaseObject
|
||
|
|
|
||
|
9 years ago
|
@property (nonatomic, strong) NSMutableArray<NSString *> *groupMemberIds;
|
||
|
10 years ago
|
@property (nonatomic, strong) NSString *groupName;
|
||
|
|
@property (nonatomic, strong) NSData *groupId;
|
||
|
|
|
||
|
|
#if TARGET_OS_IOS
|
||
|
|
@property (nonatomic, strong) UIImage *groupImage;
|
||
|
|
|
||
|
|
- (instancetype)initWithTitle:(NSString *)title
|
||
|
9 years ago
|
memberIds:(NSMutableArray<NSString *> *)memberIds
|
||
|
10 years ago
|
image:(UIImage *)image
|
||
|
9 years ago
|
groupId:(NSData *)groupId;
|
||
|
10 years ago
|
|
||
|
|
- (BOOL)isEqual:(id)other;
|
||
|
|
- (BOOL)isEqualToGroupModel:(TSGroupModel *)model;
|
||
|
9 years ago
|
- (NSString *)getInfoStringAboutUpdateTo:(TSGroupModel *)model contactsManager:(id<ContactsManagerProtocol>)contactsManager;
|
||
|
10 years ago
|
#endif
|
||
|
|
|
||
|
|
@end
|