Class accountModel

java.lang.Object
vn.edu.uit.csbu.software_design.software_design_backend.account.accountModel

@Entity public class accountModel extends Object
The type Account model.
  • Constructor Details

    • accountModel

      public accountModel()
      Instantiates a new Account model.
    • accountModel

      public accountModel(String name, String password, String streamKey)
      Instantiates a new Account model.
      Parameters:
      name - the name
      password - the password
      streamKey - the stream key
    • accountModel

      public accountModel(String uuid, String name, String password, String streamKey)
      Instantiates a new Account model.
      Parameters:
      uuid - the uuid
      name - the name
      password - the password
      streamKey - the stream key
  • Method Details

    • getId

      public String getId()
      Get id string.
      Returns:
      the string
    • getName

      public String getName()
      Get name string.
      Returns:
      the string
    • getPassword

      public String getPassword()
      Get password string.
      Returns:
      the string
    • getStreamKey

      public String getStreamKey()
      Get stream key string.
      Returns:
      the string
    • getTitle

      public String getTitle()
      Get title string.
      Returns:
      the string
    • getDescription

      public String getDescription()
      Get description string.
      Returns:
      the string
    • setId

      public void setId(String id)
      Set id.
      Parameters:
      id - the id
    • setName

      public void setName(String name)
      Set name.
      Parameters:
      name - the name
    • setPassword

      public void setPassword(String password)
      Set password.
      Parameters:
      password - the password
    • setStreamKey

      public void setStreamKey(String streamKey)
      Set stream key.
      Parameters:
      streamKey - the stream key
    • setTitle

      public void setTitle(String title)
      Set title.
      Parameters:
      title - the title
    • setDescription

      public void setDescription(String description)
      Set description.
      Parameters:
      description - the description
    • getFollowingStreamId

      public List<String> getFollowingStreamId()
      Get following stream id list.
      Returns:
      the list
    • getFollowerCount

      public Integer getFollowerCount()
      The function `getFollowerCount` returns the size of a collection named `follower` while being ignored during serialization.
      Returns:
      The `follower.size()` is being returned, which represents the number of elements in the `follower` collection.