示例#1
0
        private static String[] addContactToGroup(String[] tk)
        {
            if (tk.Length < 4)
            {
                return(str2arr("Missing arguments. Usage: addContactToGroup <contactID> <userID> <groupName>"));
            }
            var x = sm.addContactsToGroup(new List <Contact>()
            {
                sm.getEntityByID <Contact>(int.Parse(tk[1]))
            }, sm.getGroupByUser(int.Parse(tk[2]), tk[3]));

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