MetaHubPageAttribute.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. using System;
  9. using Meta.Voice.Hub.Interfaces;
  10. namespace Meta.Voice.Hub.Attributes
  11. {
  12. public class MetaHubPageAttribute : Attribute, IPageInfo
  13. {
  14. public string Name { get; private set; }
  15. public string Context { get; private set; }
  16. public int Priority { get; private set; }
  17. public string Prefix { get; private set; }
  18. public MetaHubPageAttribute(string name = null, string context = "", string prefix = "", int priority = 0)
  19. {
  20. Name = name;
  21. Context = context;
  22. Priority = priority;
  23. Prefix = prefix;
  24. }
  25. }
  26. public class MetaHubPageScriptableObjectAttribute : MetaHubPageAttribute
  27. {
  28. public MetaHubPageScriptableObjectAttribute(string context = "") : base(context: context)
  29. {
  30. }
  31. }
  32. }