csharp-sdk-upm/Engine/Attributes/LCEngineClassHookAttribute.cs

28 lines
597 B
C#
Raw Normal View History

2021-03-18 13:52:23 +08:00
using System;
namespace LeanCloud.Engine {
public enum LCEngineObjectHookType {
BeforeSave,
AfterSave,
BeforeUpdate,
AfterUpdate,
BeforeDelete,
AfterDelete
}
2021-03-19 11:18:46 +08:00
public class LCEngineClassHookAttribute : Attribute {
2021-03-18 13:52:23 +08:00
public string ClassName {
get;
}
public LCEngineObjectHookType HookType {
get;
}
2021-03-19 11:18:46 +08:00
public LCEngineClassHookAttribute(string className, LCEngineObjectHookType hookType) {
2021-03-18 13:52:23 +08:00
ClassName = className;
HookType = hookType;
}
}
}