-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/message/ArticleUrlResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package me.chanjar.weixin.mp.bean.message; | ||
|
||
import com.thoughtworks.xstream.annotations.XStreamAlias; | ||
import com.thoughtworks.xstream.annotations.XStreamConverter; | ||
import lombok.Data; | ||
import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; | ||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @author plw on 2021/9/7 10:39 AM. | ||
* @version 1.0 | ||
*/ | ||
@XStreamAlias("ArticleUrlResult") | ||
@Data | ||
public class ArticleUrlResult implements Serializable { | ||
|
||
@XStreamAlias("ResultList") | ||
private List<Item> resultList; | ||
|
||
@XStreamAlias("Count") | ||
private Long count; | ||
|
||
@Override | ||
public String toString() { | ||
return WxMpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
@XStreamAlias("item") | ||
@Data | ||
public static class Item implements Serializable { | ||
|
||
@XStreamAlias("ArticleIdx") | ||
private String articleIdx; | ||
|
||
@XStreamAlias("ArticleUrl") | ||
@XStreamConverter(value = XStreamCDataConverter.class) | ||
private String articleUrl; | ||
|
||
@Override | ||
public String toString() { | ||
return WxMpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters