示例#1
0
 public PayloadBuilder(string command = null, List <string> arguments = null)
 {
     if (command != null)
     {
         _payload = new PayloadNucleusBot()
         {
             Command = command, Arguments = arguments
         }
     }
     ;
     else
     {
         _payload = new PayloadNucleusBot();
     }
 }
示例#2
0
 public string BuildToStringFromModel(PayloadNucleusBot payload) => JsonConvert.SerializeObject(payload);