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
Consider this Url | |
www.app.net/api/searchtypes/862189/filters?Type=6&SearchText=School | |
Now this is the call | |
@GET("/api/searchtypes/{Id}/filters") | |
Call<FilterResponse> getFilterList( | |
@Path("Id") long customerId, | |
@Query("Type") String responseType, | |
@Query("SearchText") String searchText |
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
override fun onModalOptionSelected(tag: String?, option: Option) { | |
when(option.id){ | |
R.id.action_share -> findNavController().navigate(R.id.action_favoriteFragment_to_shareFragment) | |
R.id.action_edit -> findNavController().navigate(R.id.action_favoriteFragment_to_editFragment) | |
} | |
} |
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
class Timer { | |
fun printDifferenceDateForHours() { | |
val currentTime = Calendar.getInstance().time | |
val endDateDay = "03/02/2020 21:00:00" | |
val format1 = SimpleDateFormat("dd/MM/yyyy hh:mm:ss",Locale.getDefault()) | |
val endDate = format1.parse(endDateDay) | |
//milliseconds |
NewerOlder