createCourseMesg static method
Implementation
static Mesg createCourseMesg() {
int fieldIndex, subfieldIndex;
Mesg newMesg = Mesg("Course", MesgNum.course);
fieldIndex = 0;
newMesg.setField(
Field("Sport", 4, 0, 1.0, 0.0, "", false, ProfileType.sport),
);
fieldIndex++;
newMesg.setField(
Field("Name", 5, 7, 1.0, 0.0, "", false, ProfileType.string),
);
fieldIndex++;
newMesg.setField(
Field(
"Capabilities",
6,
140,
1.0,
0.0,
"",
false,
ProfileType.courseCapabilities,
),
);
fieldIndex++;
newMesg.setField(
Field("SubSport", 7, 0, 1.0, 0.0, "", false, ProfileType.subSport),
);
fieldIndex++;
return newMesg;
}