Save Card Coding

Jetzt loslegen. Gratis!
oder registrieren mit Ihrer E-Mail-Adresse
Save Card Coding von Mind Map: Save Card Coding

1. Coach Assignment

1.1. 9. Updated coach status to busy in card object in card collection

1.1.1. Cards

1.2. 11. Update player card with status, decision, assignedCoach

1.2.1. PlayerCard

2. 1. Get card data

3. Coach Finding procedure

3.1. 2. Filter card coaches that have ‘busy= false’

3.1.1. Cards

3.2. 3. Get coaches data from coach collection

3.2.1. Coaches

3.3. 4. For each coach, get his playercards (in which he is assigned)

3.3.1. PlayerCard All

3.4. 5. Sort coaches according to their workload

3.5. 6. Check user edition package

3.5.1. Edition

3.6. 7. If user edition package = Superior or Diamond, then get coach that have high rating.

3.7. 8. If user edition package not equal to above both packages, then get coach that have less workload

4. ??

4.1. 10. Get player card data having status ‘taken’

5. Informing / Messaging

5.1. Threema Player

5.1.1. 12. Get all players data

5.1.1.1. players

5.1.2. 13. Send threema msgs to all players if they have threemaID

5.1.3. 14. If one or more users dont have threemaID, req for each user to get threema credentials

5.1.4. 15. In each threema req, check threema username get in res from threema req, to ensure the username not matching the username of any other player.

5.1.5. 16. Update each player object with his threema credentials

5.1.5.1. Players

5.2. Threema Coach

5.2.1. 20. Send threema to coach

5.3. Mail Player

5.3.1. 17. Send mail to each player with their threema credential

5.3.2. 18. Send mail to each player for coach information

5.4. Mail Coach

5.4.1. 19. Send mail to coach

5.4.2. 21. If coach have phone no. Send sms to coach

6. Read Collection

7. update Collection