public class FileMessage extends ThreemaMessage
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_CODE |
BLOB_ID_LEN
Constructor and Description |
---|
FileMessage(byte[] blobId,
byte[] encryptionKey,
String mimeType,
String fileName,
int fileSize,
byte[] thumbnailBlobId) |
Modifier and Type | Method and Description |
---|---|
static FileMessage |
fromString(String json) |
byte[] |
getBlobId() |
byte[] |
getData() |
byte[] |
getEncryptionKey() |
String |
getFileName() |
int |
getFileSize() |
String |
getMimeType() |
byte[] |
getThumbnailBlobId() |
int |
getTypeCode() |
String |
toString() |
public static final int TYPE_CODE
public byte[] getBlobId()
public byte[] getEncryptionKey()
public String getMimeType()
public String getFileName()
public int getFileSize()
public byte[] getThumbnailBlobId()
public int getTypeCode()
getTypeCode
in class ThreemaMessage
public byte[] getData() throws BadMessageException
getData
in class ThreemaMessage
BadMessageException
public static FileMessage fromString(String json) throws BadMessageException
BadMessageException
Copyright © 2015 Threema GmbH, Staldenbachstrasse 11, 8808 Pfäffikon SZ, Schweiz. All rights reserved.