public void Create(string userName) { Untappd = new Untappd(GetUntappdUserName(userName)); InitializeUntappdEvent?.Invoke(Untappd); UpdateUntappdUserNameEvent?.Invoke(Untappd.UserName); ResetСhanges(); }
public void CheckinsRemove() { string filePath = @""; Untappd untappd = FileHelper.OpenFile <Untappd>(filePath); untappd.CheckinsContainer.Checkins.RemoveRange(0, 25); FileHelper.SaveFile(filePath, untappd); }
private void InitializeToCSV(string filePath, string userName) { Untappd = new Untappd(GetUntappdUserName(userName)); using (FileStream fileStream = File.OpenRead(filePath)) CheckinCSVMapper.InitializeCheckinsContainer(Untappd.CheckinsContainer, fileStream); SortDataDescCheckins(); }
public void UpdateUntappdUserName(string untappdUserName) { if (Untappd.UserName.Equals(untappdUserName)) { return; } Untappd.SetUserName(GetUntappdUserName(untappdUserName)); UpdateUntappdUserNameEvent?.Invoke(Untappd.UserName); }
public void CleanUpUntappd() { FilePath = String.Empty; Untappd = new Untappd(String.Empty); CleanUntappdEvent?.Invoke(); }
public UntappdService(ISettingService settingService) { this.settingService = settingService; Untappd = new Untappd(String.Empty); }
public void ResetСhanges() { Untappd.ResetСhanges(); }
public bool IsDirtyUntappd() { return(Untappd.IsСhanges()); }