Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add "total time today" properties and updated events #7

Conversation

JasonWei512
Copy link
Contributor

@JasonWei512 JasonWei512 commented May 11, 2023

Add these members to WakaTime class:

/// <summary>
/// A string like "3 hrs 42 mins".
/// </summary>
public string TotalTimeToday { get; }

/// <summary>
/// A string like "3 hrs 4 mins Coding, 20 mins Building, 18 mins Debugging".
/// </summary>
public string TotalTimeTodayDetailed { get; }

/// <summary>
/// Fired when <see cref="TotalTimeToday"/> and <see cref="TotalTimeTodayDetailed"/> are updated.
/// </summary>
public event EventHandler<TotalTimeTodayUpdatedEventArgs> TotalTimeTodayUpdated;

This is for wakatime/visualstudio-wakatime#144.

@JasonWei512 JasonWei512 force-pushed the feature/today-coding-time-property-develop branch from 66c7652 to 2f4244a Compare May 12, 2023 11:32
@gandarez gandarez merged commit a05b341 into wakatime:master May 15, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants