User Tools

Site Tools


coach

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
coach [2018/12/14 20:40]
clubadmin created
coach [2019/02/22 17:18] (current)
Line 3: Line 3:
 Method: Coach/GetTests Method: Coach/GetTests
  
-Get the properties of a member tests.+Get the properties of a member test.
         /// <param name="token"></param>         /// <param name="token"></param>
         /// <param name="memberid"></param>               /// <param name="memberid"></param>      
Line 13: Line 13:
  
 {"MemberId":1,"TestId":2983,"TestTypeId":1,"Weight":75.00,"Length":180.00,"Fat":0.20,"Vo2max":6.00,"InfoString":["","","","",""],"InfoNumber":[0.00,0.00,65.00,5.00,55.00,0.00,0.00,0.00,0.00,0.00]} {"MemberId":1,"TestId":2983,"TestTypeId":1,"Weight":75.00,"Length":180.00,"Fat":0.20,"Vo2max":6.00,"InfoString":["","","","",""],"InfoNumber":[0.00,0.00,65.00,5.00,55.00,0.00,0.00,0.00,0.00,0.00]}
 +
 +
 +===== Coach.AddTest=====
 +
 +Method: Coach/AddTest
 +
 +Adds an new test to a member.
 +
 +        /// <param name="token"></param>
 +        /// <param name="testtypeid"></param>
 +        /// <param name="uid">it should be unique all the time</param>
 +        /// <param name="memberid"></param>
 +        /// <param name="weight"></param>
 +        /// <param name="length"></param> 
 +        /// <param name="fat"></param>     
 +        /// <param name="vo2max"></param>   
 +        /// <param name="empid">id of the employee</param>   
 +        /// <param name="infostring"></param>
 +        /// <param name="infonumber"></param>  
 +
 +
 +Example: https://demo.clubplanner.be/API/Coach/AddTest?token=DEMOTOKEN&testtypeid=1&uid=741852&memberid=2&weight=74.00&length=180.00&fat=0.20&vo2max=6.00&infostring=test&infostring=demo&infonumber=2&infonumber=4
 +
 +Result:
 +
 +{"MemberId":2,"TestId":0,"TestTypeId":1,"Weight":74.00,"Length":180.00,"Fat":0.20,"Vo2max":6.00,"InfoString":["test","demo","","",""],"InfoNumber":[2.0,4.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]}
 +
 +===== Coach.UpdateTest=====
 +
 +Method: Coach/UpdateTest
 +
 +Updates an existing member test.
 +        /// <param name="token"></param>
 +        /// <param name="testid"></param>
 +        /// <param name="weight"></param>
 +        /// <param name="length"></param> 
 +        /// <param name="fat"></param>     
 +        /// <param name="vo2max"></param>    
 +        /// <param name="infostring"></param>
 +        /// <param name="infonumber"></param>  
 +
 +
 +Example: https://demo.clubplanner.be/api/Coach/UpdateTest?token=DEMOTOKEN&testid=2983&weight=74.00&length=180.00&fat=0.20&vo2max=6.00&infostring=test&infostring=demo&infonumber=2&infonumber=4
 +
 +Result:
 +
 +{"MemberId":1,"TestId":2983,"TestTypeId":1,"Weight":74.00,"Length":180.00,"Fat":0.20,"Vo2max":0.20,"InfoString":["test","demo"],"InfoNumber":[2.0,4.0]}
  
coach.1544816409.txt.gz · Last modified: 2018/12/14 21:40 (external edit)