public static string GetZoneIdByKey(string key) { key = key.ToLower(); if (ContainsZoneKey(key)) { return(ADCAdManager.GetVideoZonesDictionary()[key].zoneId); } else { return(""); } }
public static ADCVideoZone GetVideoZoneObjectByKey(string key) { key = key.ToLower(); if (ContainsZoneKey(key)) { return(ADCAdManager.GetVideoZonesDictionary()[key]); } else { return(null); } }
public static void AddZoneToManager(string zoneKey, string zoneId, ADCVideoZoneType videoZoneType) { zoneKey = zoneKey.ToLower(); if (ContainsZoneKey(zoneKey)) { Debug.LogWarning("The ad manager overwrote the previous video zoneId: " + GetZoneIdByKey(zoneKey) + " for the video zone named " + zoneKey + " with the new video zoneId of: " + zoneId); } else { Debug.LogWarning("The ad manager has added the video zone named " + zoneKey + " with the video zoneId of: " + zoneId); ADCAdManager.GetVideoZonesDictionary().Add(zoneKey, new ADCVideoZone(zoneId, videoZoneType)); } }
public static void RemoveZoneFromManager(string zoneKey) { zoneKey = zoneKey.ToLower(); ADCAdManager.GetVideoZonesDictionary().Remove(zoneKey); }
//--------------------------------------------------------------------------- // Zone Manager General Methods //--------------------------------------------------------------------------- public static void ResetADCAdManagerZones() { ADCAdManager.GetVideoZonesDictionary().Clear(); }