Schnittstelle User

Alle bekannten Implementierungsklassen:
InstaUser, SeleniagramUser

public interface User
This interface defines methods for user-related information, including username, the number of subscribers, the number of subscriptions, and the number of posts. It also includes methods for setting these properties and retrieving the user's URL. Implementing classes should provide the actual behavior for these methods.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Gets the number of posts made by the user.
    int
    Gets the number of users the current user is subscribed to.
    int
    Gets the number of subscribers the user has.
    Gets the username of the user.
    default String
    Gets the URL associated with the user's profile.
    void
    setPosts(int posts)
    Sets the number of posts made by the user.
    void
    setSubbed(int subbed)
    Sets the number of users the current user is subscribed to.
    void
    setSubs(int subs)
    Sets the number of subscribers the user has.
  • Methodendetails

    • getUsername

      String getUsername()
      Gets the username of the user.
      Gibt zurück:
      the username as a String.
    • getSubs

      int getSubs()
      Gets the number of subscribers the user has.
      Gibt zurück:
      the number of subscribers.
    • getSubbed

      int getSubbed()
      Gets the number of users the current user is subscribed to.
      Gibt zurück:
      the number of users the current user follows.
    • getPosts

      int getPosts()
      Gets the number of posts made by the user.
      Gibt zurück:
      the number of posts.
    • getUserURL

      default String getUserURL()
      Gets the URL associated with the user's profile.
      Gibt zurück:
      the user's profile URL as a String.
    • setSubs

      void setSubs(int subs)
      Sets the number of subscribers the user has. This method should update the subscriber count accordingly.
    • setSubbed

      void setSubbed(int subbed)
      Sets the number of users the current user is subscribed to. This method should update the subscription count accordingly.
    • setPosts

      void setPosts(int posts)
      Sets the number of posts made by the user. This method should update the post count accordingly.