DeviceState.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\AndroidEnterprise;
  18. class DeviceState extends \Google\Model
  19. {
  20. public const ACCOUNT_STATE_enabled = 'enabled';
  21. public const ACCOUNT_STATE_disabled = 'disabled';
  22. /**
  23. * The state of the Google account on the device. "enabled" indicates that the
  24. * Google account on the device can be used to access Google services
  25. * (including Google Play), while "disabled" means that it cannot. A new
  26. * device is initially in the "disabled" state.
  27. *
  28. * @var string
  29. */
  30. public $accountState;
  31. /**
  32. * The state of the Google account on the device. "enabled" indicates that the
  33. * Google account on the device can be used to access Google services
  34. * (including Google Play), while "disabled" means that it cannot. A new
  35. * device is initially in the "disabled" state.
  36. *
  37. * Accepted values: enabled, disabled
  38. *
  39. * @param self::ACCOUNT_STATE_* $accountState
  40. */
  41. public function setAccountState($accountState)
  42. {
  43. $this->accountState = $accountState;
  44. }
  45. /**
  46. * @return self::ACCOUNT_STATE_*
  47. */
  48. public function getAccountState()
  49. {
  50. return $this->accountState;
  51. }
  52. }
  53. // Adding a class alias for backwards compatibility with the previous class name.
  54. class_alias(DeviceState::class, 'Google_Service_AndroidEnterprise_DeviceState');