MetaHubContextAttribute.cs 762 B

123456789101112131415161718192021222324252627
  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. namespace Meta.Voice.Hub.Attributes
  10. {
  11. [AttributeUsage(AttributeTargets.Class)]
  12. public class MetaHubContextAttribute : Attribute
  13. {
  14. public string Context { get; private set; }
  15. public int Priority { get; private set; }
  16. public string LogoPath { get; private set; }
  17. public MetaHubContextAttribute(string context, int priority = 1000, string pathToLogo = "")
  18. {
  19. Context = context;
  20. Priority = priority;
  21. LogoPath = pathToLogo;
  22. }
  23. }
  24. }