Exemple #1
0
 public PluginMethodReturnValueType Shell(FileEnumArgs EnumArgs)
 {
     var result = FileUtil.DefFileEnum(EnumArgs.Path, EnumArgs.EnumSize, EnumArgs.EnumTime);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }
Exemple #2
0
 public static string MakeFileEnumCommand(string path, bool enumSize, bool enumTime)
 {
     var args = new FileEnumArgs()
     {
         Path            = path,
         EnumSize        = enumSize,
         EnumTime        = enumTime,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FileEnum", argsSerialize);
 }
Exemple #3
0
 public string Shell(FileEnumArgs EnumArgs)
 {
     var result = FileUtil.DefFileEnum(EnumArgs.Path, EnumArgs.EnumSize, EnumArgs.EnumTime);
     return JsonConvert.SerializeObject(result);
 }