resetAdId method

int resetAdId(
  1. ADSuyiAd ad
)

Implementation

int resetAdId(ADSuyiAd ad) {
  int adId = ad.adId;
  if (map[adId] != null) {
    this.adId += 1;
    adId = this.adId;
  }
  map[adId] = ad;
  return adId;
}