Class Phone

java.lang.Object
nl.minetopiasdb.api.objects.Phone

public class Phone extends Object
Phone object
  • Constructor Details

    • Phone

      public Phone(int phonenumber, double credit, UUID owner)
  • Method Details

    • getPhoneNumber

      public int getPhoneNumber()
      Get the phonenumber (without the prefix, e.g. 06)
      Returns:
      phonenumber
    • getCredit

      public double getCredit()
      Get the calling credit of this phonenumber
      Returns:
      calling credit
    • setCredit

      public void setCredit(double newCredit)
      Change the calling credit of this phonenumber
      Parameters:
      newCredit - new calling credit of this phonenumber
    • getOwner

      public UUID getOwner()
      Get the UUID of the owner (last person that opened this phone)
      Returns:
      UUID of the last person that opened the phone
    • setOwner

      public void setOwner(UUID owner)
      Change the owner of this phonenumber
      Parameters:
      owner - new owner of this phonenumber