Exemplo n.º 1
0
        public static void Send_CrossRefAniDBOther(CrossRef_AniDB_Other data)
        {
            if (!ServerSettings.Instance.WebCache.TvDB_Send)
            {
                return;
            }

            string uri = $@"http://{azureHostBaseAddress}/api/CrossRef_AniDB_Other";

            Azure_CrossRef_AniDB_Other_Request input = data.ToRequest();
            string json = JSONHelper.Serialize(input);

            SendData(uri, json, "POST");
        }
Exemplo n.º 2
0
        public static void Send_CrossRefAniDBOther(CrossRef_AniDB_Other data)
        {
            if (!ServerSettings.WebCache_TvDB_Send)
            {
                return;
            }

            string uri = string.Format(@"http://{0}/api/CrossRef_AniDB_Other", azureHostBaseAddress);

            Azure_CrossRef_AniDB_Other_Request input = data.ToRequest();
            string json = JSONHelper.Serialize <Azure_CrossRef_AniDB_Other_Request>(input);

            SendData(uri, json, "POST");
        }