Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,166 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class AndroidConfig extends \Google\Model
{
/**
* @var string
*/
public $collapseKey;
/**
* @var string[]
*/
public $data;
/**
* @var bool
*/
public $directBootOk;
protected $fcmOptionsType = AndroidFcmOptions::class;
protected $fcmOptionsDataType = '';
protected $notificationType = AndroidNotification::class;
protected $notificationDataType = '';
/**
* @var string
*/
public $priority;
/**
* @var string
*/
public $restrictedPackageName;
/**
* @var string
*/
public $ttl;
/**
* @param string
*/
public function setCollapseKey($collapseKey)
{
$this->collapseKey = $collapseKey;
}
/**
* @return string
*/
public function getCollapseKey()
{
return $this->collapseKey;
}
/**
* @param string[]
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string[]
*/
public function getData()
{
return $this->data;
}
/**
* @param bool
*/
public function setDirectBootOk($directBootOk)
{
$this->directBootOk = $directBootOk;
}
/**
* @return bool
*/
public function getDirectBootOk()
{
return $this->directBootOk;
}
/**
* @param AndroidFcmOptions
*/
public function setFcmOptions(AndroidFcmOptions $fcmOptions)
{
$this->fcmOptions = $fcmOptions;
}
/**
* @return AndroidFcmOptions
*/
public function getFcmOptions()
{
return $this->fcmOptions;
}
/**
* @param AndroidNotification
*/
public function setNotification(AndroidNotification $notification)
{
$this->notification = $notification;
}
/**
* @return AndroidNotification
*/
public function getNotification()
{
return $this->notification;
}
/**
* @param string
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return string
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param string
*/
public function setRestrictedPackageName($restrictedPackageName)
{
$this->restrictedPackageName = $restrictedPackageName;
}
/**
* @return string
*/
public function getRestrictedPackageName()
{
return $this->restrictedPackageName;
}
/**
* @param string
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidConfig::class, 'Google_Service_FirebaseCloudMessaging_AndroidConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class AndroidFcmOptions extends \Google\Model
{
/**
* @var string
*/
public $analyticsLabel;
/**
* @param string
*/
public function setAnalyticsLabel($analyticsLabel)
{
$this->analyticsLabel = $analyticsLabel;
}
/**
* @return string
*/
public function getAnalyticsLabel()
{
return $this->analyticsLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidFcmOptions::class, 'Google_Service_FirebaseCloudMessaging_AndroidFcmOptions');

View File

@@ -0,0 +1,511 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class AndroidNotification extends \Google\Collection
{
protected $collection_key = 'vibrateTimings';
/**
* @var string
*/
public $body;
/**
* @var string[]
*/
public $bodyLocArgs;
/**
* @var string
*/
public $bodyLocKey;
/**
* @var bool
*/
public $bypassProxyNotification;
/**
* @var string
*/
public $channelId;
/**
* @var string
*/
public $clickAction;
/**
* @var string
*/
public $color;
/**
* @var bool
*/
public $defaultLightSettings;
/**
* @var bool
*/
public $defaultSound;
/**
* @var bool
*/
public $defaultVibrateTimings;
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $icon;
/**
* @var string
*/
public $image;
protected $lightSettingsType = LightSettings::class;
protected $lightSettingsDataType = '';
/**
* @var bool
*/
public $localOnly;
/**
* @var int
*/
public $notificationCount;
/**
* @var string
*/
public $notificationPriority;
/**
* @var string
*/
public $proxy;
/**
* @var string
*/
public $sound;
/**
* @var bool
*/
public $sticky;
/**
* @var string
*/
public $tag;
/**
* @var string
*/
public $ticker;
/**
* @var string
*/
public $title;
/**
* @var string[]
*/
public $titleLocArgs;
/**
* @var string
*/
public $titleLocKey;
/**
* @var string[]
*/
public $vibrateTimings;
/**
* @var string
*/
public $visibility;
/**
* @param string
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* @param string[]
*/
public function setBodyLocArgs($bodyLocArgs)
{
$this->bodyLocArgs = $bodyLocArgs;
}
/**
* @return string[]
*/
public function getBodyLocArgs()
{
return $this->bodyLocArgs;
}
/**
* @param string
*/
public function setBodyLocKey($bodyLocKey)
{
$this->bodyLocKey = $bodyLocKey;
}
/**
* @return string
*/
public function getBodyLocKey()
{
return $this->bodyLocKey;
}
/**
* @param bool
*/
public function setBypassProxyNotification($bypassProxyNotification)
{
$this->bypassProxyNotification = $bypassProxyNotification;
}
/**
* @return bool
*/
public function getBypassProxyNotification()
{
return $this->bypassProxyNotification;
}
/**
* @param string
*/
public function setChannelId($channelId)
{
$this->channelId = $channelId;
}
/**
* @return string
*/
public function getChannelId()
{
return $this->channelId;
}
/**
* @param string
*/
public function setClickAction($clickAction)
{
$this->clickAction = $clickAction;
}
/**
* @return string
*/
public function getClickAction()
{
return $this->clickAction;
}
/**
* @param string
*/
public function setColor($color)
{
$this->color = $color;
}
/**
* @return string
*/
public function getColor()
{
return $this->color;
}
/**
* @param bool
*/
public function setDefaultLightSettings($defaultLightSettings)
{
$this->defaultLightSettings = $defaultLightSettings;
}
/**
* @return bool
*/
public function getDefaultLightSettings()
{
return $this->defaultLightSettings;
}
/**
* @param bool
*/
public function setDefaultSound($defaultSound)
{
$this->defaultSound = $defaultSound;
}
/**
* @return bool
*/
public function getDefaultSound()
{
return $this->defaultSound;
}
/**
* @param bool
*/
public function setDefaultVibrateTimings($defaultVibrateTimings)
{
$this->defaultVibrateTimings = $defaultVibrateTimings;
}
/**
* @return bool
*/
public function getDefaultVibrateTimings()
{
return $this->defaultVibrateTimings;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setIcon($icon)
{
$this->icon = $icon;
}
/**
* @return string
*/
public function getIcon()
{
return $this->icon;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param LightSettings
*/
public function setLightSettings(LightSettings $lightSettings)
{
$this->lightSettings = $lightSettings;
}
/**
* @return LightSettings
*/
public function getLightSettings()
{
return $this->lightSettings;
}
/**
* @param bool
*/
public function setLocalOnly($localOnly)
{
$this->localOnly = $localOnly;
}
/**
* @return bool
*/
public function getLocalOnly()
{
return $this->localOnly;
}
/**
* @param int
*/
public function setNotificationCount($notificationCount)
{
$this->notificationCount = $notificationCount;
}
/**
* @return int
*/
public function getNotificationCount()
{
return $this->notificationCount;
}
/**
* @param string
*/
public function setNotificationPriority($notificationPriority)
{
$this->notificationPriority = $notificationPriority;
}
/**
* @return string
*/
public function getNotificationPriority()
{
return $this->notificationPriority;
}
/**
* @param string
*/
public function setProxy($proxy)
{
$this->proxy = $proxy;
}
/**
* @return string
*/
public function getProxy()
{
return $this->proxy;
}
/**
* @param string
*/
public function setSound($sound)
{
$this->sound = $sound;
}
/**
* @return string
*/
public function getSound()
{
return $this->sound;
}
/**
* @param bool
*/
public function setSticky($sticky)
{
$this->sticky = $sticky;
}
/**
* @return bool
*/
public function getSticky()
{
return $this->sticky;
}
/**
* @param string
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
/**
* @param string
*/
public function setTicker($ticker)
{
$this->ticker = $ticker;
}
/**
* @return string
*/
public function getTicker()
{
return $this->ticker;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string[]
*/
public function setTitleLocArgs($titleLocArgs)
{
$this->titleLocArgs = $titleLocArgs;
}
/**
* @return string[]
*/
public function getTitleLocArgs()
{
return $this->titleLocArgs;
}
/**
* @param string
*/
public function setTitleLocKey($titleLocKey)
{
$this->titleLocKey = $titleLocKey;
}
/**
* @return string
*/
public function getTitleLocKey()
{
return $this->titleLocKey;
}
/**
* @param string[]
*/
public function setVibrateTimings($vibrateTimings)
{
$this->vibrateTimings = $vibrateTimings;
}
/**
* @return string[]
*/
public function getVibrateTimings()
{
return $this->vibrateTimings;
}
/**
* @param string
*/
public function setVisibility($visibility)
{
$this->visibility = $visibility;
}
/**
* @return string
*/
public function getVisibility()
{
return $this->visibility;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidNotification::class, 'Google_Service_FirebaseCloudMessaging_AndroidNotification');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class ApnsConfig extends \Google\Model
{
protected $fcmOptionsType = ApnsFcmOptions::class;
protected $fcmOptionsDataType = '';
/**
* @var string[]
*/
public $headers;
/**
* @var string
*/
public $liveActivityToken;
/**
* @var array[]
*/
public $payload;
/**
* @param ApnsFcmOptions
*/
public function setFcmOptions(ApnsFcmOptions $fcmOptions)
{
$this->fcmOptions = $fcmOptions;
}
/**
* @return ApnsFcmOptions
*/
public function getFcmOptions()
{
return $this->fcmOptions;
}
/**
* @param string[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return string[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param string
*/
public function setLiveActivityToken($liveActivityToken)
{
$this->liveActivityToken = $liveActivityToken;
}
/**
* @return string
*/
public function getLiveActivityToken()
{
return $this->liveActivityToken;
}
/**
* @param array[]
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return array[]
*/
public function getPayload()
{
return $this->payload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApnsConfig::class, 'Google_Service_FirebaseCloudMessaging_ApnsConfig');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class ApnsFcmOptions extends \Google\Model
{
/**
* @var string
*/
public $analyticsLabel;
/**
* @var string
*/
public $image;
/**
* @param string
*/
public function setAnalyticsLabel($analyticsLabel)
{
$this->analyticsLabel = $analyticsLabel;
}
/**
* @return string
*/
public function getAnalyticsLabel()
{
return $this->analyticsLabel;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApnsFcmOptions::class, 'Google_Service_FirebaseCloudMessaging_ApnsFcmOptions');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class Color extends \Google\Model
{
/**
* @var float
*/
public $alpha;
/**
* @var float
*/
public $blue;
/**
* @var float
*/
public $green;
/**
* @var float
*/
public $red;
/**
* @param float
*/
public function setAlpha($alpha)
{
$this->alpha = $alpha;
}
/**
* @return float
*/
public function getAlpha()
{
return $this->alpha;
}
/**
* @param float
*/
public function setBlue($blue)
{
$this->blue = $blue;
}
/**
* @return float
*/
public function getBlue()
{
return $this->blue;
}
/**
* @param float
*/
public function setGreen($green)
{
$this->green = $green;
}
/**
* @return float
*/
public function getGreen()
{
return $this->green;
}
/**
* @param float
*/
public function setRed($red)
{
$this->red = $red;
}
/**
* @return float
*/
public function getRed()
{
return $this->red;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Color::class, 'Google_Service_FirebaseCloudMessaging_Color');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class FcmOptions extends \Google\Model
{
/**
* @var string
*/
public $analyticsLabel;
/**
* @param string
*/
public function setAnalyticsLabel($analyticsLabel)
{
$this->analyticsLabel = $analyticsLabel;
}
/**
* @return string
*/
public function getAnalyticsLabel()
{
return $this->analyticsLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FcmOptions::class, 'Google_Service_FirebaseCloudMessaging_FcmOptions');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class LightSettings extends \Google\Model
{
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* @var string
*/
public $lightOffDuration;
/**
* @var string
*/
public $lightOnDuration;
/**
* @param Color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* @param string
*/
public function setLightOffDuration($lightOffDuration)
{
$this->lightOffDuration = $lightOffDuration;
}
/**
* @return string
*/
public function getLightOffDuration()
{
return $this->lightOffDuration;
}
/**
* @param string
*/
public function setLightOnDuration($lightOnDuration)
{
$this->lightOnDuration = $lightOnDuration;
}
/**
* @return string
*/
public function getLightOnDuration()
{
return $this->lightOnDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LightSettings::class, 'Google_Service_FirebaseCloudMessaging_LightSettings');

View File

@@ -0,0 +1,196 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class Message extends \Google\Model
{
protected $androidType = AndroidConfig::class;
protected $androidDataType = '';
protected $apnsType = ApnsConfig::class;
protected $apnsDataType = '';
/**
* @var string
*/
public $condition;
/**
* @var string[]
*/
public $data;
protected $fcmOptionsType = FcmOptions::class;
protected $fcmOptionsDataType = '';
/**
* @var string
*/
public $name;
protected $notificationType = Notification::class;
protected $notificationDataType = '';
/**
* @var string
*/
public $token;
/**
* @var string
*/
public $topic;
protected $webpushType = WebpushConfig::class;
protected $webpushDataType = '';
/**
* @param AndroidConfig
*/
public function setAndroid(AndroidConfig $android)
{
$this->android = $android;
}
/**
* @return AndroidConfig
*/
public function getAndroid()
{
return $this->android;
}
/**
* @param ApnsConfig
*/
public function setApns(ApnsConfig $apns)
{
$this->apns = $apns;
}
/**
* @return ApnsConfig
*/
public function getApns()
{
return $this->apns;
}
/**
* @param string
*/
public function setCondition($condition)
{
$this->condition = $condition;
}
/**
* @return string
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string[]
*/
public function getData()
{
return $this->data;
}
/**
* @param FcmOptions
*/
public function setFcmOptions(FcmOptions $fcmOptions)
{
$this->fcmOptions = $fcmOptions;
}
/**
* @return FcmOptions
*/
public function getFcmOptions()
{
return $this->fcmOptions;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Notification
*/
public function setNotification(Notification $notification)
{
$this->notification = $notification;
}
/**
* @return Notification
*/
public function getNotification()
{
return $this->notification;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* @param string
*/
public function setTopic($topic)
{
$this->topic = $topic;
}
/**
* @return string
*/
public function getTopic()
{
return $this->topic;
}
/**
* @param WebpushConfig
*/
public function setWebpush(WebpushConfig $webpush)
{
$this->webpush = $webpush;
}
/**
* @return WebpushConfig
*/
public function getWebpush()
{
return $this->webpush;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Message::class, 'Google_Service_FirebaseCloudMessaging_Message');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class Notification extends \Google\Model
{
/**
* @var string
*/
public $body;
/**
* @var string
*/
public $image;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notification::class, 'Google_Service_FirebaseCloudMessaging_Notification');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $fcmService = new Google\Service\FirebaseCloudMessaging(...);
* $projects = $fcmService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_FirebaseCloudMessaging_Resource_Projects');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging\Resource;
use Google\Service\FirebaseCloudMessaging\Message;
use Google\Service\FirebaseCloudMessaging\SendMessageRequest;
/**
* The "messages" collection of methods.
* Typical usage is:
* <code>
* $fcmService = new Google\Service\FirebaseCloudMessaging(...);
* $messages = $fcmService->projects_messages;
* </code>
*/
class ProjectsMessages extends \Google\Service\Resource
{
/**
* Send a message to specified target (a registration token, topic or
* condition). (messages.send)
*
* @param string $parent Required. It contains the Firebase project id (i.e. the
* unique identifier for your Firebase project), in the format of
* `projects/{project_id}`. For legacy support, the numeric project number with
* no padding is also supported in the format of `projects/{project_number}`.
* @param SendMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return Message
* @throws \Google\Service\Exception
*/
public function send($parent, SendMessageRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('send', [$params], Message::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsMessages::class, 'Google_Service_FirebaseCloudMessaging_Resource_ProjectsMessages');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class SendMessageRequest extends \Google\Model
{
protected $messageType = Message::class;
protected $messageDataType = '';
/**
* @var bool
*/
public $validateOnly;
/**
* @param Message
*/
public function setMessage(Message $message)
{
$this->message = $message;
}
/**
* @return Message
*/
public function getMessage()
{
return $this->message;
}
/**
* @param bool
*/
public function setValidateOnly($validateOnly)
{
$this->validateOnly = $validateOnly;
}
/**
* @return bool
*/
public function getValidateOnly()
{
return $this->validateOnly;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SendMessageRequest::class, 'Google_Service_FirebaseCloudMessaging_SendMessageRequest');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class WebpushConfig extends \Google\Model
{
/**
* @var string[]
*/
public $data;
protected $fcmOptionsType = WebpushFcmOptions::class;
protected $fcmOptionsDataType = '';
/**
* @var string[]
*/
public $headers;
/**
* @var array[]
*/
public $notification;
/**
* @param string[]
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string[]
*/
public function getData()
{
return $this->data;
}
/**
* @param WebpushFcmOptions
*/
public function setFcmOptions(WebpushFcmOptions $fcmOptions)
{
$this->fcmOptions = $fcmOptions;
}
/**
* @return WebpushFcmOptions
*/
public function getFcmOptions()
{
return $this->fcmOptions;
}
/**
* @param string[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return string[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* @param array[]
*/
public function setNotification($notification)
{
$this->notification = $notification;
}
/**
* @return array[]
*/
public function getNotification()
{
return $this->notification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WebpushConfig::class, 'Google_Service_FirebaseCloudMessaging_WebpushConfig');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseCloudMessaging;
class WebpushFcmOptions extends \Google\Model
{
/**
* @var string
*/
public $analyticsLabel;
/**
* @var string
*/
public $link;
/**
* @param string
*/
public function setAnalyticsLabel($analyticsLabel)
{
$this->analyticsLabel = $analyticsLabel;
}
/**
* @return string
*/
public function getAnalyticsLabel()
{
return $this->analyticsLabel;
}
/**
* @param string
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WebpushFcmOptions::class, 'Google_Service_FirebaseCloudMessaging_WebpushFcmOptions');