-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修正了素材下载的多处bug。并且,我决定用中文写注释了(换句话说:我决定不装逼了)
- Loading branch information
1 parent
7080683
commit 42ec6e5
Showing
9 changed files
with
164 additions
and
100 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
|
@@ -33,4 +33,8 @@ public void setNews_item(List<NewsItem> news_item) { | |
this.news_item = news_item; | ||
} | ||
|
||
public Content() { | ||
|
||
} | ||
|
||
} |
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,94 @@ | ||
package com.halo.wechat.capabilities.beans; | ||
|
||
public class Item { | ||
|
||
private String media_id; | ||
|
||
private String name; | ||
|
||
private Content content; | ||
|
||
private String update_time; | ||
|
||
private String url; | ||
|
||
/** | ||
* @return 素材id(必须是永久mediaID) | ||
*/ | ||
public String getMedia_id() { | ||
return media_id; | ||
} | ||
|
||
/** | ||
* @param media_id | ||
* 素材id(必须是永久mediaID) | ||
*/ | ||
public void setMedia_id(String media_id) { | ||
this.media_id = media_id; | ||
} | ||
|
||
/** | ||
* @return 文件名称 | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* @param name | ||
* 文件名称 | ||
*/ | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* @return 图文消息内容 | ||
*/ | ||
public Content getContent() { | ||
return content; | ||
} | ||
|
||
/** | ||
* @param content | ||
* 图文消息内容 | ||
*/ | ||
public void setContent(Content content) { | ||
this.content = content; | ||
} | ||
|
||
/** | ||
* @return 图文消息素材的最后更新时间 | ||
*/ | ||
public String getUpdate_time() { | ||
return update_time; | ||
} | ||
|
||
/** | ||
* @param update_time | ||
* 图文消息素材的最后更新时间 | ||
*/ | ||
public void setUpdate_time(String update_time) { | ||
this.update_time = update_time; | ||
} | ||
|
||
/** | ||
* @return 当获取的列表是图片素材列表时,该字段是图片的URL | ||
*/ | ||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
/** | ||
* @param url | ||
* 当获取的列表是图片素材列表时,该字段是图片的URL | ||
*/ | ||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public Item() { | ||
|
||
} | ||
|
||
} |
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
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
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