Skip to content

[NEW] Add subscriptions.unread endpoint #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 21, 2018

Conversation

shubhsherl
Copy link
Contributor

This PR adds a function which is required in Rocket.Chat.Android#1929

@CLAassistant
Copy link

CLAassistant commented Dec 19, 2018

CLA assistant check
All committers have signed the CLA.

@@ -6,6 +6,9 @@ import se.ansman.kotshi.JsonSerializable
@JsonSerializable
data class ChatRoomPayload(@Json(name = "rid") val roomId: String)

@JsonSerializable
data class ChatRoomUnreadPayload(@Json(name = "roomId") val roomId: String)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the property here is declared like the expected JSON key name you don't need to use this annotation here.

@@ -72,6 +72,32 @@ class ChatRoomTest {
}
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for adding the tests! 💯

@philipbrito philipbrito changed the title add subscriptions.unread [NEW] Add subscriptions.unread endpoint Dec 21, 2018
@philipbrito
Copy link
Contributor

@shubhsherl Could you assign our CLA please?

Copy link
Contributor

@philipbrito philipbrito left a comment

Choose a reason for hiding this comment

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

Thanks!

@philipbrito philipbrito merged commit bea2945 into RocketChat:develop Dec 21, 2018
@shubhsherl shubhsherl deleted the n_1055 branch December 24, 2018 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants