Post.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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\DriveActivity;
  18. class Post extends \Google\Model
  19. {
  20. /**
  21. * Subtype not available.
  22. */
  23. public const SUBTYPE_SUBTYPE_UNSPECIFIED = 'SUBTYPE_UNSPECIFIED';
  24. /**
  25. * A post was added.
  26. */
  27. public const SUBTYPE_ADDED = 'ADDED';
  28. /**
  29. * A post was deleted.
  30. */
  31. public const SUBTYPE_DELETED = 'DELETED';
  32. /**
  33. * A reply was added.
  34. */
  35. public const SUBTYPE_REPLY_ADDED = 'REPLY_ADDED';
  36. /**
  37. * A reply was deleted.
  38. */
  39. public const SUBTYPE_REPLY_DELETED = 'REPLY_DELETED';
  40. /**
  41. * A posted comment was resolved.
  42. */
  43. public const SUBTYPE_RESOLVED = 'RESOLVED';
  44. /**
  45. * A posted comment was reopened.
  46. */
  47. public const SUBTYPE_REOPENED = 'REOPENED';
  48. /**
  49. * The sub-type of this event.
  50. *
  51. * @var string
  52. */
  53. public $subtype;
  54. /**
  55. * The sub-type of this event.
  56. *
  57. * Accepted values: SUBTYPE_UNSPECIFIED, ADDED, DELETED, REPLY_ADDED,
  58. * REPLY_DELETED, RESOLVED, REOPENED
  59. *
  60. * @param self::SUBTYPE_* $subtype
  61. */
  62. public function setSubtype($subtype)
  63. {
  64. $this->subtype = $subtype;
  65. }
  66. /**
  67. * @return self::SUBTYPE_*
  68. */
  69. public function getSubtype()
  70. {
  71. return $this->subtype;
  72. }
  73. }
  74. // Adding a class alias for backwards compatibility with the previous class name.
  75. class_alias(Post::class, 'Google_Service_DriveActivity_Post');