Added mising field to serializer

Added missing platform field to
push notification base serializer.

Change-Id: Id51e67a69f468e2da19d92f24d88dacd7f9c0c2d
This commit is contained in:
Sebastian Marcet 2018-04-21 10:19:13 -03:00
parent 2f78e6d460
commit feb0d479f1
2 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,7 @@ class PushNotificationMessageSerializer extends SilverStripeSerializer
protected static $array_mappings = [
'Message' => 'message:json_string',
'Priority' => 'priority:json_string',
'Platform' => 'platform:json_string',
'Created' => 'created:datetime_epoch',
'SentDate' => 'sent_date:datetime_epoch',
'IsSent' => 'is_sent:json_boolean',

View File

@ -264,15 +264,15 @@ class PushNotificationMessage extends SilverstripeBaseModel
}
/**
* @return bool
* @return string
*/
public function isPlatform()
public function getPlatform()
{
return $this->platform;
}
/**
* @param bool $platform
* @param string $platform
*/
public function setPlatform($platform)
{