Package com.dzidzi.dto.courier
Class Courier
java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.merge.EntityComposition
com.dzidzi.dto.courier.Courier
Represents a courier of the Api.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCourier(UUID id, String firstName, String lastName, String contact, AddressEntityApi address, CourierStatus status, float averageRating, CredentialEntityApi credential, Image avatar) -
Method Summary
Modifier and TypeMethodDescriptionstatic Courier.Builderbuilder()TheAddressof the courierAn image/avatar of the courierfloatThe average ratings of the courierTheCredentialof the courierThe courier status, that is setting online(true) or offline(false)voidAn image/avatar of the couriervoidsetStatus(CourierStatus status) The courier status, that is setting online(true) or offline(false)Methods inherited from class com.dzidzi.dto.merge.EntityComposition
getContact, getFirstName, getLastName
-
Constructor Details
-
Courier
public Courier(UUID id, String firstName, String lastName, String contact, AddressEntityApi address, CourierStatus status, float averageRating, CredentialEntityApi credential, Image avatar)
-
-
Method Details
-
builder
-
getAddress
TheAddressof the courier -
getStatus
The courier status, that is setting online(true) or offline(false) -
getAverageRating
public float getAverageRating()The average ratings of the courier -
getCredential
TheCredentialof the courier -
getAvatar
An image/avatar of the courier -
setStatus
The courier status, that is setting online(true) or offline(false) -
setAvatar
An image/avatar of the courier
-