Peter d153fe0f21 Add 'submodules/LegacyComponents/' from commit 'd5594346161c1b7f203d1e87068bbe77bcaac019'
git-subtree-dir: submodules/LegacyComponents
git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9
git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
2019-06-11 18:51:15 +01:00

26 lines
1.1 KiB
Objective-C

#import "TGMediaAttachment.h"
#import <LegacyComponents/TGWebDocument.h>
#define TGInvoiceMediaAttachmentType ((int)0x17af081f)
@class TGWebPageMediaAttachment;
@interface TGInvoiceMediaAttachment : TGMediaAttachment <TGMediaAttachmentParser, NSCoding>
@property (nonatomic, readonly) NSString *title;
@property (nonatomic, readonly) NSString *text;
@property (nonatomic, readonly) TGWebDocument *photo;
@property (nonatomic, strong, readonly) NSString *currency;
@property (nonatomic, readonly) int64_t totalAmount;
@property (nonatomic, readonly) int32_t receiptMessageId;
@property (nonatomic, strong, readonly) NSString *invoiceStartParam;
@property (nonatomic, readonly) bool shippingAddressRequested;
@property (nonatomic, readonly) bool isTest;
- (instancetype)initWithTitle:(NSString *)title text:(NSString *)text photo:(TGWebDocument *)photo currency:(NSString *)currency totalAmount:(int64_t)totalAmount receiptMessageId:(int32_t)receiptMessageId invoiceStartParam:(NSString *)invoiceStartParam shippingAddressRequested:(bool)shippingAddressRequested isTest:(bool)isTest;
- (TGWebPageMediaAttachment *)webpage;
@end