Пример #1
0
        void SetupServicesAsDefault()
        {
            PolarPersonalTrainer = new UserPasswordSettings
            {
                UserName = "******",
                Password = "******"
            };

            Strava = new OAuth2Settings
            {
                AccessToken = "unknown"
            };

            Runkeeper = new OAuth2Settings
            {
                AccessToken = "unknown"
            };
        }
Пример #2
0
        void SetupServicesFromJson(JObject settings)
        {
            PolarPersonalTrainer = new UserPasswordSettings
            {
                UserName = (string)settings["PolarPersonalTrainer"]["UserName"],
                Password = (string)settings["PolarPersonalTrainer"]["Password"]
            };

            Strava = new OAuth2Settings
            {
                AccessToken = (string)settings["Strava"]["AccessToken"]
            };

            Runkeeper = new OAuth2Settings
            {
                AccessToken = (string)settings["HealthGraph"]["AccessToken"]
            };
        }