-
-
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
1 parent
5ac2e69
commit d5c6803
Showing
12 changed files
with
446 additions
and
20 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
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
94 changes: 94 additions & 0 deletions
94
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolLivingInfo.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,94 @@ | ||
package me.chanjar.weixin.cp.bean.school; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 获取直播详情. | ||
* | ||
* @author Wang_Wong | ||
*/ | ||
@Data | ||
public class WxCpSchoolLivingInfo extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -5028321625140879571L; | ||
|
||
@SerializedName("living_info") | ||
private LivingInfo livingInfo; | ||
|
||
@Getter | ||
@Setter | ||
public static class LivingInfo implements Serializable { | ||
|
||
@SerializedName("theme") | ||
private String theme; | ||
|
||
@SerializedName("living_start") | ||
private Long livingStart; | ||
|
||
@SerializedName("living_duration") | ||
private Long livingDuration; | ||
|
||
@SerializedName("anchor_userid") | ||
private String anchorUserId; | ||
|
||
@SerializedName("living_range") | ||
private LivingRange livingRange; | ||
|
||
@SerializedName("viewer_num") | ||
private Integer viewerNum; | ||
|
||
@SerializedName("comment_num") | ||
private Integer commentNum; | ||
|
||
@SerializedName("open_replay") | ||
private Integer openReplay; | ||
|
||
@SerializedName("push_stream_url") | ||
private String pushStreamUrl; | ||
|
||
public static LivingInfo fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, LivingInfo.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
@Getter | ||
@Setter | ||
public static class LivingRange implements Serializable { | ||
|
||
@SerializedName("partyids") | ||
private List<Integer> partyIds; | ||
|
||
@SerializedName("group_names") | ||
private List<String> groupNames; | ||
|
||
public static LivingRange fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, LivingRange.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
public static WxCpSchoolLivingInfo fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolLivingInfo.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
65 changes: 65 additions & 0 deletions
65
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/WxCpSchoolUnwatchStat.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,65 @@ | ||
package me.chanjar.weixin.cp.bean.school; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 获取未观看直播统计 | ||
* | ||
* @author Wang_Wong | ||
*/ | ||
@Data | ||
public class WxCpSchoolUnwatchStat extends WxCpBaseResp { | ||
private static final long serialVersionUID = -5028321625140879571L; | ||
|
||
@SerializedName("ending") | ||
private Integer ending; | ||
|
||
@SerializedName("next_key") | ||
private String nextKey; | ||
|
||
@SerializedName("stat_info") | ||
private StatInfo statInfo; | ||
|
||
@Getter | ||
@Setter | ||
public static class StatInfo implements Serializable { | ||
private static final long serialVersionUID = -5696099236344075582L; | ||
|
||
@SerializedName("students") | ||
private List<Student> students; | ||
|
||
} | ||
|
||
@Getter | ||
@Setter | ||
public static class Student implements Serializable { | ||
private static final long serialVersionUID = -5696099236344075582L; | ||
|
||
@SerializedName("student_userid") | ||
private String studentUserId; | ||
|
||
@SerializedName("parent_userid") | ||
private String parentUserId; | ||
|
||
@SerializedName("partyids") | ||
private List<Integer> partyIds; | ||
|
||
} | ||
|
||
public static WxCpSchoolUnwatchStat fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpSchoolUnwatchStat.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
Oops, something went wrong.