for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Threema GmbH
* @copyright Copyright (c) 2015-2016 Threema GmbH
*/
namespace Threema\MsgApi\Messages;
class FileMessage extends ThreemaMessage {
const TYPE_CODE = 0x17;
* @var string
private $blobId;
private $thumbnailBlobId;
private $encryptionKey;
private $mimeType;
private $filename;
* @var int
private $size;
* @param string $blobId
* @param string $thumbnailBlobId
* @param string $encryptionKey
* @param string $mimeType
* @param string $filename
* @param int $size
public function __construct($blobId, $thumbnailBlobId, $encryptionKey, $mimeType, $filename, $size) {
$this->blobId = $blobId;
$this->thumbnailBlobId = $thumbnailBlobId;
$this->encryptionKey = $encryptionKey;
$this->mimeType = $mimeType;
$this->filename = $filename;
$this->size = $size;
}
* @return string
public function getBlobId() {
return $this->blobId;
public function getEncryptionKey() {
return $this->encryptionKey;
public function getFilename() {
return $this->filename;
public function getMimeType() {
return $this->mimeType;
* @return int
public function getSize() {
return $this->size;
public function getThumbnailBlobId() {
return $this->thumbnailBlobId;
public function __toString() {
return 'file message';
* Get the message type code of this message.
*
* @return int message type code
public final function getTypeCode() {
return self::TYPE_CODE;