28 lines
597 B
C#
28 lines
597 B
C#
|
using System;
|
|||
|
|
|||
|
namespace LeanCloud.Engine {
|
|||
|
public enum LCEngineObjectHookType {
|
|||
|
BeforeSave,
|
|||
|
AfterSave,
|
|||
|
BeforeUpdate,
|
|||
|
AfterUpdate,
|
|||
|
BeforeDelete,
|
|||
|
AfterDelete
|
|||
|
}
|
|||
|
|
|||
|
public class LCEngineClassHookAttribute : Attribute {
|
|||
|
public string ClassName {
|
|||
|
get;
|
|||
|
}
|
|||
|
|
|||
|
public LCEngineObjectHookType HookType {
|
|||
|
get;
|
|||
|
}
|
|||
|
|
|||
|
public LCEngineClassHookAttribute(string className, LCEngineObjectHookType hookType) {
|
|||
|
ClassName = className;
|
|||
|
HookType = hookType;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|