예제 #1
0
 /// <summary>
 /// Deletes the specified python variable
 /// </summary>
 /// <param name="variableName">Name of the variable to delete</param>
 public static void DestroyVariable(string variableName)
 {
     if (_variables.ContainsKey(variableName))
     {
         Messages.PythonDeleteVariableMessage msg = new Messages.PythonDeleteVariableMessage {
             VariableName = variableName
         };
         KodiBridge.SendMessage(msg);
         _variables.Remove(variableName);
     }
 }
예제 #2
0
 public string Send()
 {
     Reply = KodiBridge.SendMessage(this.Request);
     OnReply?.Invoke(this, new MessageReplyEventArgs(Reply));
     return(Reply);
 }