Beispiel #1
0
 public static string ToBitrateId(GBitrate bitrate)
 {
     switch (bitrate) {
         case GBitrate.SuperFine:
             return "bit0000002";
         case GBitrate.Standard:
             return "bit0000001";
         default:
             throw new ArgumentException();
     }
 }
Beispiel #2
0
 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=");
 }
Beispiel #3
0
 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=");
 }