2016-02-05 16:10:33 -08:00
|
|
|
package org.thoughtcrime.securesms.util.dualsim;
|
|
|
|
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
|
|
|
public class SubscriptionInfoCompat {
|
|
|
|
|
|
|
|
private final int subscriptionId;
|
2017-05-08 15:32:59 -07:00
|
|
|
private final int mcc;
|
|
|
|
private final int mnc;
|
2016-02-05 16:10:33 -08:00
|
|
|
private final @Nullable CharSequence displayName;
|
|
|
|
|
2017-05-08 15:32:59 -07:00
|
|
|
public SubscriptionInfoCompat(int subscriptionId, @Nullable CharSequence displayName, int mcc, int mnc) {
|
2016-02-05 16:10:33 -08:00
|
|
|
this.subscriptionId = subscriptionId;
|
|
|
|
this.displayName = displayName;
|
2017-05-08 15:32:59 -07:00
|
|
|
this.mcc = mcc;
|
|
|
|
this.mnc = mnc;
|
2016-02-05 16:10:33 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
public @NonNull CharSequence getDisplayName() {
|
|
|
|
return displayName != null ? displayName : "";
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getSubscriptionId() {
|
|
|
|
return subscriptionId;
|
|
|
|
}
|
2017-05-08 15:32:59 -07:00
|
|
|
|
|
|
|
public int getMnc() {
|
|
|
|
return mnc;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getMcc() {
|
|
|
|
return mcc;
|
|
|
|
}
|
2016-02-05 16:10:33 -08:00
|
|
|
}
|