IEvent.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // <copyright file="IEvent.cs" company="Google Inc.">
  2. // Copyright (C) 2014 Google Inc.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. // </copyright>
  16. namespace GooglePlayGames.BasicApi.Events
  17. {
  18. public enum EventVisibility
  19. {
  20. Hidden = 1,
  21. Revealed = 2,
  22. }
  23. /// <summary>
  24. /// Data object representing an Event. <see cref="Native.PInvoke.EventManager"/> for more.
  25. /// </summary>
  26. public interface IEvent
  27. {
  28. /// <summary>
  29. /// The ID of the event.
  30. /// </summary>
  31. string Id { get; }
  32. /// <summary>
  33. /// The name of the event.
  34. /// </summary>
  35. string Name { get; }
  36. /// <summary>
  37. /// The description of the event.
  38. /// </summary>
  39. string Description { get; }
  40. /// <summary>
  41. /// The URL of the image for the event. Empty if there is no image for this event.
  42. /// </summary>
  43. /// <value>The image URL.</value>
  44. string ImageUrl { get; }
  45. /// <summary>
  46. /// The current count for this event.
  47. /// </summary>
  48. ulong CurrentCount { get; }
  49. /// <summary>
  50. /// The visibility of the event.
  51. /// </summary>
  52. EventVisibility Visibility { get; }
  53. }
  54. }