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())); }
private KeyboardsData GetBiding(Action action) { foreach (var keyboards in KeyBoardData) { if (keyboards.action.Equals(action.ToString())) { return(keyboards); } } return(new KeyboardsData()); }
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); }