Package eu.hobbydev.bracheus.manager
Klasse UserManager
java.lang.Object
eu.hobbydev.bracheus.manager.UserManager
The
UserManager class is responsible for managing both regular Instagram users and the Seleniagram user.
It provides methods to register, unregister, and query information about known and followed Instagram users.
The class also allows access to the Seleniagram user.
This class manages two distinct lists of Instagram users: one for known users and one for followed users. It also provides functionality to register and unregister users in these lists, as well as check if a user is known or followed.
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetFollowedInstaUser(String user) Retrieves a followed Instagram user by their username.getKnownInstaUser(String user) Retrieves a known Instagram user by their username.Gets the Seleniagram user managed by thisUserManager.booleanisFollowedInstaUser(InstaUser user) Checks if a given Instagram user is followed by thisUserManager.booleanisFollowedInstaUser(String user) Checks if a given Instagram user, identified by their username, is followed by thisUserManager.booleanisKnownInstaUser(InstaUser user) Checks if a given Instagram user is known by thisUserManager.booleanisKnownInstaUser(String user) Checks if a given Instagram user, identified by their username, is known by thisUserManager.voidRegisters an Instagram user as a followed user.voidregisterInstaUser(InstaUser user) Registers an Instagram user as a known user.voidsetSeleniagramUser(SeleniagramUser seleniagramUser) Sets the Seleniagram user for thisUserManager.voidUnregisters an Instagram user from the list of followed users.voidunregisterInstaUser(InstaUser user) Unregisters an Instagram user from the list of known users.
-
Konstruktordetails
-
UserManager
public UserManager()
-
-
Methodendetails
-
getSeleniagramUser
Gets the Seleniagram user managed by thisUserManager.- Gibt zurück:
- The
SeleniagramUserinstance associated with thisUserManager.
-
getFollowedInstaUser
Retrieves a followed Instagram user by their username.- Parameter:
user- The username of the Instagram user to retrieve.- Gibt zurück:
- The
InstaUsercorresponding to the username, ornullif no followed user is found.
-
getKnownInstaUser
Retrieves a known Instagram user by their username.- Parameter:
user- The username of the Instagram user to retrieve.- Gibt zurück:
- The
InstaUsercorresponding to the username, ornullif no known user is found.
-
isKnownInstaUser
Checks if a given Instagram user is known by thisUserManager.- Parameter:
user- TheInstaUserto check.- Gibt zurück:
trueif the user is known, otherwisefalse.
-
isKnownInstaUser
Checks if a given Instagram user, identified by their username, is known by thisUserManager.- Parameter:
user- The username of the Instagram user to check.- Gibt zurück:
trueif the user is known, otherwisefalse.
-
isFollowedInstaUser
Checks if a given Instagram user is followed by thisUserManager.- Parameter:
user- TheInstaUserto check.- Gibt zurück:
trueif the user is followed, otherwisefalse.
-
isFollowedInstaUser
Checks if a given Instagram user, identified by their username, is followed by thisUserManager.- Parameter:
user- The username of the Instagram user to check.- Gibt zurück:
trueif the user is followed, otherwisefalse.
-
registerInstaUser
Registers an Instagram user as a known user.- Parameter:
user- TheInstaUserto register as a known user.
-
unregisterInstaUser
Unregisters an Instagram user from the list of known users.- Parameter:
user- TheInstaUserto unregister from the known users list.
-
registerFollowedInstaUser
Registers an Instagram user as a followed user.- Parameter:
user- TheInstaUserto register as a followed user.
-
unregisterFollowedInstaUser
Unregisters an Instagram user from the list of followed users.- Parameter:
user- TheInstaUserto unregister from the followed users list.
-
setSeleniagramUser
Sets the Seleniagram user for thisUserManager.- Parameter:
seleniagramUser- TheSeleniagramUserto set as the managed user.
-