source: src/main/java/com/example/salonbella/service/reservation/ReservationResponse.java@ 4d7e387

Last change on this file since 4d7e387 was 4d7e387, checked in by makyjovanovsky <mjovanovski04@…>, 18 months ago

commit 1

  • Property mode set to 100644
File size: 1.5 KB
Line 
1package com.example.salonbella.service.reservation;
2
3import java.time.LocalDateTime;
4
5public class ReservationResponse {
6 private Long id;
7 private LocalDateTime localDateTime;
8 private String type;
9 private boolean valid;
10 private String name = "";
11 private String surname = "";
12
13 public ReservationResponse(Long id, LocalDateTime localDateTime, String type,boolean valid) {
14 this.id = id;
15 this.localDateTime = localDateTime;
16 this.type = type;
17 this.valid = valid;
18 }
19
20 public LocalDateTime getLocalDateTime() {
21 return localDateTime;
22 }
23
24 public void setLocalDateTime(LocalDateTime localDateTime) {
25 this.localDateTime = localDateTime;
26 }
27
28 public Long getId() {
29 return id;
30 }
31
32 public void setId(Long id) {
33 this.id = id;
34 }
35
36 public String getType() {
37 return type;
38 }
39
40 public void setType(String type) {
41 this.type = type;
42 }
43
44 public String getName() {
45 return name;
46 }
47
48 public void setName(String name) {
49 this.name = name;
50 }
51
52 public String getSurname() {
53 return surname;
54 }
55
56 public void setSurname(String surname) {
57 this.surname = surname;
58 }
59
60 public boolean isValid() {
61 return valid;
62 }
63
64 public void setValid(boolean valid) {
65 this.valid = valid;
66 }
67
68 @Override
69 public String toString() {
70 return String.format("Date and time: %s\n Type: %s", localDateTime, type);
71 }
72}
Note: See TracBrowser for help on using the repository browser.