nethergrim/vk_client

Sending Messages

nethergrim opened this issue · 3 comments

Please implement messages sending.

  • send message if user has internet connection
  • add message to the database, mark it as un-synced
  • if no internet connection just add message to the database
  • add connection state receiver, and check database every time connection appears.
  • after successful web request mark message as synced
  • refresh ChatFragment every 5 seconds (after sending a message)
  • Execute get messages web request after sending a message (with limit 5)
  • Display unsent messages as half-transparent
  • Handle errors in ChatFragment
  • Ensure that every time we save a Message into the database, that Conversation object will be updated accordingly.

https://new.vk.com/dev/messages.send