mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Issue #1053 - Drop support Android and remove Fennec - Part 1a: Remove mobile/android
This commit is contained in:
parent
85045bf6be
commit
c9b411d6cd
3891 changed files with 0 additions and 428084 deletions
|
|
@ -1,62 +0,0 @@
|
|||
package com.adjust.sdk;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by pfms on 07/11/14.
|
||||
*/
|
||||
public class AdjustAttribution implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String trackerToken;
|
||||
public String trackerName;
|
||||
public String network;
|
||||
public String campaign;
|
||||
public String adgroup;
|
||||
public String creative;
|
||||
|
||||
public static AdjustAttribution fromJson(JSONObject jsonObject) {
|
||||
if (jsonObject == null) return null;
|
||||
|
||||
AdjustAttribution attribution = new AdjustAttribution();
|
||||
|
||||
attribution.trackerToken = jsonObject.optString("tracker_token", null);
|
||||
attribution.trackerName = jsonObject.optString("tracker_name", null);
|
||||
attribution.network = jsonObject.optString("network", null);
|
||||
attribution.campaign = jsonObject.optString("campaign", null);
|
||||
attribution.adgroup = jsonObject.optString("adgroup", null);
|
||||
attribution.creative = jsonObject.optString("creative", null);
|
||||
|
||||
return attribution;
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (other == this) return true;
|
||||
if (other == null) return false;
|
||||
if (getClass() != other.getClass()) return false;
|
||||
AdjustAttribution otherAttribution = (AdjustAttribution) other;
|
||||
|
||||
if (!equalString(trackerToken, otherAttribution.trackerToken)) return false;
|
||||
if (!equalString(trackerName, otherAttribution.trackerName)) return false;
|
||||
if (!equalString(network, otherAttribution.network)) return false;
|
||||
if (!equalString(campaign, otherAttribution.campaign)) return false;
|
||||
if (!equalString(adgroup, otherAttribution.adgroup)) return false;
|
||||
if (!equalString(creative, otherAttribution.creative)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean equalString(String first, String second) {
|
||||
if (first == null || second == null) {
|
||||
return first == null && second == null;
|
||||
}
|
||||
return first.equals(second);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("tt:%s tn:%s net:%s cam:%s adg:%s cre:%s",
|
||||
trackerToken, trackerName, network, campaign, adgroup, creative);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue