Skip to content

Commit

Permalink
消息重构
Browse files Browse the repository at this point in the history
  • Loading branch information
ohun committed Dec 28, 2015
1 parent 26cb37a commit df6e190
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mpush-api/src/main/java/com/shinemo/mpush/api/SessionContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,15 @@ public SessionContext setDeviceId(String deviceId) {
public boolean handshakeOk() {
return !Strings.isNullOrEmpty(deviceId);
}


@Override
public String toString() {
return "SessionContext{" +
"osName='" + osName + '\'' +
", osVersion='" + osVersion + '\'' +
", clientVersion='" + clientVersion + '\'' +
", deviceId='" + deviceId + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,14 @@ public boolean isEnable() {
public String remoteIp() {
return channel.remoteAddress().toString();
}


@Override
public String toString() {
return "NettyConnection{" +
"context=" + context +
", channel=" + channel +
", status=" + status +
'}';
}
}

0 comments on commit df6e190

Please sign in to comment.