Skip to content

Commit

Permalink
Refactory
Browse files Browse the repository at this point in the history
  • Loading branch information
buracchi committed Feb 15, 2021
1 parent 5ba5352 commit e84e2b5
Show file tree
Hide file tree
Showing 96 changed files with 135 additions and 136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class MovieDataMapper {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class ProjectionDataMapper {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class SeatDataMapper {
private SeatDataMapper() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class TicketDataMapper {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ttbmp/cinehub/app/dto/CinemaDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.List;

/**
* @author Palmieri Ivan, Fabio Buracchi
* @author Ivan Palmieri, Fabio Buracchi
*/
public class CinemaDto {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ttbmp/cinehub/app/dto/HallDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class HallDto {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ttbmp/cinehub/app/dto/MovieDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class MovieDto {
private int id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class ProjectionDto {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ttbmp/cinehub/app/dto/SeatDto.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ttbmp.cinehub.app.dto;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class SeatDto {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/ttbmp/cinehub/app/dto/TicketDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ttbmp.cinehub.domain.User;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class TicketDto {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public Hall getHall(ProjectionistShift projectionistShift) {
@Override
public Hall getHall(int hallId) {
return HALL_DATA_LIST.stream()
.filter(d-> d.id == hallId)
.map(d-> new HallProxy(d.id, serviceLocator.getService(SeatRepository.class)))
.filter(d -> d.id == hallId)
.map(d -> new HallProxy(d.id, serviceLocator.getService(SeatRepository.class)))
.collect(Collectors.toList())
.get(0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public interface MovieRepository {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public interface ProjectionRepository {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void deletedShift(Shift shift) throws ShiftSaveException {
}

@Override
public synchronized void saveShift(Shift shift){
public synchronized void saveShift(Shift shift) {
SHIFT_DATA_LIST.add(new ShiftData(
shiftIdCounter,
shift.getDate(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.util.stream.Collectors;

/**
* @author Fabio Buracchi, Palmieri Ivan
* @author Fabio Buracchi, Ivan Palmieri
*/
public class MockTicketRepository implements TicketRepository {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.List;

/**
* @author Fabio Buracchi, Palmieri Ivan
* @author Fabio Buracchi, Ivan Palmieri
*/
public interface TicketRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ttbmp.cinehub.app.service.email;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public interface EmailService {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ttbmp.cinehub.app.service.email;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class EmailServiceRequest {
private String email;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class MockEmailService implements EmailService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.Map;

/**
* @author Palmieri Ivan, Fabio Buracchi
* @author Ivan Palmieri, Fabio Buracchi
*/
public class MockMovieApiService implements MovieApiService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ttbmp.cinehub.domain.Movie;

/**
* @author Palmieri Ivan, Fabio Buracchi
* @author Ivan Palmieri, Fabio Buracchi
*/
public interface MovieApiService {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ttbmp.cinehub.app.service.payment;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class MockPaymentService implements PaymentService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ttbmp.cinehub.app.usecase.Request;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class PayServiceRequest extends Request {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ttbmp.cinehub.app.service.payment;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public interface PaymentService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class BuyTicketController implements BuyTicketUseCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.ttbmp.cinehub.app.usecase.buyticket.response.*;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public interface BuyTicketPresenter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.ttbmp.cinehub.app.usecase.buyticket.request.*;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public interface BuyTicketUseCase extends UseCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.ttbmp.cinehub.app.usecase.Request;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetListCinemaRequest extends Request {
public static final Request.Error MISSING_MOVIE_ERROR = new Request.Error("Cinema can't be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.ttbmp.cinehub.app.usecase.Request;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetNumberOfSeatsRequest extends Request {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.time.LocalDate;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetProjectionRequest extends Request {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetTicketBySeatsRequest extends Request {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class PayRequest extends Request {
public static final Request.Error MISSING_TICKET_ERROR = new Request.Error("Ticket can't be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ttbmp.cinehub.app.usecase.Request;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class SendEmailRequest extends Request {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.time.LocalDate;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class SetSelectedProjectionRequest extends Request {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetListCinemaResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetListMovieResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetNumberOfSeatsResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ttbmp.cinehub.app.dto.TicketDto;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class GetTicketBySeatsResponse {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.ttbmp.cinehub.app.dto.ProjectionDto;

/**
* @author Palmieri Ivan
* @author Ivan Palmieri
*/
public class SetProjectionResponse {

Expand Down
Loading

0 comments on commit e84e2b5

Please sign in to comment.