All Downloads are FREE. Search and download functionalities are using the official Maven repository.

t.21.120.2.source-code.Sport Maven / Gradle / Ivy

There is a newer version: 21.141.0
Show newest version
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2023 Garmin International, Inc.
// Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
// may not use this file except in compliance with the Flexible and Interoperable Data
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING****  This file is auto-generated!  Do NOT edit this file.
// Profile Version = 21.120Release
// Tag = production/release/21.120.00-0-g2d77811
/////////////////////////////////////////////////////////////////////////////////////////////


package com.garmin.fit;


public enum Sport  {
    GENERIC((short)0),
    RUNNING((short)1),
    CYCLING((short)2),
    TRANSITION((short)3),
    FITNESS_EQUIPMENT((short)4),
    SWIMMING((short)5),
    BASKETBALL((short)6),
    SOCCER((short)7),
    TENNIS((short)8),
    AMERICAN_FOOTBALL((short)9),
    TRAINING((short)10),
    WALKING((short)11),
    CROSS_COUNTRY_SKIING((short)12),
    ALPINE_SKIING((short)13),
    SNOWBOARDING((short)14),
    ROWING((short)15),
    MOUNTAINEERING((short)16),
    HIKING((short)17),
    MULTISPORT((short)18),
    PADDLING((short)19),
    FLYING((short)20),
    E_BIKING((short)21),
    MOTORCYCLING((short)22),
    BOATING((short)23),
    DRIVING((short)24),
    GOLF((short)25),
    HANG_GLIDING((short)26),
    HORSEBACK_RIDING((short)27),
    HUNTING((short)28),
    FISHING((short)29),
    INLINE_SKATING((short)30),
    ROCK_CLIMBING((short)31),
    SAILING((short)32),
    ICE_SKATING((short)33),
    SKY_DIVING((short)34),
    SNOWSHOEING((short)35),
    SNOWMOBILING((short)36),
    STAND_UP_PADDLEBOARDING((short)37),
    SURFING((short)38),
    WAKEBOARDING((short)39),
    WATER_SKIING((short)40),
    KAYAKING((short)41),
    RAFTING((short)42),
    WINDSURFING((short)43),
    KITESURFING((short)44),
    TACTICAL((short)45),
    JUMPMASTER((short)46),
    BOXING((short)47),
    FLOOR_CLIMBING((short)48),
    DIVING((short)53),
    HIIT((short)62),
    RACKET((short)64),
    WATER_TUBING((short)76),
    WAKESURFING((short)77),
    ALL((short)254),
    INVALID((short)255);

    protected short value;

    private Sport(short value) {
        this.value = value;
    }

    public static Sport getByValue(final Short value) {
        for (final Sport type : Sport.values()) {
            if (value == type.value)
                return type;
        }

        return Sport.INVALID;
    }

    /**
     * Retrieves the String Representation of the Value
     * @param value The enum constant
     * @return The name of this enum constant
     */
    public static String getStringFromValue( Sport value ) {
        return value.name();
    }

    public short getValue() {
        return value;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy