2020-10-15 17:29:40 +02:00
|
|
|
package com.plannaplan.responses.models;
|
|
|
|
|
|
|
|
import com.plannaplan.entities.Commision;
|
|
|
|
|
2020-11-08 16:55:56 +01:00
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
2020-11-08 17:20:00 +01:00
|
|
|
@ApiModel(description = "Response shows information about commision.", value = "CommisionResponse")
|
2020-10-15 17:29:40 +02:00
|
|
|
public class CommisionResponse {
|
2020-11-08 16:55:56 +01:00
|
|
|
@ApiModelProperty(value = "ID created by database")
|
2020-10-15 17:29:40 +02:00
|
|
|
private Long id;
|
2020-11-08 16:55:56 +01:00
|
|
|
|
|
|
|
@ApiModelProperty(value = "Timestamp where the user commit the commision")
|
2020-12-10 15:17:13 +01:00
|
|
|
private String commisionDate;
|
2020-10-15 17:29:40 +02:00
|
|
|
|
|
|
|
public CommisionResponse(Commision commision) {
|
|
|
|
this.id = commision.getId();
|
2020-12-10 15:17:13 +01:00
|
|
|
this.commisionDate = commision.getCommisionDate().toString();
|
2020-10-15 17:29:40 +02:00
|
|
|
}
|
|
|
|
|
2020-12-10 15:17:13 +01:00
|
|
|
public String getCommisionDate() {
|
2020-10-15 17:29:40 +02:00
|
|
|
return commisionDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Long getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|