blob: 1a1539b6a3d4442a0b5a273b94d6e18635f3dbc4 [file] [log] [blame]
Julia Reynoldsf7748e42015-09-29 08:15:43 -04001package com.android.settings.notification;
2
3import android.content.ComponentName;
4import android.net.Uri;
5
6public class ZenRuleInfo {
Julia Reynolds83f35ba2016-04-13 10:02:18 -04007 @Override
8 public boolean equals(Object o) {
9 if (this == o) return true;
10 if (o == null || getClass() != o.getClass()) return false;
11
12 ZenRuleInfo that = (ZenRuleInfo) o;
13
14 if (isSystem != that.isSystem) return false;
15 if (ruleInstanceLimit != that.ruleInstanceLimit) return false;
16 if (packageName != null ? !packageName.equals(that.packageName) : that.packageName != null)
17 return false;
18 if (title != null ? !title.equals(that.title) : that.title != null) return false;
19 if (settingsAction != null ? !settingsAction.equals(
20 that.settingsAction) : that.settingsAction != null) return false;
21 if (configurationActivity != null ? !configurationActivity.equals(
22 that.configurationActivity) : that.configurationActivity != null) return false;
23 if (defaultConditionId != null ? !defaultConditionId.equals(
24 that.defaultConditionId) : that.defaultConditionId != null) return false;
25 if (serviceComponent != null ? !serviceComponent.equals(
26 that.serviceComponent) : that.serviceComponent != null) return false;
Julia Reynoldsec84a932018-12-14 09:27:53 -050027 if (id != null ? !id.equals(that.id) : that.id != null)
28 return false;
Julia Reynolds83f35ba2016-04-13 10:02:18 -040029 return packageLabel != null ? packageLabel.equals(
30 that.packageLabel) : that.packageLabel == null;
31
32 }
33
Julia Reynoldsf7748e42015-09-29 08:15:43 -040034 public String packageName;
35 public String title;
36 public String settingsAction;
37 public ComponentName configurationActivity;
38 public Uri defaultConditionId;
39 public ComponentName serviceComponent;
40 public boolean isSystem;
Julia Reynolds8fe6efc2015-10-14 17:19:35 -040041 public CharSequence packageLabel;
Julia Reynolds0cca0f52016-01-15 10:11:16 -050042 public int ruleInstanceLimit = -1;
Julia Reynoldsec84a932018-12-14 09:27:53 -050043 public String id;
Julia Reynoldsf7748e42015-09-29 08:15:43 -040044}