Skip to content

Conversation

@liveHarshit
Copy link
Member

@liveHarshit liveHarshit commented Jun 23, 2019

Fixes #1984

@liveHarshit liveHarshit changed the title [WIP] feat: Update notification feat: Update read status and apply filter for notifications Jun 28, 2019
@auto-label auto-label bot added the feature label Jun 28, 2019
@liveHarshit
Copy link
Member Author

@liveHarshit liveHarshit requested a review from anhanh11001 June 28, 2019 09:13
@liveHarshit liveHarshit force-pushed the 1984 branch 2 times, most recently from 3b460c6 to d3c88e8 Compare June 28, 2019 12:39
val message: String? = null,
val receivedAt: String? = null,
val isRead: Boolean? = null,
@JsonRawValue var isRead: Boolean = false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect solution

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please suggest the solution because KebabCaseStrategy is skipping the is word

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JsonProperty

I have tried it. Not working -

@JsonProperty("is-read")
    var isRead: Boolean = false,

Still sending read

Copy link
Member

@iamareebjamal iamareebjamal Jun 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@get:JsonProperty("is_something")
@param:JsonProperty("is_something")

https://stackoverflow.com/a/55100741/3309666

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

param not working, @get:JsonProperty is working fine, Updated 👍

@nikit19 nikit19 merged commit 5548e3f into fossasia:development Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update notification section

3 participants