-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from TTBMP/release/v1.0-beta
Release/v1.0-beta
- Loading branch information
Showing
249 changed files
with
3,083 additions
and
6,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
package com.ttbmp.cinehub.app.dto; | ||
|
||
import com.ttbmp.cinehub.domain.Hall; | ||
import lombok.Value; | ||
|
||
/** | ||
* @author Ivan Palmieri | ||
*/ | ||
@Value | ||
public class HallDto { | ||
|
||
private Integer id; | ||
private String name; | ||
Integer id; | ||
String name; | ||
|
||
public HallDto(Hall hall) { | ||
this.id = hall.getId(); | ||
this.name = hall.getName(); | ||
} | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,22 @@ | ||
package com.ttbmp.cinehub.app.dto; | ||
|
||
import com.ttbmp.cinehub.domain.Seat; | ||
import lombok.Value; | ||
|
||
/** | ||
* @author Ivan Palmieri | ||
*/ | ||
@Value | ||
public class SeatDto { | ||
|
||
private int id; | ||
private String position; | ||
private boolean isBooked; | ||
int id; | ||
String position; | ||
boolean isBooked; | ||
|
||
public SeatDto(Seat seat, boolean isBooked) { | ||
this.id = seat.getId(); | ||
this.position = seat.getPosition(); | ||
this.isBooked = isBooked; | ||
} | ||
|
||
public String getPosition() { | ||
return position; | ||
} | ||
|
||
public void setPosition(String position) { | ||
this.position = position; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public boolean isBooked() { | ||
return isBooked; | ||
} | ||
|
||
public void setBooked(boolean booked) { | ||
isBooked = booked; | ||
} | ||
|
||
} |
34 changes: 6 additions & 28 deletions
34
app/src/main/java/com/ttbmp/cinehub/app/dto/TicketDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,22 @@ | ||
package com.ttbmp.cinehub.app.dto; | ||
|
||
import com.ttbmp.cinehub.domain.ticket.component.Ticket; | ||
import com.ttbmp.cinehub.domain.ticket.Ticket; | ||
import lombok.Value; | ||
|
||
/** | ||
* @author Ivan Palmieri | ||
*/ | ||
@Value | ||
public class TicketDto { | ||
|
||
private int id; | ||
private long price; | ||
private SeatDto seatDto; | ||
int id; | ||
long price; | ||
SeatDto seatDto; | ||
|
||
public TicketDto(Ticket ticket) { | ||
this.id = ticket.getId(); | ||
this.price = ticket.getPrice(); | ||
this.seatDto = new SeatDto(ticket.getSeat(), true); | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public long getPrice() { | ||
return price; | ||
} | ||
|
||
public void setPrice(long price) { | ||
this.price = price; | ||
} | ||
|
||
public SeatDto getSeatDto() { | ||
return seatDto; | ||
} | ||
|
||
public void setSeatDto(SeatDto seatDto) { | ||
this.seatDto = seatDto; | ||
} | ||
|
||
} |
Oops, something went wrong.