-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aec6b1
commit e08edcc
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Marks the JVM backing field of the annotated property as transient, | ||
* meaning that it is not part of the default serialized form of the object. | ||
* | ||
* When to use? | ||
* For example it can be used for request classes. | ||
* Transient values will be ignored on your POST request. | ||
*/ | ||
|
||
@Parcelize | ||
@JsonClass(generateAdapter = true) | ||
data class FilterRequest( | ||
@Json(name = "color") | ||
var color: String? = null, | ||
@Json(name = "sort") | ||
var sort: String? = null, | ||
@Json(name = "currency") | ||
val currency: String? = null, | ||
@Json(name = "lang") | ||
val lang: String? = null, | ||
@Transient // Ignored when converted to Json value. | ||
var selectedStartDate: LocalDate? = null, | ||
@Transient // Ignored when converted to Json value. | ||
var selectedEndDate: LocalDate? = null | ||
) : Parcelable |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.