Files
zwift-offline/protobuf/goal.proto
T
2022-03-07 23:44:45 +05:00

23 lines
962 B
Protocol Buffer

syntax = "proto2";
//TODO: uncomment and use f14, rename fields in db
message Goal {
optional uint64 id = 1;
optional uint64 player_id = 2;
optional int64 f3 = 3; //-> enum Sport sport
optional string name = 4; // i.e. "Monthly time goal"
optional int64 type = 5; //-> enum GoalType 0=distance, 1=time
optional int64 periodicity = 6; //-> enum GoalPeriod 0=weekly, 1=monthly
optional float target_distance = 7; //in meters. set to dur for dur goals
optional float target_duration = 8; //in minutes. set to dist for dist goals
optional float actual_distance = 9; //in meters. is also set for dur goals?
optional float actual_duration = 10; //in minutes. is also set for dist goals?
optional uint64 created_on = 11; //in ms since epoch
optional uint64 period_end_date = 12;
optional uint64 f13 = 13; //-> enum GoalStatus 0=active, 1=retired
//optional string f14 = 14; // timezone? (empty)
}
message Goals {
repeated Goal goals = 1;
}