2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
11 public class VideoInfo {
13 private final String videoTitle;
14 private final String threadId;
15 private final String videoUrl;
16 private final String msgUrl;
17 private final String userId;
18 private final int videoLength;
19 private final OfficialOption officialOption;
29 * @param officialOption nullも可.
31 VideoInfo(String videoTitle, String threadId, String videoUrl, String msgUrl, String userId, int videoLength,
32 OfficialOption officialOption) {
33 if (videoTitle == null || threadId == null || videoUrl == null || msgUrl == null || userId == null) {
34 throw new IllegalArgumentException("video informationの情報が不正です。");
36 this.videoTitle = videoTitle;
37 this.threadId = threadId;
38 this.videoUrl = videoUrl;
41 this.videoLength = videoLength;
42 this.officialOption = officialOption;
45 public String getMsgUrl() {
49 public String getThreadId() {
53 public String getUserId() {
57 public int getVideoLength() {
61 public String getVideoTitle() {
65 public String getVideoUrl() {
69 public OfficialOption getOfficialOption() {
70 return officialOption;
73 public static class OfficialOption {
75 private final String threadKey;
76 private final String force184;
78 public OfficialOption(String threadKey, String force184) {
79 if (threadKey == null || force184 == null) {
80 throw new IllegalArgumentException("公式動画用キーが不正です");
82 this.threadKey = threadKey;
83 this.force184 = force184;
86 public String getThreadKey() {
90 public String getForce184() {