package com.app.simplitend.patientprofile.setuproutine.mvvm;

import java.io.Serializable;
import java.util.Objects;

public class RoutineDetails implements Serializable {
    public int id;
    public int is_update;
    public int patientRoutineId;

    public String patient_xid;
    public String routine_title;
    public String routine_description;
    public String reminder_everyday_flag;
    public String reminder_weekday_flag;
    public String routine_start_time;
    public String routine_end_time;
    public String mon;
    public String tue;
    public String wed;
    public String thu;
    public String fri;
    public String sat;
    public String sun;
    public String active;
    public String deleted_at;
    public String created_by;
    public String updated_by;
    public String created_at;
    public String updated_at;

    public String routine_marked;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoutineDetails that = (RoutineDetails) o;
        return id == that.id && Objects.equals(routine_title, that.routine_title) && Objects.equals(routine_description, that.routine_description) && Objects.equals(routine_start_time, that.routine_start_time) && Objects.equals(routine_end_time, that.routine_end_time);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, routine_title, routine_description, routine_start_time, routine_end_time);
    }
}
