- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
package com.firemonkeys.cloudcellapi;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Vector;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class SerialisedNotificationInfo implements Serializable {
|
|
static final boolean s_bLog = false;
|
|
int nVersion = 2;
|
|
private Vector<String> m_vsNotifications = new Vector<>();
|
|
private boolean m_bNotificationsAllowed = true;
|
|
|
|
public boolean AreNotificationsAllowed() {
|
|
return this.m_bNotificationsAllowed;
|
|
}
|
|
|
|
public void LOG(String str) {
|
|
}
|
|
|
|
public void SetAreNotificationsAllowed(boolean z) {
|
|
this.m_bNotificationsAllowed = z;
|
|
}
|
|
|
|
public void Print(String str) {
|
|
LOG(str);
|
|
LOG("Notification count = " + this.m_vsNotifications);
|
|
for (int i = 0; i < this.m_vsNotifications.size(); i++) {
|
|
LOG("Notification (" + i + ") = " + this.m_vsNotifications.get(i));
|
|
}
|
|
LOG("-----");
|
|
}
|
|
|
|
public final int GetNotificationCount() {
|
|
LOG("Notification size = " + this.m_vsNotifications.size());
|
|
return this.m_vsNotifications.size();
|
|
}
|
|
|
|
public final String GetNotificationString(int i) throws Exception {
|
|
if (i >= 0 && i < this.m_vsNotifications.size()) {
|
|
LOG("Notification at index (" + i + ") = " + this.m_vsNotifications.get(i));
|
|
return this.m_vsNotifications.get(i);
|
|
}
|
|
throw new Exception("Trying to get a notification form an invalid index!");
|
|
}
|
|
|
|
public void AddNotification(String str) {
|
|
LOG("Add notification to the vector (" + str + ")");
|
|
this.m_vsNotifications.add(str);
|
|
}
|
|
|
|
public void ClearAll() {
|
|
LOG("Clear all notifications from vector");
|
|
this.m_vsNotifications.clear();
|
|
}
|
|
}
|