Exemplo n.º 1
0
 public void Create(string userName)
 {
     Untappd = new Untappd(GetUntappdUserName(userName));
     InitializeUntappdEvent?.Invoke(Untappd);
     UpdateUntappdUserNameEvent?.Invoke(Untappd.UserName);
     ResetСhanges();
 }
Exemplo n.º 2
0
        public void CheckinsRemove()
        {
            string  filePath = @"";
            Untappd untappd  = FileHelper.OpenFile <Untappd>(filePath);

            untappd.CheckinsContainer.Checkins.RemoveRange(0, 25);
            FileHelper.SaveFile(filePath, untappd);
        }
Exemplo n.º 3
0
        private void InitializeToCSV(string filePath, string userName)
        {
            Untappd = new Untappd(GetUntappdUserName(userName));
            using (FileStream fileStream = File.OpenRead(filePath))
                CheckinCSVMapper.InitializeCheckinsContainer(Untappd.CheckinsContainer, fileStream);

            SortDataDescCheckins();
        }
Exemplo n.º 4
0
        public void UpdateUntappdUserName(string untappdUserName)
        {
            if (Untappd.UserName.Equals(untappdUserName))
            {
                return;
            }

            Untappd.SetUserName(GetUntappdUserName(untappdUserName));
            UpdateUntappdUserNameEvent?.Invoke(Untappd.UserName);
        }
Exemplo n.º 5
0
 public void CleanUpUntappd()
 {
     FilePath = String.Empty;
     Untappd  = new Untappd(String.Empty);
     CleanUntappdEvent?.Invoke();
 }
Exemplo n.º 6
0
 public UntappdService(ISettingService settingService)
 {
     this.settingService = settingService;
     Untappd             = new Untappd(String.Empty);
 }
Exemplo n.º 7
0
 public void ResetСhanges()
 {
     Untappd.ResetСhanges();
 }
Exemplo n.º 8
0
 public bool IsDirtyUntappd()
 {
     return(Untappd.IsСhanges());
 }