diff options
author | Joas Schilling <coding@schilljs.com> | 2017-10-19 11:05:47 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-10-19 11:05:47 +0200 |
commit | dcb322a6b330b7bd797f8a9faf63114129c56f75 (patch) | |
tree | 38c70a625dbb594e113cd09009733910bbb8c6bc /lib/public/Mail | |
parent | ce27e8cf34daea23117a9e5e0134957889aac332 (diff) | |
download | nextcloud-server-dcb322a6b330b7bd797f8a9faf63114129c56f75.tar.gz nextcloud-server-dcb322a6b330b7bd797f8a9faf63114129c56f75.zip |
Extend the API with teh parameters from Swift
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Mail')
-rw-r--r-- | lib/public/Mail/IMessage.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/public/Mail/IMessage.php b/lib/public/Mail/IMessage.php index 7f061cece05..6ae50ca8842 100644 --- a/lib/public/Mail/IMessage.php +++ b/lib/public/Mail/IMessage.php @@ -30,10 +30,21 @@ namespace OCP\Mail; interface IMessage { /** + * @param string $data + * @param string $filename + * @param string $contentType * @return IAttachment * @since 13.0.0 */ - public function createAttachment(); + public function createAttachment($data = null, $filename = null, $contentType = null); + + /** + * @param string $path + * @param string $contentType + * @return IAttachment + * @since 13.0.0 + */ + public function createAttachmentFromPath($path, $contentType = null); /** * @param IAttachment $attachment |