Package eu.hobbydev.bracheus.actions
Klasse UpdateUserAction
java.lang.Object
eu.hobbydev.bracheus.actions.SearchAction
eu.hobbydev.bracheus.actions.UpdateUserAction
- Alle implementierten Schnittstellen:
Actions,HumanizerTools
The
UpdateUserAction class is responsible for updating user data for both regular Instagram users
and the Seleniagram user. It handles the process of searching for the user, retrieving their data,
and updating the relevant user information in the system.
This class extends the SearchAction class and implements the Actions interface. It provides
functionality to update either a regular Instagram user or the Seleniagram user based on the input parameters.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungUpdateUserAction(String user) Constructs anUpdateUserActionfor the specified user with the default flag for Seleniagram user as false.UpdateUserAction(String user, boolean seleniagramUser) Constructs anUpdateUserActionfor the specified user, with an option to specify whether the user is a Seleniagram user. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetName()Returns the name of the action.voidHandles the action of updating the user's data.Von Klasse geerbte Methoden eu.hobbydev.bracheus.actions.SearchAction
directSearchVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden eu.hobbydev.bracheus.utils.HumanizerTools
checkingActionQueue, inputDelay, siteDelay
-
Konstruktordetails
-
UpdateUserAction
Constructs anUpdateUserActionfor the specified user with the default flag for Seleniagram user as false.- Parameter:
user- The username of the user whose data needs to be updated.
-
UpdateUserAction
Constructs anUpdateUserActionfor the specified user, with an option to specify whether the user is a Seleniagram user.- Parameter:
user- The username of the user whose data needs to be updated.seleniagramUser- A flag indicating whether the user is a Seleniagram user (true) or not (false).
-
-
Methodendetails
-
handleAction
public void handleAction()Handles the action of updating the user's data. It performs the following steps:- Performs a direct search for the user.
- Retrieves the user's data.
- If the user is a regular Instagram user, updates the user information in the system.
- If the user is a Seleniagram user, updates the Seleniagram user information in the system.
- Angegeben von:
handleActionin SchnittstelleActions- Setzt außer Kraft:
handleActionin KlasseSearchAction
-
getName
Returns the name of the action. This name is used for logging and tracking purposes.- Angegeben von:
getNamein SchnittstelleActions- Setzt außer Kraft:
getNamein KlasseSearchAction- Gibt zurück:
- The name of the action as a string ("UpdateUserAction").
-