package io.corbel.event;

import io.corbel.eventbus.Event;

/**
 * @author Cristian del Cerro
 */
public class EvciEvent implements Event {
    private String type;
    private String data;

    public EvciEvent() {}

    public EvciEvent(String type, String data) {
        this.type = type;
        this.data = data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (!(o instanceof EvciEvent))
            return false;

        EvciEvent evciEvent = (EvciEvent) o;

        if (data != null ? !data.equals(evciEvent.data) : evciEvent.data != null)
            return false;
        if (type != null ? !type.equals(evciEvent.type) : evciEvent.type != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = type != null ? type.hashCode() : 0;
        result = 31 * result + (data != null ? data.hashCode() : 0);
        return result;
    }

}

@@ -50,16 +50,34 @@
 us.Event
+WithSpecificDomain
 ;%0A%0A/**%0A 
@@ -136,24 +136,39 @@
 ent 
-implement
+extend
 s Event
+WithSpecificDomain
  %7B%0A 
@@ -686,16 +686,18 @@
 is == o)
+ %7B
 %0A       
@@ -710,24 +710,34 @@
 eturn true;%0A
+        %7D%0A
         if (
@@ -762,16 +762,18 @@
 iEvent))
+ %7B
 %0A       
@@ -782,32 +782,42 @@
    return false;
+%0A        %7D
 %0A%0A        EvciEv
@@ -921,32 +921,34 @@
 nt.data != null)
+ %7B
 %0A            ret
@@ -950,32 +950,42 @@
   return false;%0A
+        %7D%0A
         if (type
@@ -1049,16 +1049,18 @@
 != null)
+ %7B
 %0A       
@@ -1077,16 +1077,26 @@
 n false;
+%0A        %7D
 %0A%0A      

add domain to evciEvents