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.
session-ios/src/Messages/Attachments/TSAttachmentPointer.h

29 lines
942 B
C

10 years ago
// Created by Frederic Jacobs on 17/12/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
#import "TSAttachment.h"
/**
* A TSAttachmentPointer is a yet-to-be-downloaded attachment.
*/
10 years ago
@interface TSAttachmentPointer : TSAttachment
- (instancetype)initWithIdentifier:(uint64_t)identifier
key:(NSData *)key
contentType:(NSString *)contentType
relay:(NSString *)relay NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithIdentifier:(uint64_t)identifier
key:(NSData *)key
contentType:(NSString *)contentType
relay:(NSString *)relay
avatarOfGroupId:(NSData *)avatarOfGroupId;
@property NSString *relay;
@property NSData *avatarOfGroupId;
@property (getter=isDownloading) BOOL downloading;
@property (getter=hasFailed) BOOL failed;
@end