Exemplo n.º 1
0
 public static string GetZoneIdByKey(string key)
 {
     key = key.ToLower();
     if (ContainsZoneKey(key))
     {
         return(ADCAdManager.GetVideoZonesDictionary()[key].zoneId);
     }
     else
     {
         return("");
     }
 }
Exemplo n.º 2
0
 public static ADCVideoZone GetVideoZoneObjectByKey(string key)
 {
     key = key.ToLower();
     if (ContainsZoneKey(key))
     {
         return(ADCAdManager.GetVideoZonesDictionary()[key]);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 3
0
 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));
     }
 }
Exemplo n.º 4
0
 public static void RemoveZoneFromManager(string zoneKey)
 {
     zoneKey = zoneKey.ToLower();
     ADCAdManager.GetVideoZonesDictionary().Remove(zoneKey);
 }
Exemplo n.º 5
0
 //---------------------------------------------------------------------------
 // Zone Manager General Methods
 //---------------------------------------------------------------------------
 public static void ResetADCAdManagerZones()
 {
     ADCAdManager.GetVideoZonesDictionary().Clear();
 }