what-the-bank/sources/com/google/android/gms/analytics/ecommerce/Promotion.java

54 lines
1.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.analytics.ecommerce;
import com.google.android.gms.analytics.zzi;
import com.google.android.gms.common.internal.Preconditions;
import java.util.HashMap;
import java.util.Map;
import org.simpleframework.xml.strategy.Name;
/* loaded from: classes.dex */
public class Promotion {
public static final String ACTION_CLICK = "click";
public static final String ACTION_VIEW = "view";
private Map<String, String> zzvn = new HashMap();
private final void put(String str, String str2) {
Preconditions.checkNotNull(str, "Name should be non-null");
this.zzvn.put(str, str2);
}
public Promotion setId(String str) {
put(Name.MARK, str);
return this;
}
public Promotion setName(String str) {
put("nm", str);
return this;
}
public Promotion setCreative(String str) {
put("cr", str);
return this;
}
public Promotion setPosition(String str) {
put("ps", str);
return this;
}
public final Map<String, String> zzn(String str) {
HashMap hashMap = new HashMap();
for (Map.Entry<String, String> entry : this.zzvn.entrySet()) {
String valueOf = String.valueOf(str);
String valueOf2 = String.valueOf(entry.getKey());
hashMap.put(valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf), entry.getValue());
}
return hashMap;
}
public String toString() {
return zzi.zza((Map) this.zzvn);
}
}