Add more methods

This commit is contained in:
Oliver Davies 2017-11-03 23:45:54 +00:00
parent 0594f9f0de
commit d5d9f72375
2 changed files with 94 additions and 0 deletions

View file

@ -67,6 +67,48 @@ class Filter
return $this;
}
public function read()
{
$this->properties['markAsRead'] = 'true';
return $this;
}
public function star()
{
$this->properties['shouldStar'] = 'true';
return $this;
}
public function forward($to)
{
$this->properties['forwardTo'] = $to;
return $this;
}
public function important()
{
$this->properties['shouldAlwaysMarkAsImportant'] = 'true';
return $this;
}
public function notImportant()
{
$this->properties['shouldNeverMarkAsImportant'] = 'true';
return $this;
}
public function categorise($category)
{
$this->properties['smartLabelToApply'] = $category;
return $this;
}
public function getProperties()
{
return $this->properties;