parent
536af42e27
commit
d886693c75
|
@ -53,7 +53,7 @@ public interface MastodonFiltersService {
|
||||||
@Field("expires_at") Date expires_at,
|
@Field("expires_at") Date expires_at,
|
||||||
@Field("filter_action") String filter_action,
|
@Field("filter_action") String filter_action,
|
||||||
@Field("context[]") List<String> context,
|
@Field("context[]") List<String> context,
|
||||||
@Field("keywords_attributes") List<Filter.KeywordsAttributes> keywordsAttributes
|
@Field("keywords_attributes[]") List<Filter.KeywordsAttributes> keywordsAttributes
|
||||||
);
|
);
|
||||||
|
|
||||||
//Edit a filter
|
//Edit a filter
|
||||||
|
@ -66,7 +66,7 @@ public interface MastodonFiltersService {
|
||||||
@Field("expires_at") Date expires_at,
|
@Field("expires_at") Date expires_at,
|
||||||
@Field("filter_action") String filter_action,
|
@Field("filter_action") String filter_action,
|
||||||
@Field("context[]") List<String> context,
|
@Field("context[]") List<String> context,
|
||||||
@Field("keywords_attributes") List<Filter.KeywordsAttributes> keywordsAttributes
|
@Field("keywords_attributes[]") List<Filter.KeywordsAttributes> keywordsAttributes
|
||||||
);
|
);
|
||||||
|
|
||||||
//Remove a filter
|
//Remove a filter
|
||||||
|
|
|
@ -59,14 +59,14 @@ public class Filter implements Serializable {
|
||||||
public String filter_action;
|
public String filter_action;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Keyword {
|
public static class Keyword implements Serializable {
|
||||||
@SerializedName("keyword")
|
@SerializedName("keyword")
|
||||||
public String keyword;
|
public String keyword;
|
||||||
@SerializedName("whole_word")
|
@SerializedName("whole_word")
|
||||||
public boolean whole_word;
|
public boolean whole_word;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class KeywordsAttributes {
|
public static class KeywordsAttributes implements Serializable {
|
||||||
@SerializedName("id")
|
@SerializedName("id")
|
||||||
public String id;
|
public String id;
|
||||||
@SerializedName("keyword")
|
@SerializedName("keyword")
|
||||||
|
|
Loading…
Reference in New Issue