View Javadoc

1   package org.dfdaemon.il2.api.command.request;
2   
3   import org.dfdaemon.il2.api.command.Command;
4   import org.dfdaemon.il2.api.command.reply.NoReply;
5   
6   /**
7    * @author aka50
8    */
9   public class ChannelStatCmd extends Command<NoReply> {
10      public int channel;
11      public int time;
12  
13  
14      public boolean equals(Object o) {
15          if (this == o) return true;
16          if (o == null || getClass() != o.getClass()) return false;
17  
18          ChannelStatCmd that = (ChannelStatCmd) o;
19  
20          return channel == that.channel && time == that.time;
21  
22      }
23  
24      public int hashCode() {
25          int result;
26          result = channel;
27          result = 31 * result + time;
28          return result;
29      }
30  
31      public String toString() {
32          final StringBuilder sb = new StringBuilder();
33          sb.append("ChannelStatCmd");
34          sb.append("{");
35          sb.append("channel=").append(channel);
36          sb.append(", time=").append(time);
37          sb.append('}');
38          return sb.toString();
39      }
40  }