public static string ToBitrateId(GBitrate bitrate) { switch (bitrate) { case GBitrate.SuperFine: return "bit0000002"; case GBitrate.Standard: return "bit0000001"; default: throw new ArgumentException(); } }
public static Uri CreateRecommendationUri(string contId, GBitrate bitrate) { return new Uri( "http://www.gyao.jp/sityou/catedetail/?" + "login_from=shityou" + "&contentsId=" + contId + "&rateId=" + GConvert.ToBitrateId(bitrate) + "&chapterNo=" + "&recommend=1" + "&contents_id=" + contId + "&code="); }
public static Uri CreatePlayerUri(string contId, GBitrate bitrate) { return new Uri( "http://www.gyao.jp/login/judge_cookie/?" + "login_from=shityou" + "&contentsId=" + contId + "&rateId=" + GConvert.ToBitrateId(bitrate) + "&chapterNo=" + "&recommend=" + "&contents_id=" + "&code="); }