// Path: app/src/main/java/dev/wisebite/wisebite/domain/Menu.java
// @Getter
// @Setter
// @AllArgsConstructor(suppressConstructorProperties = true)
// @NoArgsConstructor
// @ToString
// @Builder
// public class Menu implements Entity {
// 
//     private String id;
//     private String name;
//     private Double price;
//     private String description;
// 
//     private Map<String, Object> mainDishes = new LinkedHashMap<>();
//     private Map<String, Object> secondaryDishes = new LinkedHashMap<>();
//     private Map<String, Object> otherDishes = new LinkedHashMap<>();
//     private Map<String, Object> reviews = new LinkedHashMap<>();
// 
//     @Override
//     public String getId() {
//         return id;
//     }
// 
//     @Override
//     public void setId(String id) {
//         this.id = id;
//     }
// 
// }
// 
// Path: app/src/main/java/dev/wisebite/wisebite/domain/OpenTime.java
// @Getter
// @Setter
// @AllArgsConstructor(suppressConstructorProperties = true)
// @NoArgsConstructor
// @ToString
// @Builder
// public class OpenTime implements Entity {
// 
//     private String id;
//     private Date startDate;
//     private Date endDate;
// 
//     @Override
//     public String getId() {
//         return id;
//     }
// 
//     @Override
//     public void setId(String id) {
//         this.id = id;
//     }
// 
// }


import android.os.Build;
import android.widget.TimePicker;
import java.util.Calendar;
import java.util.Date;
import dev.wisebite.wisebite.R;
import dev.wisebite.wisebite.domain.Menu;
import dev.wisebite.wisebite.domain.OpenTime;
        secondHour = calendar.get(Calendar.HOUR_OF_DAY);
        secondMinute = calendar.get(Calendar.MINUTE);

        return datesToString(firstHour, firstMinute, secondHour, secondMinute);
    }

    @SuppressWarnings("deprecation")
    public static OpenTime createOpenTimeByTimePicker(TimePicker firstTimePicker, TimePicker secondTimePicker, Integer viewId) {
        int dayOfTheWeek = parseViewIdToDayOfWeek(viewId);

        Calendar startCalendar = Calendar.getInstance();
        startCalendar.setTimeInMillis(0);
        startCalendar.set(Calendar.DAY_OF_WEEK, dayOfTheWeek);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            startCalendar.set(Calendar.HOUR_OF_DAY, firstTimePicker.getHour());
            startCalendar.set(Calendar.MINUTE, firstTimePicker.getMinute());
        } else {
            startCalendar.set(Calendar.HOUR_OF_DAY, firstTimePicker.getCurrentHour());
            startCalendar.set(Calendar.MINUTE, firstTimePicker.getCurrentMinute());
        }


        Calendar endCalendar = Calendar.getInstance();
        endCalendar.setTimeInMillis(0);
        endCalendar.set(Calendar.DAY_OF_WEEK, dayOfTheWeek);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            endCalendar.set(Calendar.HOUR_OF_DAY, secondTimePicker.getHour());
            endCalendar.set(Calendar.MINUTE, secondTimePicker.getMinute());
        } else {
            endCalendar.set(Calendar.HOUR_OF_DAY, secondTimePicker.getCurrentHour());
// Path: app/src/main/java/dev/wisebite/wisebite/domain/Menu.java
// @Getter
// @Setter
// @AllArgsConstructor(suppressConstructorProperties = true)
// @NoArgsConstructor
// @ToString
// @Builder
// public class Menu implements Entity {
// 
//     private String id;
//     private String name;
//     private Double price;
//     private String description;
// 
//     private Map<String, Object> mainDishes = new LinkedHashMap<>();
//     private Map<String, Object> secondaryDishes = new LinkedHashMap<>();
//     private Map<String, Object> otherDishes = new LinkedHashMap<>();
//     private Map<String, Object> reviews = new LinkedHashMap<>();
// 
//     @Override
//     public String getId() {
//         return id;
//     }
// 
//     @Override
//     public void setId(String id) {
//         this.id = id;
//     }
// 
// }
// 
// Path: app/src/main/java/dev/wisebite/wisebite/domain/OpenTime.java
// @Getter
// @Setter
// @AllArgsConstructor(suppressConstructorProperties = true)
// @NoArgsConstructor
// @ToString
// @Builder
// public class OpenTime implements Entity {
// 
//     private String id;
//     private Date startDate;
//     private Date endDate;
// 
//     @Override
//     public String getId() {
//         return id;
//     }
// 
//     @Override
//     public void setId(String id) {
//         this.id = id;
//     }
// 
// }


// Path: app/src/main/java/dev/wisebite/wisebite/utils/Utils.java
import android.os.Build;
import android.widget.TimePicker;
import java.util.Calendar;
import java.util.Date;
import dev.wisebite.wisebite.R;
import dev.wisebite.wisebite.domain.Menu;
import dev.wisebite.wisebite.domain.OpenTime;

        secondHour = calendar.get(Calendar.HOUR_OF_DAY);
        secondMinute = calendar.get(Calendar.MINUTE);

        return datesToString(firstHour, firstMinute, secondHour, secondMinute);
    }

    @SuppressWarnings("deprecation")
    public static OpenTime createOpenTimeByTimePicker(TimePicker firstTimePicker, TimePicker secondTimePicker, Integer viewId) {
        int dayOfTheWeek = parseViewIdToDayOfWeek(viewId);

        Calendar startCalendar = Calendar.getInstance();
        startCalendar.setTimeInMillis(0);
        startCalendar.set(Calendar.DAY_OF_WEEK, dayOfTheWeek);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            startCalendar.set(Calendar.HOUR_OF_DAY, firstTimePicker.getHour());
            startCalendar.set(Calendar.MINUTE, firstTimePicker.getMinute());
        } else {
            startCalendar.set(Calendar.HOUR_OF_DAY, firstTimePicker.getCurrentHour());
            startCalendar.set(Calendar.MINUTE, firstTimePicker.getCurrentMinute());
        }


        Calendar endCalendar = Calendar.getInstance();
        endCalendar.setTimeInMillis(0);
        endCalendar.set(Calendar.DAY_OF_WEEK, dayOfTheWeek);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            endCalendar.set(Calendar.HOUR_OF_DAY, secondTimePicker.getHour());
            endCalendar.set(Calendar.MINUTE, secondTimePicker.getMinute());
        } else {
            endCalendar.set(Calendar.HOUR_OF_DAY, secondTimePicker.getCurrentHour());
            endCalendar.set(Calendar.MINUTE, secondTimePicker.getCurrentMinute());