Initial Commit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
using System;
|
||||
|
||||
namespace Meta.Voice.Hub.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class MetaHubContextAttribute : Attribute
|
||||
{
|
||||
public string Context { get; private set; }
|
||||
public int Priority { get; private set; }
|
||||
public string LogoPath { get; private set; }
|
||||
|
||||
public MetaHubContextAttribute(string context, int priority = 1000, string pathToLogo = "")
|
||||
{
|
||||
Context = context;
|
||||
Priority = priority;
|
||||
LogoPath = pathToLogo;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: adaa391766724cfba11a9c2223e738b0
|
||||
timeCreated: 1680653506
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using Meta.Voice.Hub.Interfaces;
|
||||
|
||||
namespace Meta.Voice.Hub.Attributes
|
||||
{
|
||||
public class MetaHubPageAttribute : Attribute, IPageInfo
|
||||
{
|
||||
public string Name { get; private set; }
|
||||
public string Context { get; private set; }
|
||||
public int Priority { get; private set; }
|
||||
public string Prefix { get; private set; }
|
||||
|
||||
|
||||
public MetaHubPageAttribute(string name = null, string context = "", string prefix = "", int priority = 0)
|
||||
{
|
||||
Name = name;
|
||||
Context = context;
|
||||
Priority = priority;
|
||||
Prefix = prefix;
|
||||
}
|
||||
}
|
||||
|
||||
public class MetaHubPageScriptableObjectAttribute : MetaHubPageAttribute
|
||||
{
|
||||
public MetaHubPageScriptableObjectAttribute(string context = "") : base(context: context)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7abd7a0ff8e45bc9cad665bffea5fae
|
||||
timeCreated: 1680653617
|
||||
Reference in New Issue
Block a user