Package nl.minetopiasdb.api.objects
Class Phone
java.lang.Object
nl.minetopiasdb.api.objects.Phone
Phone object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the calling credit of this phonenumbergetOwner()
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 phonenumbervoid
Change the owner of this phonenumber
-
Constructor Details
-
Phone
-
-
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
Get the UUID of the owner (last person that opened this phone)- Returns:
- UUID of the last person that opened the phone
-
setOwner
Change the owner of this phonenumber- Parameters:
owner
- new owner of this phonenumber
-