Class VServAds


public class VServAds extends FullScreenAdService
The v-serv ad service implements full screen ads
  • Field Details

  • Constructor Details

    • VServAds

      public VServAds()
  • Method Details

    • createAdRequest

      protected ConnectionRequest createAdRequest()

      Creates a new request for an ad

      Returns

      the network operation

      Specified by:
      createAdRequest in class FullScreenAdService
    • hasPendingAd

      protected boolean hasPendingAd()
      Description copied from class: FullScreenAdService

      Just checks if an ad is already fetched

      Returns

      returns true if an ad is already waiting in the queue

      Specified by:
      hasPendingAd in class FullScreenAdService
    • clearPendingAd

      protected void clearPendingAd()
      Removes the pending ad data so we can fetch a new ad
      Specified by:
      clearPendingAd in class FullScreenAdService
    • getPendingAd

      protected Component getPendingAd()

      Component representing a given ad

      Returns

      the ad that is currently pending

      Specified by:
      getPendingAd in class FullScreenAdService
    • getAdDestination

      protected String getAdDestination()

      Returns the URL for the ad

      Returns

      the ad URL

      Specified by:
      getAdDestination in class FullScreenAdService
    • failed

      protected boolean failed()
      Returns true if the connection failed
      Specified by:
      failed in class FullScreenAdService
    • getCountryCode

      public String getCountryCode()
      Returns

      the countryCode

    • setCountryCode

      public void setCountryCode(String countryCode)
      Parameters
      • countryCode: the countryCode to set
    • getNetworkCode

      public String getNetworkCode()
      Returns

      the networkCode

    • setNetworkCode

      public void setNetworkCode(String networkCode)
      Parameters
      • networkCode: the networkCode to set
    • getLocale

      public String getLocale()
      Returns

      the locale

    • setLocale

      public void setLocale(String locale)
      Parameters
      • locale: the locale to set
    • getCategory

      public int getCategory()
      Returns

      the category

    • setCategory

      public void setCategory(int category)
      Parameters
      • category: the category to set
    • getZoneId

      public String getZoneId()
      Returns

      the zoneId

    • setZoneId

      public void setZoneId(String zoneId)
      Parameters
      • zoneId: the zoneId to set
    • isAllowSkipping

      public boolean isAllowSkipping()
      Returns

      the allowSkipping

      Overrides:
      isAllowSkipping in class FullScreenAdService