GithubHelp home page GithubHelp logo

chatbot's Introduction

Version 1 - Basic

Version 2 - Persist on Restart

Version 3 - Retry on Internet

Views

  • Singular Activity - ChatActivity (thin Activity only responsible for UI updates).
  • RecyclerView Adapter - ChatAdapter
  • RecyclerView Items - ChatViewHolder

Data Model

  • Simple Chat data POJO - ChatMessageContainer, ChatMessageData
  • Single conversation POJO - ChatThread

Controllers

  • NetworkController - with static methods of POST/GET Volley requests
  • Router - Currently simple but can be extended for more functionality
  • ChatActivityController - acts as a presenter in the MVP pattern. Can be implemented as an actual Presenter using Injection later.

Persistence Mechanism

  • SharedPreferencesController - Singleton
  • Assumption: Data stays simple with 2,3 variables only
  • Extended message functionality like forward, delete, reply etc. are not required in the assignment
  • Extended data functionality like searching, sorting are not required in the assignment

Libraries Used

  • Butterknife
  • Volley
  • CircularImageView

Possible Sources of Bugs

  • JSON parsing - not accounting for 'optional' variables
  • Unit testing - an actual MVP pattern would have made modules easier to unit test
  • Have not yet implemented going-away of keyboard on scrolling the RecylerView

chatbot's People

Contributors

mallikakhullar avatar

Stargazers

Varsha Sachan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.