2017-05-14 01:37:50 +02:00
|
|
|
//
|
2018-05-16 21:47:17 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-05-14 01:37:50 +02:00
|
|
|
//
|
2016-09-21 14:37:51 +02:00
|
|
|
|
|
|
|
#import "OWSAvatarBuilder.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@class TSContactThread;
|
|
|
|
|
|
|
|
@interface OWSContactAvatarBuilder : OWSAvatarBuilder
|
|
|
|
|
2017-08-07 21:46:18 +02:00
|
|
|
/**
|
|
|
|
* Build an avatar for a Signal recipient
|
|
|
|
*/
|
2018-09-26 17:10:28 +02:00
|
|
|
- (instancetype)initWithSignalId:(NSString *)signalId colorName:(NSString *)colorName diameter:(NSUInteger)diameter;
|
2017-08-07 21:46:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Build an avatar for a non-Signal recipient
|
|
|
|
*/
|
|
|
|
- (instancetype)initWithNonSignalName:(NSString *)nonSignalName
|
|
|
|
colorSeed:(NSString *)colorSeed
|
2018-09-26 17:10:28 +02:00
|
|
|
diameter:(NSUInteger)diameter;
|
2017-08-07 21:46:18 +02:00
|
|
|
|
2018-09-27 16:42:27 +02:00
|
|
|
- (instancetype)initForLocalUserWithDiameter:(NSUInteger)diameter;
|
|
|
|
|
2016-09-21 14:37:51 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|