public string DoAction(ServerActionType ServerAction) { string responseMessage = ""; switch (ServerAction) { case ServerActionType.CLEAR_ALL_TASKS: lock (taskListLock) { taskList.Clear(); } responseMessage += "All Tasks removed from Server!"; break; case ServerActionType.CLEAR_ALL_NOTIFICATIONS: lock (notificationListLock) { serverNotificationList.Clear(); } responseMessage += "All Notifications removed from Server!"; break; } return(responseMessage); }
public void Decode(Hashtable data) { ActionType = (ServerActionType)data[(int)eServerActionKey.ActionType]; ActionsParams = (Hashtable)data[(int)eServerActionKey.ActionParams]; }
public NWServerAction(ServerActionType actionType, Hashtable actionParams) { ActionType = actionType; ActionsParams = actionParams; }