package seedu.ezdo.commons.events.storage;

import seedu.ezdo.commons.events.BaseEvent;
import seedu.ezdo.model.ReadOnlyEzDo;

//@@author A0139248X
/**
 * Indicates a request to change the directory of the saved ezDo.xml
 */
public class EzDoDirectoryChangedEvent extends BaseEvent {

    private ReadOnlyEzDo data;
    private String path;

    public EzDoDirectoryChangedEvent(ReadOnlyEzDo data, String path) {
        this.data = data;
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public ReadOnlyEzDo getData() {
        return data;
    }

    @Override
    public String toString() {
        return "New save directory: " + path;
    }
}

@@ -282,39 +282,8 @@
  %7B%0A%0A
-    private ReadOnlyEzDo data;%0A
     
@@ -345,27 +345,8 @@
 ent(
-ReadOnlyEzDo data, 
 Stri
@@ -360,34 +360,8 @@
 ) %7B%0A
-        this.data = data;%0A
     
@@ -451,72 +451,8 @@
  %7D%0A%0A
-    public ReadOnlyEzDo getData() %7B%0A        return data;%0A    %7D%0A%0A
     

Refactor EzDoDirectoryChangedEvent (remove unused variable and method)