Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions src/FirebaseCloudMessaging/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ class Message extends \Google\Model
public $data;
protected $fcmOptionsType = FcmOptions::class;
protected $fcmOptionsDataType = '';
/**
* Optional. Firebase Installation ID to send a message to.
*
* @var string
*/
public $fid;
/**
* Output Only. The identifier of the message sent, in the format of
* `projects/messages/{message_id}`.
Expand All @@ -52,8 +58,11 @@ class Message extends \Google\Model
protected $notificationType = Notification::class;
protected $notificationDataType = '';
/**
* Registration token to send a message to.
* Deprecated: Use `fid` instead. Registration token to send a message to.
* During the transition period, this field also accepts a Firebase
* Installation ID (FID).
*
* @deprecated
* @var string
*/
public $token;
Expand Down Expand Up @@ -155,6 +164,22 @@ public function getFcmOptions()
{
return $this->fcmOptions;
}
/**
* Optional. Firebase Installation ID to send a message to.
*
* @param string $fid
*/
public function setFid($fid)
{
$this->fid = $fid;
}
/**
* @return string
*/
public function getFid()
{
return $this->fid;
}
/**
* Output Only. The identifier of the message sent, in the format of
* `projects/messages/{message_id}`.
Expand Down Expand Up @@ -189,15 +214,19 @@ public function getNotification()
return $this->notification;
}
/**
* Registration token to send a message to.
* Deprecated: Use `fid` instead. Registration token to send a message to.
* During the transition period, this field also accepts a Firebase
* Installation ID (FID).
*
* @deprecated
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @deprecated
* @return string
*/
public function getToken()
Expand Down
Loading