Exemple #1
0
        public static ServerResponse deleteUserWidget(long widgetID)
        {
            WidgetModel widget = SqliteHandler.getWidget(widgetID);

            //find user, set = to existing

            if (widget == null)
            {
                return(new ServerResponse(false, "widget not found", null));
            }

            SqliteHandler.deleteWidget(widgetID);

            return(new ServerResponse(true, "widget deleted succesfully", null));
        }