blonsky95 / DigiCoachAndroid

0 stars 0 forks source link

1.0.8 sending day programmes #61

Closed blonsky95 closed 4 years ago

blonsky95 commented 4 years ago

User sends set of days, all exercises contained are to be imported, if you already have one of the exercises you would have to manually swap them

blonsky95 commented 4 years ago

First thing I'm doing is changing colour of days where results are pending in MonthViewer

blonsky95 commented 4 years ago

UI wise all done, now in DayViewModel there is a function that gets called with the username to whom its meant to be sent + an arraylist with days.

Get the days from the dayids, just send alldays and the arraylist of ids and let the data view model sort the logic out.

Think how to implement this in database and how user will import them - how this interacts with the already working exercise import

blonsky95 commented 4 years ago

Everything working great but blocker is:

Importing exercises when importing days, some id or check to see if user has them is needed, if I send 5 days with 3 exercises each it will import the exercise 5 times, so instead, exercises are going to have some form of id! THINK THIS!

I will come back to this ticket once I figured that out, so I can import the exercises that come along with the day.

blonsky95 commented 4 years ago

SHITS WORKING!

little things when switching/going back from adding training to calendar, a day remains selected, clear calendar selections, when you go to share it starts with one selected.

more that i cant remember

blonsky95 commented 4 years ago

about the days, when you receive a day it goes over all the exercises that contains them, and at the same time generates another array of exes called modExes, in this array it adds the importingDay exercise i if it is new to the user, else, it will add the existing (same md5) exercise, the one he already has, it then switches the importingDay exercises for modExes and updates (or inserts if new) the day.