mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +00:00
25 lines
574 B
Java
25 lines
574 B
Java
|
package org.thoughtcrime.securesms;
|
||
|
|
||
|
public class TransportOption {
|
||
|
public int drawable;
|
||
|
public String text;
|
||
|
public String key;
|
||
|
public String composeHint;
|
||
|
|
||
|
public TransportOption(String key, int drawable, String text, String composeHint) {
|
||
|
this.key = key;
|
||
|
this.drawable = drawable;
|
||
|
this.text = text;
|
||
|
this.composeHint = composeHint;
|
||
|
}
|
||
|
|
||
|
public boolean isForcedPlaintext() {
|
||
|
return key.equals("insecure_sms");
|
||
|
}
|
||
|
|
||
|
public boolean isForcedSms() {
|
||
|
return key.equals("insecure_sms") || key.equals("secure_sms");
|
||
|
}
|
||
|
}
|
||
|
|