コード例 #1
0
        public async Task <bool> Cleanup(long[] linkIds, long[] packageIds, Enums.Action action, Enums.Mode mode,
                                         Enums.SelectionType selectionType)
        {
            var param = new object[]
            { linkIds, packageIds, action.ToString(), mode.ToString(), selectionType.ToString() };
            var response = await CallAction <object>("cleanup", param);

            return(!string.IsNullOrEmpty(response?.ToString()));
        }
コード例 #2
0
        private KeyboardsData GetBiding(Action action)
        {
            foreach (var keyboards in KeyBoardData)
            {
                if (keyboards.action.Equals(action.ToString()))
                {
                    return(keyboards);
                }
            }

            return(new KeyboardsData());
        }
コード例 #3
0
        private KeyCode GetKeyCode(Action action)
        {
            KeyCode keyCode = KeyCode.None;

            foreach (var keyboards in KeyBoardData)
            {
                if (keyboards.action.Equals(action.ToString()))
                {
                    Enum.TryParse(keyboards.keyCode, out keyCode);
                    return(keyCode);
                }
            }

            return(keyCode);
        }