public OverlayProgressBarItemModel(string htmlText, OverlayProgressBarItemTypeEnum progressBarType, string currentAmountCustom, string goalAmountCustom, int resetAfterDays, string progressColor, string backgroundColor, string textColor, string textFont, int width, int height, CustomCommandModel goalReachedCommand) : this(htmlText, progressBarType, resetAfterDays, progressColor, backgroundColor, textColor, textFont, width, height, goalReachedCommand) { this.CurrentAmountCustom = currentAmountCustom; this.GoalAmountCustom = goalAmountCustom; }
public OverlayProgressBarItemModel(string htmlText, OverlayProgressBarItemTypeEnum progressBarType, double startAmount, double goalAmount, int resetAfterDays, string progressColor, string backgroundColor, string textColor, string textFont, int width, int height, CustomCommand goalReachedCommand) : this(htmlText, progressBarType, resetAfterDays, progressColor, backgroundColor, textColor, textFont, width, height, goalReachedCommand) { this.StartAmount = this.CurrentAmount = startAmount; this.GoalAmount = goalAmount; }
public OverlayProgressBarItemModel(string htmlText, OverlayProgressBarItemTypeEnum progressBarType, int resetAfterDays, string progressColor, string backgroundColor, string textColor, string textFont, int width, int height, CustomCommandModel goalReachedCommand) : base(OverlayItemModelTypeEnum.ProgressBar, htmlText) { this.ProgressBarType = progressBarType; this.ResetAfterDays = resetAfterDays; this.ProgressColor = progressColor; this.BackgroundColor = backgroundColor; this.TextColor = textColor; this.TextFont = textFont; this.Width = width; this.Height = height; this.ProgressGoalReachedCommand = goalReachedCommand; this.LastReset = DateTimeOffset.Now; }
public OverlayProgressBarItemViewModel(OverlayProgressBarItemModel item) : this() { this.progressBarType = item.ProgressBarType; if (!string.IsNullOrEmpty(item.CurrentAmountCustom)) { this.StartingAmount = item.CurrentAmountCustom; } else { this.StartingAmount = item.StartAmount.ToString(); } if (this.progressBarType == OverlayProgressBarItemTypeEnum.Followers && item.StartAmount == 0) { this.TotalFollowers = true; } else { this.TotalFollowers = false; } if (!string.IsNullOrEmpty(item.GoalAmountCustom)) { this.GoalAmount = item.GoalAmountCustom; } else { this.GoalAmount = item.GoalAmount.ToString(); } this.resetAfterDays = item.ResetAfterDays; this.width = item.Width; this.height = item.Height; this.Font = item.TextFont; this.TextColor = ColorSchemes.GetColorName(item.TextColor); this.ProgressColor = ColorSchemes.GetColorName(item.ProgressColor); this.BackgroundColor = ColorSchemes.GetColorName(item.BackgroundColor); this.OnGoalReachedCommand = item.ProgressGoalReachedCommand; this.HTML = item.HTML; }