feat: show blocked domains
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.joinmastodon.android.model;
|
||||
|
||||
import org.joinmastodon.android.api.RequiredField;
|
||||
import org.parceler.Parcel;
|
||||
|
||||
@Parcel
|
||||
public class DomainBlock extends BaseModel {
|
||||
@RequiredField
|
||||
public String domain;
|
||||
@RequiredField
|
||||
public String digest;
|
||||
@RequiredField
|
||||
public Severity severity;
|
||||
public String comment;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DomainBlock{" +
|
||||
"domain='" + domain + '\'' +
|
||||
", digest='" + digest + '\'' +
|
||||
", severity='" + severity + '\'' +
|
||||
", comment='" + comment + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.joinmastodon.android.model;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import org.parceler.Parcel;
|
||||
|
||||
public enum Severity {
|
||||
@SerializedName("silence")
|
||||
SILENCE,
|
||||
@SerializedName("suspend")
|
||||
SUSPEND
|
||||
}
|
||||
Reference in New Issue
Block a user