Exemplo n.º 1
0
        void CreateSomeXMLFitnesses()
        {
            XMLMyFitnessLoader loader = new XMLMyFitnessLoader(new Login("****", "****"));

            int Days = 14;

            foreach (var MyFitnessStat in Enum.GetValues(typeof(MyFitnessStatType)).Cast<MyFitnessStatType>())
            {
                loader.GetValue(MyFitnessStat, MyFitnesses.Values, Days);
            }
        }
 public MyFitnessPalXMLWrapper(string ConfigFileName, int Days, IGraphWrapper graphWrapper)
 {
     config = new LoadConfig(ConfigFileName);
     loginDetails = (LoginDetails)config.GetContents(typeof(LoginDetails));
     cookieDetails = (CookieDetails)config.BinaryDeserialize(typeof(CookieDetails));
     login = new Login(loginDetails, cookieDetails);
     Loader = new XMLMyFitnessLoader(login);
     MyFitnesses = new MyFitnessList();
     this.graphWrapper = graphWrapper;
     this.Days = Days;
 }