Esempio n. 1
0
        public static TraktResponse TestAccount(TraktAccountTestData data)
        {
            string url  = TraktConfig.URL.TestAccount;
            string json = CallAPI(url, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <TraktResponse>(json));
        }
Esempio n. 2
0
        public static FollwitResponse UpdateEpisodeState(FollwitEpisode data, FollwitWatchStatus status)
        {
            string url  = String.Format(FollwitConfig.URL.WatchEpisode, MapToURL(status));
            string json = CallAPI(url, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <FollwitResponse>(json));
        }
Esempio n. 3
0
        public static TraktResponse ScrobbleEpisode(TraktEpisodeScrobbleData data, TraktWatchStatus status)
        {
            string url  = String.Format(TraktConfig.URL.ScrobbleShow, MapToURL(status));
            string json = CallAPI(url, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <TraktResponse>(json));
        }
Esempio n. 4
0
        public static FollwitResponse TestAccount(FollwitAccountTestData data)
        {
            string json = CallAPI(FollwitConfig.URL.TestAccount, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <FollwitResponse>(json));
        }