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

28 lines
599 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
}
public class LCEngineObjectHookAttribute : Attribute {
public string ClassName {
get;
}
public LCEngineObjectHookType HookType {
get;
}
public LCEngineObjectHookAttribute(string className, LCEngineObjectHookType hookType) {
ClassName = className;
HookType = hookType;
}
}
}