2 min

Feb 2014 changes to make to Kinglet

  • modify any necessary JSON returned by API

Features to Add

Delete Message

  • ability to delete a message sent?
    • unsure about this. will not implement for now.

Approved List completed Feb 2014

  • User A requests to be added to a user B's accepted or approved list in order for User A to message User B. It would then be up to User B to make the same request of User A. One action does not automatically enable the other.
  • actions by User B when receiving the request:
    • accept
    • reject
  • both response types can be changed later
  • a user can send a request to be added to approve list only one time.
  • the response is returned to the requesting user
  • when User A messages User B, if A is not on B's accepted list, return error message with info:
    • telling A to send a request to B to be added to B's approved list
    • or remind A that A already requested to be added to B's approved list, and B rejected the request.

If User A wants to message himself, then no need to make such a request to himself.

Things to do to support the approved list feature:

  • create database table
    • id - auto increment
    • requester_user_id - (user making the request)
    • recipient_user_id - (user receiving the request)
    • status - (p=pending, r=rejected, a=approved)
    • created_date - datetime - (when request made)
    • modified_date - datetime - (when receiving user rejected or approved the requeset)
    • unique(requester_user_id, recipient_user_id)
  • create API commands.
    • will this be added to the "users" section of the API, or should a new section be created called "lists?"
    • request - to be added to a recipient's approved list - GET - /lists/request/mrx - send request to user mrx.
    • reject - the request - GET - /lists/reject/jr - reject request from user jr.
    • approve - the request - GET - /lists/approve/jr - approve the request from user jr.
    • show - the list of requests of requests received so that a user can change the reject/approve function - GET - /lists/requests - requests received

Should I create an action that allows a users to view all requests made? Not right now. Unsure if this needed. A user could simply try to make a new request, and the system will return the appropriate response.

#kinglet - #kinglettodo

From JR's : articles
382 words - 2191 chars - 2 min read
created on
updated on - #
source - versions

Related articles
Kinglet Directory - Dec 03, 2013



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Apr 25, 2024 - 9:30 p.m. EDT