Added mising field to serializer
Added missing platform field to push notification base serializer. Change-Id: Id51e67a69f468e2da19d92f24d88dacd7f9c0c2d
This commit is contained in:
parent
2f78e6d460
commit
feb0d479f1
|
@ -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',
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue