1 package org.oxerr.okcoin.websocket.dto; 2 3 import java.util.Collections; 4 import java.util.Map; 5 6 public class Event extends BaseObject { 7 8 private static final long serialVersionUID = 2015030501L; 9 10 private final String event; 11 private final String channel; 12 private final Map<String, String> parameters; 13 14 public Event(String event, String channel) { 15 this.event = event; 16 this.channel = channel; 17 this.parameters = Collections.emptyMap(); 18 } 19 20 public Event(String event, String channel, Map<String, String> parameters) { 21 this.event = event; 22 this.channel = channel; 23 this.parameters = parameters; 24 } 25 26 public String getEvent() { 27 return event; 28 } 29 30 public String getChannel() { 31 return channel; 32 } 33 34 public Map<String, String> getParameters() { 35 return parameters; 36 } 37 38 }