Merge pull request #3516 from nextcloud/parceler

Use public field for parceler
This commit is contained in:
Andy Scherzinger 2019-01-29 22:02:42 +01:00 committed by GitHub
commit f6d09ff6c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 35 deletions

View file

@ -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;
}

View file

@ -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;
}
}