Exemple #1
0
        private static String[] moveContactToGroup(String[] tk)
        {
            if (tk.Length < 4)
            {
                return(str2arr("Missing arguments. Usage: moveContactToGroup <contactID> <sGroupID> <dGroupID>"));
            }
            var x = sm.moveContactsToGroup(new List <Contact>()
            {
                sm.getEntityByID <Contact>(int.Parse(tk[1]))
            }, int.Parse(tk[2]), int.Parse(tk[3]));

            return(str2arr(x != null ? "Done." : "Error!"));
        }