Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Weight to athlete detail
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmach committed May 20, 2015
1 parent c0604f0 commit 06a5f92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions athletes.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type AthleteDetailed struct {
DatePreference string `json:"date_preference"`
MeasurementPreference string `json:"measurement_preference"`
FTP int `json:"ftp"`
Weight float64 `json:"weight"` // kilograms
Clubs []*ClubSummary `json:"clubs"`
Bikes []*GearSummary `json:"bikes"`
Shoes []*GearSummary `json:"shoes"`
Expand Down
2 changes: 1 addition & 1 deletion cassettes/current_athlete_get.body
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"id":227615,"resource_state":3,"firstname":"John","lastname":"Applestrava","profile_medium":"http://dgalywyr863hv.cloudfront.net/pictures/athletes/227615/41555/3/medium.jpg","profile":"http://dgalywyr863hv.cloudfront.net/pictures/athletes/227615/41555/3/large.jpg","city":"San Francisco","state":"CA","country":"United States","sex":"M","friend":null,"follower":null,"premium":true,"created_at":"2012-01-18T18:20:37Z","updated_at":"2014-01-21T06:23:32Z","follower_count":1,"friend_count":35,"mutual_friend_count":0,"date_preference":"%m/%d/%Y","measurement_preference":"feet","email":"[email protected]","ftp":null,"clubs":[{"id":45255,"resource_state":2,"name":"Test Club","profile_medium":"avatar/club/medium.png","profile":"avatar/club/large.png"}],"bikes":[{"id":"b77076","primary":false,"name":"burrito burner","resource_state":2,"distance":536292.3}],"shoes":[{"id":"g5697","primary":true,"name":"ASICS Kayano","resource_state":2,"distance":17224.6}]}
{"id":227615,"resource_state":3,"firstname":"John","lastname":"Applestrava","profile_medium":"http://dgalywyr863hv.cloudfront.net/pictures/athletes/227615/41555/3/medium.jpg","profile":"http://dgalywyr863hv.cloudfront.net/pictures/athletes/227615/41555/3/large.jpg","city":"San Francisco","state":"CA","country":"United States","sex":"M","friend":null,"follower":null,"premium":true,"created_at":"2012-01-18T18:20:37Z","updated_at":"2014-01-21T06:23:32Z","follower_count":1,"friend_count":35,"mutual_friend_count":0,"date_preference":"%m/%d/%Y","measurement_preference":"feet","email":"[email protected]","ftp":200,"weight":70.1,"clubs":[{"id":45255,"resource_state":2,"name":"Test Club","profile_medium":"avatar/club/medium.png","profile":"avatar/club/large.png"}],"bikes":[{"id":"b77076","primary":false,"name":"burrito burner","resource_state":2,"distance":536292.3}],"shoes":[{"id":"g5697","primary":true,"name":"ASICS Kayano","resource_state":2,"distance":17224.6}]}
2 changes: 2 additions & 0 deletions current_athlete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func TestCurrentAthleteGet(t *testing.T) {
expected.MutualFriendCount = 0
expected.DatePreference = "%m/%d/%Y"
expected.MeasurementPreference = "feet"
expected.FTP = 200
expected.Weight = 70.1
expected.Email = "[email protected]"

expected.Clubs = make([]*ClubSummary, 1)
Expand Down

0 comments on commit 06a5f92

Please sign in to comment.