csharp-sdk-upm/Engine/Public/Attributes/LCEngineUserHookAttribute.cs

24 lines
598 B
C#
Raw Normal View History

2021-03-18 13:52:23 +08:00
using System;
namespace LeanCloud.Engine {
public enum LCEngineUserHookType {
2021-03-18 14:58:22 +08:00
OnSMSVerified,
OnEmailVerified,
2021-03-18 13:52:23 +08:00
OnLogin
}
2021-04-20 11:58:41 +08:00
/// <summary>
/// LCEngineUserHookAttribute is an attribute that hooks user in engine.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
2021-03-18 13:52:23 +08:00
public class LCEngineUserHookAttribute : Attribute {
public LCEngineUserHookType HookType {
get;
}
public LCEngineUserHookAttribute(LCEngineUserHookType hookType) {
HookType = hookType;
}
}
}