{"action":"created","comment":{"url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/comments/64067492","id":64067492,"diff_hunk":"@@ -0,0 +1,54 @@\n+package com.quickblox.sample.groupchatwebrtc.utils;\n+\n+import android.util.Log;\n+\n+import com.quickblox.videochat.webrtc.QBRTCClient;\n+import com.quickblox.videochat.webrtc.QBRTCSession;\n+import com.quickblox.videochat.webrtc.callbacks.QBRTCClientSessionCallbacksImpl;\n+\n+/**\n+ * Created by tereha on 16.05.16.\n+ */\n+public class WebRtcSessionManager extends QBRTCClientSessionCallbacksImpl {\n+    private static final String TAG = WebRtcSessionManager.class.getSimpleName();\n+\n+    public static WebRtcSessionManager instance;\n+\n+    private static QBRTCSession currentSession;\n+\n+    public static WebRtcSessionManager getInstance(){\n+        if (instance == null){\n+            instance = new WebRtcSessionManager();\n+        }\n+\n+        return instance;\n+    }\n+\n+    public QBRTCSession getCurrentSession() {\n+        return currentSession;\n+    }\n+\n+    public void setCurrentSession(QBRTCSession qbCurrentSession) {\n+        currentSession = qbCurrentSession;\n+    }\n+\n+    @Override\n+    public void onReceiveNewSession(QBRTCSession session) {\n+        super.onReceiveNewSession(session);","path":"sample-videochat-webrtc/src/main/java/com/quickblox/sample/groupchatwebrtc/utils/WebRtcSessionManager.java","position":37,"original_position":37,"commit_id":"678c5d121b11f29af24352655994b5aafd696753","original_commit_id":"678c5d121b11f29af24352655994b5aafd696753","user":{"login":"vfite","id":6041666,"avatar_url":"https://avatars.githubusercontent.com/u/6041666?v=3","gravatar_id":"","url":"https://api.github.com/users/vfite","html_url":"https://github.com/vfite","followers_url":"https://api.github.com/users/vfite/followers","following_url":"https://api.github.com/users/vfite/following{/other_user}","gists_url":"https://api.github.com/users/vfite/gists{/gist_id}","starred_url":"https://api.github.com/users/vfite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfite/subscriptions","organizations_url":"https://api.github.com/users/vfite/orgs","repos_url":"https://api.github.com/users/vfite/repos","events_url":"https://api.github.com/users/vfite/events{/privacy}","received_events_url":"https://api.github.com/users/vfite/received_events","type":"User","site_admin":false},"body":"супер ничего не делает кроме логиварония, его можно не вызывать","created_at":"2016-05-20T16:15:42Z","updated_at":"2016-05-20T16:15:42Z","html_url":"https://github.com/QuickBlox/quickblox-android-sdk/pull/203#discussion_r64067492","pull_request_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/comments/64067492"},"html":{"href":"https://github.com/QuickBlox/quickblox-android-sdk/pull/203#discussion_r64067492"},"pull_request":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203","id":70821415,"html_url":"https://github.com/QuickBlox/quickblox-android-sdk/pull/203","diff_url":"https://github.com/QuickBlox/quickblox-android-sdk/pull/203.diff","patch_url":"https://github.com/QuickBlox/quickblox-android-sdk/pull/203.patch","issue_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/203","number":203,"state":"open","locked":false,"title":"Check changes on stable branch for video calls (master.videochat_webrtc_updated)","user":{"login":"tatanka987","id":9434082,"avatar_url":"https://avatars.githubusercontent.com/u/9434082?v=3","gravatar_id":"","url":"https://api.github.com/users/tatanka987","html_url":"https://github.com/tatanka987","followers_url":"https://api.github.com/users/tatanka987/followers","following_url":"https://api.github.com/users/tatanka987/following{/other_user}","gists_url":"https://api.github.com/users/tatanka987/gists{/gist_id}","starred_url":"https://api.github.com/users/tatanka987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatanka987/subscriptions","organizations_url":"https://api.github.com/users/tatanka987/orgs","repos_url":"https://api.github.com/users/tatanka987/repos","events_url":"https://api.github.com/users/tatanka987/events{/privacy}","received_events_url":"https://api.github.com/users/tatanka987/received_events","type":"User","site_admin":false},"body":"*Make sure that you wrote the tests for your proposed changes and the existing test was success.*\r\n\r\n**Made/Proposed changes:**\r\n*(Don’t use general words, describe changes in details)*\r\n- done new system of login (by tags) logic; \r\n- edited background call (by push notifications - service for listening call started after push received);\r\n- done incoming call screen;\r\n- done video call screen;\r\n\r\n**How should this be manually tested?**\r\n\r\n\r\n**Does the documentation need an update?**\r\n","created_at":"2016-05-20T08:58:23Z","updated_at":"2016-05-20T16:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1489b8b3b69c433abd60191b332df1c34265f94b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203/commits","review_comments_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203/comments","review_comment_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/203/comments","statuses_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/statuses/678c5d121b11f29af24352655994b5aafd696753","head":{"label":"QuickBlox:master.videochat_webrtc_updated","ref":"master.videochat_webrtc_updated","sha":"678c5d121b11f29af24352655994b5aafd696753","user":{"login":"QuickBlox","id":1140234,"avatar_url":"https://avatars.githubusercontent.com/u/1140234?v=3","gravatar_id":"","url":"https://api.github.com/users/QuickBlox","html_url":"https://github.com/QuickBlox","followers_url":"https://api.github.com/users/QuickBlox/followers","following_url":"https://api.github.com/users/QuickBlox/following{/other_user}","gists_url":"https://api.github.com/users/QuickBlox/gists{/gist_id}","starred_url":"https://api.github.com/users/QuickBlox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuickBlox/subscriptions","organizations_url":"https://api.github.com/users/QuickBlox/orgs","repos_url":"https://api.github.com/users/QuickBlox/repos","events_url":"https://api.github.com/users/QuickBlox/events{/privacy}","received_events_url":"https://api.github.com/users/QuickBlox/received_events","type":"Organization","site_admin":false},"repo":{"id":6181191,"name":"quickblox-android-sdk","full_name":"QuickBlox/quickblox-android-sdk","owner":{"login":"QuickBlox","id":1140234,"avatar_url":"https://avatars.githubusercontent.com/u/1140234?v=3","gravatar_id":"","url":"https://api.github.com/users/QuickBlox","html_url":"https://github.com/QuickBlox","followers_url":"https://api.github.com/users/QuickBlox/followers","following_url":"https://api.github.com/users/QuickBlox/following{/other_user}","gists_url":"https://api.github.com/users/QuickBlox/gists{/gist_id}","starred_url":"https://api.github.com/users/QuickBlox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuickBlox/subscriptions","organizations_url":"https://api.github.com/users/QuickBlox/orgs","repos_url":"https://api.github.com/users/QuickBlox/repos","events_url":"https://api.github.com/users/QuickBlox/events{/privacy}","received_events_url":"https://api.github.com/users/QuickBlox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QuickBlox/quickblox-android-sdk","description":"QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.","fork":false,"url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk","forks_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/forks","keys_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/teams","hooks_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/events","assignees_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/tags","blobs_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/languages","stargazers_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/subscription","commits_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/merges","archive_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/downloads","issues_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/deployments","created_at":"2012-10-11T21:39:48Z","updated_at":"2016-05-18T09:21:33Z","pushed_at":"2016-05-20T15:52:56Z","git_url":"git://github.com/QuickBlox/quickblox-android-sdk.git","ssh_url":"git@github.com:QuickBlox/quickblox-android-sdk.git","clone_url":"https://github.com/QuickBlox/quickblox-android-sdk.git","svn_url":"https://github.com/QuickBlox/quickblox-android-sdk","homepage":null,"size":347016,"stargazers_count":212,"watchers_count":212,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":509,"mirror_url":null,"open_issues_count":47,"forks":509,"open_issues":47,"watchers":212,"default_branch":"master"}},"base":{"label":"QuickBlox:master","ref":"master","sha":"a8ce578cb565bff90eabfcad089c9e50ca6c96c6","user":{"login":"QuickBlox","id":1140234,"avatar_url":"https://avatars.githubusercontent.com/u/1140234?v=3","gravatar_id":"","url":"https://api.github.com/users/QuickBlox","html_url":"https://github.com/QuickBlox","followers_url":"https://api.github.com/users/QuickBlox/followers","following_url":"https://api.github.com/users/QuickBlox/following{/other_user}","gists_url":"https://api.github.com/users/QuickBlox/gists{/gist_id}","starred_url":"https://api.github.com/users/QuickBlox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuickBlox/subscriptions","organizations_url":"https://api.github.com/users/QuickBlox/orgs","repos_url":"https://api.github.com/users/QuickBlox/repos","events_url":"https://api.github.com/users/QuickBlox/events{/privacy}","received_events_url":"https://api.github.com/users/QuickBlox/received_events","type":"Organization","site_admin":false},"repo":{"id":6181191,"name":"quickblox-android-sdk","full_name":"QuickBlox/quickblox-android-sdk","owner":{"login":"QuickBlox","id":1140234,"avatar_url":"https://avatars.githubusercontent.com/u/1140234?v=3","gravatar_id":"","url":"https://api.github.com/users/QuickBlox","html_url":"https://github.com/QuickBlox","followers_url":"https://api.github.com/users/QuickBlox/followers","following_url":"https://api.github.com/users/QuickBlox/following{/other_user}","gists_url":"https://api.github.com/users/QuickBlox/gists{/gist_id}","starred_url":"https://api.github.com/users/QuickBlox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuickBlox/subscriptions","organizations_url":"https://api.github.com/users/QuickBlox/orgs","repos_url":"https://api.github.com/users/QuickBlox/repos","events_url":"https://api.github.com/users/QuickBlox/events{/privacy}","received_events_url":"https://api.github.com/users/QuickBlox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QuickBlox/quickblox-android-sdk","description":"QuickBlox Android SDK includes code snippets with main use cases and framework JAR library.","fork":false,"url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk","forks_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/forks","keys_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/teams","hooks_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/events","assignees_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/tags","blobs_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/languages","stargazers_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/subscription","commits_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/merges","archive_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/downloads","issues_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/deployments","created_at":"2012-10-11T21:39:48Z","updated_at":"2016-05-18T09:21:33Z","pushed_at":"2016-05-20T15:52:56Z","git_url":"git://github.com/QuickBlox/quickblox-android-sdk.git","ssh_url":"git@github.com:QuickBlox/quickblox-android-sdk.git","clone_url":"https://github.com/QuickBlox/quickblox-android-sdk.git","svn_url":"https://github.com/QuickBlox/quickblox-android-sdk","homepage":null,"size":347016,"stargazers_count":212,"watchers_count":212,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":509,"mirror_url":null,"open_issues_count":47,"forks":509,"open_issues":47,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203"},"html":{"href":"https://github.com/QuickBlox/quickblox-android-sdk/pull/203"},"issue":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/203"},"comments":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/QuickBlox/quickblox-android-sdk/statuses/678c5d121b11f29af24352655994b5aafd696753"}}}}
{"actor":{"display_login":"vfite"}}