Last change
on this file was ee27685, checked in by Blazho <aleksandar.blazhevski@…>, 8 months ago |
Added order items page
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[ee27685] | 1 | package com.example.cookbook.model;
|
---|
| 2 |
|
---|
| 3 | import java.time.LocalDateTime;
|
---|
| 4 | import java.time.format.DateTimeFormatter;
|
---|
| 5 |
|
---|
| 6 | public class Stavka {
|
---|
| 7 | private LocalDateTime vreme;
|
---|
| 8 | private String telefon;
|
---|
| 9 | private String recIme;
|
---|
| 10 | private String nacin;
|
---|
| 11 |
|
---|
| 12 | public LocalDateTime getVreme() {
|
---|
| 13 | return vreme;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | public void setVreme(LocalDateTime vreme) {
|
---|
| 17 | this.vreme = vreme;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public String getTelefon() {
|
---|
| 21 | return telefon;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public void setTelefon(String telefon) {
|
---|
| 25 | this.telefon = telefon;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | public String getNacin() {
|
---|
| 31 | return nacin;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | public void setNacin(String nacin) {
|
---|
| 35 | this.nacin = nacin;
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | public String getRecIme() {
|
---|
| 39 | return recIme;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | public void setRecIme(String recIme) {
|
---|
| 43 | this.recIme = recIme;
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | public Stavka(LocalDateTime vreme, String telefon, String recIme, String nacin) {
|
---|
| 47 | this.vreme = vreme;
|
---|
| 48 | this.telefon = telefon;
|
---|
| 49 | this.recIme = recIme;
|
---|
| 50 | this.nacin = nacin;
|
---|
| 51 | }
|
---|
| 52 | public String getDataFormatirana(){
|
---|
| 53 | return vreme.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd HH:mm"));
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | public Stavka() {
|
---|
| 57 | }
|
---|
| 58 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.