mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Merge pull request #3516 from nextcloud/parceler
Use public field for parceler
This commit is contained in:
commit
f6d09ff6c7
2 changed files with 18 additions and 35 deletions
|
@ -38,9 +38,9 @@ import lombok.Setter;
|
|||
@NoArgsConstructor
|
||||
public class Template {
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
private String thumbnailLink;
|
||||
private String type;
|
||||
private String extension;
|
||||
public int id;
|
||||
public String name;
|
||||
public String thumbnailLink;
|
||||
public String type;
|
||||
public String extension;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/**
|
||||
/*
|
||||
* Nextcloud Android client application
|
||||
*
|
||||
* @author Mario Danic
|
||||
|
@ -23,44 +23,27 @@ import com.owncloud.android.lib.resources.files.SearchRemoteOperation;
|
|||
|
||||
import org.parceler.Parcel;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Search event
|
||||
*/
|
||||
@Parcel
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SearchEvent {
|
||||
private String searchQuery;
|
||||
|
||||
private SearchRemoteOperation.SearchType searchType;
|
||||
|
||||
private UnsetType unsetType;
|
||||
public String searchQuery;
|
||||
public SearchRemoteOperation.SearchType searchType;
|
||||
public UnsetType unsetType;
|
||||
|
||||
public enum UnsetType {
|
||||
NO_UNSET,
|
||||
UNSET_DRAWER,
|
||||
UNSET_BOTTOM_NAV_BAR
|
||||
}
|
||||
|
||||
public SearchEvent() {
|
||||
|
||||
}
|
||||
|
||||
public SearchEvent(String searchQuery, SearchRemoteOperation.SearchType searchType, UnsetType unsetType) {
|
||||
|
||||
this.searchQuery = searchQuery;
|
||||
this.searchType = searchType;
|
||||
this.unsetType = unsetType;
|
||||
|
||||
}
|
||||
|
||||
public UnsetType getUnsetType() {
|
||||
return unsetType;
|
||||
}
|
||||
|
||||
public String getSearchQuery() {
|
||||
return searchQuery;
|
||||
}
|
||||
|
||||
public SearchRemoteOperation.SearchType getSearchType() {
|
||||
return searchType;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue