netty服务器的基本骨架编写
This commit is contained in:
@@ -48,4 +48,8 @@
|
||||
|
||||
* 2015-04-19
|
||||
|
||||
+ 删除ActionMapping相关类
|
||||
+ 删除ActionMapping相关类
|
||||
|
||||
* 2015-05-07
|
||||
|
||||
+ 删除ResponseTuple接口
|
||||
@@ -6,7 +6,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
/**
|
||||
* 图片对象
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」「客服消息」「群发消息」</font>
|
||||
* <font color="red">可用于「客服消息」「群发消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className Image
|
||||
@@ -15,7 +15,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
* @since JDK 1.7
|
||||
* @see
|
||||
*/
|
||||
public class Image implements ResponseTuple, MassTuple, NotifyTuple {
|
||||
public class Image implements MassTuple, NotifyTuple {
|
||||
|
||||
private static final long serialVersionUID = 6928681900960656161L;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
/**
|
||||
* 音乐对象
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」「客服消息」</font>
|
||||
* <font color="red">可用于「客服消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className Music
|
||||
@@ -15,7 +15,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
* @since JDK 1.7
|
||||
* @see
|
||||
*/
|
||||
public class Music implements ResponseTuple, NotifyTuple {
|
||||
public class Music implements NotifyTuple {
|
||||
|
||||
private static final long serialVersionUID = -5952134916367253297L;
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Music implements ResponseTuple, NotifyTuple {
|
||||
public String getMessageType() {
|
||||
return "music";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 音乐标题
|
||||
*/
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
/**
|
||||
* 图文对象
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」「客服消息」</font>
|
||||
* <font color="red">可用于「客服消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className News
|
||||
@@ -19,7 +19,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
* @see
|
||||
*/
|
||||
@XStreamAlias("Articles")
|
||||
public class News implements ResponseTuple, NotifyTuple {
|
||||
public class News implements NotifyTuple {
|
||||
|
||||
private static final long serialVersionUID = 3348756809039388415L;
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.foxinmy.weixin4j.tuple;
|
||||
|
||||
/**
|
||||
* 被动消息元件
|
||||
*
|
||||
* @className ResponseTuple
|
||||
* @author jy
|
||||
* @date 2014年11月22日
|
||||
* @since JDK 1.7
|
||||
* @see com.foxinmy.weixin4j.tuple.Text
|
||||
* @see com.foxinmy.weixin4j.tuple.Image
|
||||
* @see com.foxinmy.weixin4j.tuple.Voice
|
||||
* @see com.foxinmy.weixin4j.tuple.Video
|
||||
* @see com.foxinmy.weixin4j.tuple.Music
|
||||
* @see com.foxinmy.weixin4j.tuple.News
|
||||
* @see com.foxinmy.weixin4j.tuple.Trans
|
||||
*/
|
||||
public interface ResponseTuple extends Tuple {
|
||||
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
/**
|
||||
* 文本对象
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」「客服消息」「群发消息」</font>
|
||||
* <font color="red">可用于「客服消息」「群发消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className Text
|
||||
@@ -15,7 +15,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
* @see
|
||||
*/
|
||||
@XStreamAlias("Content")
|
||||
public class Text implements ResponseTuple, MassTuple, NotifyTuple {
|
||||
public class Text implements MassTuple, NotifyTuple {
|
||||
|
||||
private static final long serialVersionUID = 520050144519064503L;
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
package com.foxinmy.weixin4j.tuple;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
|
||||
/**
|
||||
* 转移到客服
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className Trans
|
||||
* @author jy
|
||||
* @date 2014年11月21日
|
||||
* @since JDK 1.7
|
||||
* @see
|
||||
*/
|
||||
@XStreamAlias("TransInfo")
|
||||
public class Trans implements ResponseTuple {
|
||||
|
||||
private static final long serialVersionUID = -214711609286629729L;
|
||||
|
||||
@Override
|
||||
public String getMessageType() {
|
||||
return "transfer_customer_service";
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定会话接入的客服账号
|
||||
*/
|
||||
@XStreamAlias("KfAccount")
|
||||
private String kfAccount;
|
||||
|
||||
public Trans() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public Trans(String kfAccount) {
|
||||
this.kfAccount = kfAccount;
|
||||
}
|
||||
|
||||
public String getKfAccount() {
|
||||
return kfAccount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Trans [kfAccount=" + kfAccount + "]";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,7 +7,7 @@ import com.thoughtworks.xstream.annotations.XStreamOmitField;
|
||||
/**
|
||||
* 视频对象
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」「客服消息」</font>
|
||||
* <font color="red">可用于「客服消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className Video
|
||||
@@ -16,7 +16,7 @@ import com.thoughtworks.xstream.annotations.XStreamOmitField;
|
||||
* @since JDK 1.7
|
||||
* @see
|
||||
*/
|
||||
public class Video implements ResponseTuple, NotifyTuple {
|
||||
public class Video implements NotifyTuple {
|
||||
|
||||
private static final long serialVersionUID = 2167437425244069128L;
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package com.foxinmy.weixin4j.tuple;
|
||||
|
||||
|
||||
/**
|
||||
* 语音对象
|
||||
* <p>
|
||||
* <font color="red">可用于「被动消息」「客服消息」「群发消息」</font>
|
||||
* <font color="red">可用于「客服消息」「群发消息」</font>
|
||||
* </p>
|
||||
*
|
||||
* @className Voice
|
||||
@@ -13,7 +12,7 @@ package com.foxinmy.weixin4j.tuple;
|
||||
* @since JDK 1.7
|
||||
* @see
|
||||
*/
|
||||
public class Voice extends Image implements ResponseTuple, NotifyTuple {
|
||||
public class Voice extends Image implements NotifyTuple {
|
||||
|
||||
private static final long serialVersionUID = 8853054484809101524L;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user