Git Product home page Git Product logo

Comments (2)

btdubs avatar btdubs commented on July 26, 2024

When you login/register do it through firebase (implemented) and then pull data from users//...

User needs hasClaimedVacancy integer attribute.

Shelter detail activity needs to have new button added that you can type in number and then submit to claim vacancies. Check that there are vacancies available or the user hasn't claimed too many or already has some claimed (claimed > 0). Alert him of failure by toast. If the user has claimed vacancies, he can press a button on the main activity to unclaim them.
Update the shelter to have a totalcapacity and vacancy attributes. On reservation, update vacancy and store that to shelters//vacancy

Use csv script to send data to firebase in the first place

EDIT: PLEASE JAVADOC ANY ADDED METHODS

from buzzshelter.

btdubs avatar btdubs commented on July 26, 2024

Needs to have a user that knows his # of vacancies claimed and at which shelter.
User needs to ask shelter to claim a vacancy. Handle success or failure.
The shelter needs to be able to check if the vacancies you want to claim are allowed (i.e. enough space, not trying to claim too many) and report back to user if it was allowed

In shelter detailed view, there needs to be some input of a number and some button for claiming vacancy. Here the user object will request vacancy claiming. Toast if success or failure.

In mainActivity, there needs to be a button the clear vacancies. This will take the current user object and tell him to clear his vacancies. The user object should have method that clears his shelter and number of vacancies claimed. Toast the user on success.

from buzzshelter.

Related Issues (20)

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.