session-ios/SessionMessagingKit/To Do/ProfileManagerProtocol.h

31 lines
839 B
C
Raw Normal View History

2020-11-11 00:58:56 +01:00
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
@class OWSAES256Key;
@class TSThread;
@class YapDatabaseReadWriteTransaction;
@class SNContact;
2020-11-11 00:58:56 +01:00
NS_ASSUME_NONNULL_BEGIN
@protocol ProfileManagerProtocol <NSObject>
2021-02-26 05:56:41 +01:00
#pragma mark - Local Profile
2020-11-11 00:58:56 +01:00
2021-02-26 05:56:41 +01:00
- (void)updateServiceWithProfileName:(nullable NSString *)localProfileName avatarURL:(nullable NSString *)avatarURL;
#pragma mark - Other User's Profiles
2020-11-11 00:58:56 +01:00
- (nullable NSData *)profileKeyDataForRecipientId:(NSString *)recipientId;
- (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId;
- (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId avatarURL:(nullable NSString *)avatarURL;
2021-02-26 05:56:41 +01:00
#pragma mark - Other
- (void)downloadAvatarForUserProfile:(SNContact *)userProfile;
2021-02-23 06:01:06 +01:00
2020-11-11 00:58:56 +01:00
@end
NS_ASSUME_NONNULL_END