Post

1 follower Follow
0
Avatar

Stopping a stopwatch with api (c#)

I manged to kick of a users Stopwatch using the API. (http://pastebin.com/s33sKPsE)

I am a bit lost in how to stop it though. Looks like the state field can only be set to pause or running. Whats the best way to do this though? thanks!! 

stewart dalton Answered

Please sign in to leave a comment.

2 comments

0
Avatar

So i managed to grab my stopwatches and make objects out of them. Then i was able to send a message to pause them.(only states are Paused and Running)

(http://pastebin.com/WJs9T2T4) Just wondering what i do from here? Do i need to grab this stopped stopwatched data and submit a time sheet and then close it of before starting another?

Stew

stewart dalton 0 votes
Comment actions Permalink
0
Avatar

Hi Stewart. I believe you're right.

  1. Use the Organization elapsed time field to get the time elapsed.
  2. Feed the timesheet.
  3. Delete the stopwatch.

Hope this helps,

Ophir

Ophir Kenig 0 votes
Comment actions Permalink