Class Phone

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

public class Phone extends Object
Phone object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Phone​(int phonenumber, double credit, UUID owner)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Get the calling credit of this phonenumber
    Get the UUID of the owner (last person that opened this phone)
    int
    Get the phonenumber (without the prefix, e.g.
    void
    setCredit​(double newCredit)
    Change the calling credit of this phonenumber
    void
    setOwner​(UUID owner)
    Change the owner of this phonenumber

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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