public static void Send_AnimeFull(JMMServer.Entities.AniDB_Anime data) { //if (!ServerSettings.WebCache_XRefFileEpisode_Send) return; string uri = string.Format(@"http://{0}/api/animefull", azureHostBaseAddress); AnimeFull obj = data.ToContractAzure(); string json = JSONHelper.Serialize<AnimeFull>(obj); SendData(uri, json, "POST"); }
public CommandRequest_WebCacheDeleteXRefAniDBOther(int animeID, JMMServer.CrossRefType xrefType) { this.AnimeID = animeID; this.CommandType = (int)CommandRequestType.WebCache_DeleteXRefAniDBOther; this.CrossRefType = (int)xrefType; this.Priority = (int)DefaultPriority; GenerateCommandID(); }
public CrossRef_AniDB_OtherInput(JMMServer.Entities.CrossRef_AniDB_Other xref) { this.AnimeID = xref.AnimeID; this.CrossRefID = xref.CrossRefID; this.CrossRefSource = xref.CrossRefSource; this.CrossRefType = xref.CrossRefType; this.Username = ServerSettings.AniDB_Username; if (ServerSettings.WebCache_Anonymous) this.Username = Constants.AnonWebCacheUsername; }
public CrossRef_File_EpisodeInput(JMMServer.Entities.CrossRef_File_Episode xref) { this.Hash = xref.Hash; this.AnimeID = xref.AnimeID; this.EpisodeID = xref.EpisodeID; this.Percentage = xref.Percentage; this.EpisodeOrder = xref.EpisodeOrder; this.Username = ServerSettings.AniDB_Username; if (ServerSettings.WebCache_Anonymous) this.Username = Constants.AnonWebCacheUsername; }
public static void Send_CrossRefFileEpisode(JMMServer.Entities.CrossRef_File_Episode data) { if (!ServerSettings.WebCache_XRefFileEpisode_Send) return; string uri = string.Format(@"http://{0}/api/CrossRef_File_Episode", azureHostBaseAddress); CrossRef_File_EpisodeInput input = new CrossRef_File_EpisodeInput(data); string json = JSONHelper.Serialize<CrossRef_File_EpisodeInput>(input); SendData(uri, json, "POST"); }
public static void Send_CrossRefAniDBOther(JMMServer.Entities.CrossRef_AniDB_Other data) { if (!ServerSettings.WebCache_TvDB_Send) return; string uri = string.Format(@"http://{0}/api/CrossRef_AniDB_Other", azureHostBaseAddress); CrossRef_AniDB_OtherInput input = new CrossRef_AniDB_OtherInput(data); string json = JSONHelper.Serialize<CrossRef_AniDB_OtherInput>(input); SendData(uri, json, "POST"); }
public static void Send_CrossRef_AniDB_MAL(JMMServer.Entities.CrossRef_AniDB_MAL data) { //if (!ServerSettings.WebCache_XRefFileEpisode_Send) return; string uri = string.Format(@"http://{0}/api/CrossRef_AniDB_MAL", azureHostBaseAddress); CrossRef_AniDB_MAL fhr = data.ToContractAzure(); string json = JSONHelper.Serialize<CrossRef_AniDB_MAL>(fhr); SendData(uri, json, "POST"); }