{"action":"created","issue":{"url":"https://api.github.com/repos/dvor/objcTox/issues/32","labels_url":"https://api.github.com/repos/dvor/objcTox/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/dvor/objcTox/issues/32/comments","events_url":"https://api.github.com/repos/dvor/objcTox/issues/32/events","html_url":"https://github.com/dvor/objcTox/pull/32","id":86831860,"number":32,"title":"Revamp of OCTCall and start implementation of OCTToxAV into Submanager","user":{"login":"Chuongv","id":5170710,"avatar_url":"https://avatars.githubusercontent.com/u/5170710?v=3","gravatar_id":"","url":"https://api.github.com/users/Chuongv","html_url":"https://github.com/Chuongv","followers_url":"https://api.github.com/users/Chuongv/followers","following_url":"https://api.github.com/users/Chuongv/following{/other_user}","gists_url":"https://api.github.com/users/Chuongv/gists{/gist_id}","starred_url":"https://api.github.com/users/Chuongv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chuongv/subscriptions","organizations_url":"https://api.github.com/users/Chuongv/orgs","repos_url":"https://api.github.com/users/Chuongv/repos","events_url":"https://api.github.com/users/Chuongv/events{/privacy}","received_events_url":"https://api.github.com/users/Chuongv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T04:20:45Z","updated_at":"2015-06-10T15:47:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dvor/objcTox/pulls/32","html_url":"https://github.com/dvor/objcTox/pull/32","diff_url":"https://github.com/dvor/objcTox/pull/32.diff","patch_url":"https://github.com/dvor/objcTox/pull/32.patch"},"body":"Halfway through I realized that we could implement `OCTSubmanagerCalls` without the use of `OCTDBCall`. What's important however, is that we need to capture the call duration through `OCTMessageAbstract`, which hasn't been implemented yet.\r\n\r\nLet me know what you think..If the above sounds good, I can start removing `OCTDBCall`.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/dvor/objcTox/issues/comments/110807048","html_url":"https://github.com/dvor/objcTox/pull/32#issuecomment-110807048","issue_url":"https://api.github.com/repos/dvor/objcTox/issues/32","id":110807048,"user":{"login":"dvor","id":1132979,"avatar_url":"https://avatars.githubusercontent.com/u/1132979?v=3","gravatar_id":"","url":"https://api.github.com/users/dvor","html_url":"https://github.com/dvor","followers_url":"https://api.github.com/users/dvor/followers","following_url":"https://api.github.com/users/dvor/following{/other_user}","gists_url":"https://api.github.com/users/dvor/gists{/gist_id}","starred_url":"https://api.github.com/users/dvor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvor/subscriptions","organizations_url":"https://api.github.com/users/dvor/orgs","repos_url":"https://api.github.com/users/dvor/repos","events_url":"https://api.github.com/users/dvor/events{/privacy}","received_events_url":"https://api.github.com/users/dvor/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T15:47:25Z","updated_at":"2015-06-10T15:47:25Z","body":"So, you are planning to store call duration in OCTMessageCall?\r\n\r\nI was thinking about implementing call duration not with startDate, but with timer:\r\n- when connection establishes you can start timer, that tick every second\r\n- on every tick you will add 1 second to call duration (which will be stored in OCTMessageCall?)\r\n- if user pauses the call you will pause the timer\r\n- when call ends you simply destroy the timer.\r\n\r\nThis way if application will be killed (or will crash :open_mouth:) call duration will be still correct."}}