/// <summary> /// 插件启用,运行一次这里. /// 登录成功,会启用一次这里. /// 之后每次插件被手动启用,都会运行一次 /// </summary> /// <param name="json"></param> /// <returns></returns> private Boolean Do_EventStart(string json) { try { EventStartArgs eventStartArgs = JsonConvert.DeserializeObject <EventStartArgs>(json); EventStart?.Invoke(this, eventStartArgs); return(true); } catch (Exception ex) { DebugMessage(ex.Message); DebugMessage(ex.StackTrace); return(false); } }
public string ToString(Newtonsoft.Json.Formatting formatting) { EventStartArgs classData = this; return(JsonConvert.SerializeObject(classData, formatting)); }