Exemplo n.º 1
0
        public bool DialogEditSpecific(Category c, string propertyName, string valueToAdd)
        {
            Console.WriteLine("Adding {0} to {1} {2}s...", valueToAdd, c.DisplayName, propertyName);

            DialogEditResponse response = JsonRpcCaller.Call <DialogEditResponse>("cmdb.dialog.create", new
            {
                apikey   = Config.GetInstance().ApiKey,
                catsID   = c.Constant,
                property = propertyName,
                value    = valueToAdd
            });

            return(response.success);
        }
Exemplo n.º 2
0
        public bool DialogEdit(Category c, string propertyName, string valueToAdd)
        {
            Console.WriteLine("Adding {0} to {1} {2}s...", valueToAdd, c.DisplayName, propertyName);

            DialogEditResponse response = JsonRpcCaller.Call <DialogEditResponse>("cmdb.dialog.create", new
            {
                apikey   = Config.GetInstance().ApiKey,
                catgID   = c.Constant,      //nicht dokumentierter Aufruf... Quelle: http://forum.i-doit.org/index.php/topic,4570.msg13880.html#msg13880
                property = propertyName,
                value    = valueToAdd
            });

            return(response.success);
        }