mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
59 lines
1.9 KiB
Java
59 lines
1.9 KiB
Java
package androidx.work;
|
|
|
|
import android.app.Notification;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class ForegroundInfo {
|
|
private final int mForegroundServiceType;
|
|
private final Notification mNotification;
|
|
private final int mNotificationId;
|
|
|
|
public int getForegroundServiceType() {
|
|
return this.mForegroundServiceType;
|
|
}
|
|
|
|
public Notification getNotification() {
|
|
return this.mNotification;
|
|
}
|
|
|
|
public int getNotificationId() {
|
|
return this.mNotificationId;
|
|
}
|
|
|
|
public ForegroundInfo(int notificationId, Notification notification) {
|
|
this(notificationId, notification, 0);
|
|
}
|
|
|
|
public ForegroundInfo(int notificationId, Notification notification, int foregroundServiceType) {
|
|
this.mNotificationId = notificationId;
|
|
this.mNotification = notification;
|
|
this.mForegroundServiceType = foregroundServiceType;
|
|
}
|
|
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
ForegroundInfo foregroundInfo = (ForegroundInfo) o;
|
|
if (this.mNotificationId == foregroundInfo.mNotificationId && this.mForegroundServiceType == foregroundInfo.mForegroundServiceType) {
|
|
return this.mNotification.equals(foregroundInfo.mNotification);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (((this.mNotificationId * 31) + this.mForegroundServiceType) * 31) + this.mNotification.hashCode();
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("ForegroundInfo{mNotificationId=");
|
|
sb.append(this.mNotificationId);
|
|
sb.append(", mForegroundServiceType=").append(this.mForegroundServiceType);
|
|
sb.append(", mNotification=").append(this.mNotification);
|
|
sb.append('}');
|
|
return sb.toString();
|
|
}
|
|
}
|