VivochaAttachment
@interface VivochaAttachment : VivochaChatObject
This class represent an attachment sent to/received from the Agent during a contact.
-
@property (nonatomic, retain) NSString *referenceId;Attachment unique identifier
-
@property (nonatomic) VivochaAttachmentType type;Attachment type
-
@property (nonatomic) VivochaAttachmentStatus status;Attachment status
-
@property (nonatomic, retain) NSString *mimeType;Attachment MIME type
-
@property (nonatomic, retain) NSString *url;Attachment url
-
@property (nonatomic, retain) id data;Attachment actual data (used for upload purposes)
-
@property (nonatomic, retain) NSString *filename;Attachment filename
-
@property (nonatomic, retain) NSString *desc;Attachment description
-
@property (nonatomic) int fileSize;Attachment file size
-
+ (VivochaAttachment *)attachmentFromEvent:(VivochaEvent *)event;Creates an attachment from a
VivochaEvent -
+ (VivochaAttachmentType)typeForMimeType:(NSString *)mimetype;Returns the attachment type for a given MIME type
-
- (NSDictionary *)getRawJSON;Returns the raw payload for the attachment