Skip to content
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

How to log user mess attendance and view mess details #63

Closed
adityabisht02 opened this issue Nov 11, 2022 · 3 comments
Closed

How to log user mess attendance and view mess details #63

adityabisht02 opened this issue Nov 11, 2022 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@adityabisht02
Copy link
Owner

  1. For the mess details I need to return the menu for the day and the messcodes for the particular user.
  2. For the mess attendance I need to log the attendance of the user who enters the code on the admin device.

Possible ways of achieving this:

  1. I need to use the user id and not the user name for this so that duplicacy in names can be avoided.
  2. I need a way to have access to the id of the current user at all times.
@adityabisht02 adityabisht02 added help wanted Extra attention is needed question Further information is requested labels Nov 11, 2022
@adityabisht02
Copy link
Owner Author

Using shared preferences in my app to store the name and id of the user could be a way to achieve this.

@adityabisht02
Copy link
Owner Author

I have stored the userid in local storage of the android device. I am thinking I should design the messcodes according to the id. What I am thinking of doing is I'll not store the mess attendance anywhere, instead I'll just display a positive response on the admin side that the user exists and can have the meal.

@adityabisht02
Copy link
Owner Author

In the future I can find a better way of managing mess attendance on the basis of only messcode with separate messcodes for breakfast, lunch , dinner and separate attendance for breakfast , lunch and dinner..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant