{"action":"created","comment":{"url":"https://api.github.com/repos/yonadev/yona-app-android/pulls/comments/212401120","pull_request_review_id":149026626,"id":212401120,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjQwMTEyMA==","diff_hunk":"@@ -0,0 +1,46 @@\n+package nu.yona.app.api.model;\n+\n+import android.content.pm.PackageInfo;\n+import android.content.pm.PackageManager;\n+import android.widget.TextView;\n+\n+import com.google.gson.annotations.Expose;\n+import com.google.gson.annotations.SerializedName;\n+\n+import nu.yona.app.BuildConfig;\n+import nu.yona.app.R;\n+import nu.yona.app.YonaApplication;\n+import nu.yona.app.ui.settings.SettingsFragment;\n+import nu.yona.app.utils.AppConstant;\n+import nu.yona.app.utils.AppUtils;\n+\n+import static nu.yona.app.ui.YonaActivity.getActivity;\n+\n+public class AppMetaInfo {\n+\n+    @SerializedName(\"operatingSystem\")\n+    @Expose\n+    private String operatingSystem = YonaApplication.getAppContext().getString(R.string.operating_system);\n+\n+    @SerializedName(\"appVersion\")\n+    @Expose\n+    private String appVersion  =  BuildConfig.VERSION_NAME;\n+\n+    @SerializedName(\"appVersionCode\")\n+    @Expose\n+    private Integer appVersionCode = BuildConfig.VERSION_CODE;\n+\n+\n+    public Integer getAppVersionCode() {\n+        return appVersionCode;\n+    }\n+\n+    public String getAppVersion() {\n+        return appVersion;\n+    }\n+\n+    public String getOperatingSystem() {\n+        return operatingSystem;\n+    }\n+","path":"app/src/main/java/nu/yona/app/api/model/AppMetaInfo.java","position":45,"original_position":45,"commit_id":"0dcb4d6caf023fe2bc4d28499f110063c083014b","original_commit_id":"0dcb4d6caf023fe2bc4d28499f110063c083014b","user":{"login":"Sivateja-CMI","id":35359277,"node_id":"MDQ6VXNlcjM1MzU5Mjc3","avatar_url":"https://avatars0.githubusercontent.com/u/35359277?v=4","gravatar_id":"","url":"https://api.github.com/users/Sivateja-CMI","html_url":"https://github.com/Sivateja-CMI","followers_url":"https://api.github.com/users/Sivateja-CMI/followers","following_url":"https://api.github.com/users/Sivateja-CMI/following{/other_user}","gists_url":"https://api.github.com/users/Sivateja-CMI/gists{/gist_id}","starred_url":"https://api.github.com/users/Sivateja-CMI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sivateja-CMI/subscriptions","organizations_url":"https://api.github.com/users/Sivateja-CMI/orgs","repos_url":"https://api.github.com/users/Sivateja-CMI/repos","events_url":"https://api.github.com/users/Sivateja-CMI/events{/privacy}","received_events_url":"https://api.github.com/users/Sivateja-CMI/received_events","type":"User","site_admin":false},"body":"Do you mean to get instance like this ?\r\n `AppMetaInfo appMetaInfo = AppMetaInfo.AppMetaInfo();`","created_at":"2018-08-23T17:54:04Z","updated_at":"2018-08-23T17:54:04Z","html_url":"https://github.com/yonadev/yona-app-android/pull/507#discussion_r212401120","pull_request_url":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/yonadev/yona-app-android/pulls/comments/212401120"},"html":{"href":"https://github.com/yonadev/yona-app-android/pull/507#discussion_r212401120"},"pull_request":{"href":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507"}},"in_reply_to_id":212381152},"pull_request":{"url":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507","id":210437919,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNDM3OTE5","html_url":"https://github.com/yonadev/yona-app-android/pull/507","diff_url":"https://github.com/yonadev/yona-app-android/pull/507.diff","patch_url":"https://github.com/yonadev/yona-app-android/pull/507.patch","issue_url":"https://api.github.com/repos/yonadev/yona-app-android/issues/507","number":507,"state":"open","locked":false,"title":"APPDEV-1139 inform server when app is open","user":{"login":"Sivateja-CMI","id":35359277,"node_id":"MDQ6VXNlcjM1MzU5Mjc3","avatar_url":"https://avatars0.githubusercontent.com/u/35359277?v=4","gravatar_id":"","url":"https://api.github.com/users/Sivateja-CMI","html_url":"https://github.com/Sivateja-CMI","followers_url":"https://api.github.com/users/Sivateja-CMI/followers","following_url":"https://api.github.com/users/Sivateja-CMI/following{/other_user}","gists_url":"https://api.github.com/users/Sivateja-CMI/gists{/gist_id}","starred_url":"https://api.github.com/users/Sivateja-CMI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sivateja-CMI/subscriptions","organizations_url":"https://api.github.com/users/Sivateja-CMI/orgs","repos_url":"https://api.github.com/users/Sivateja-CMI/repos","events_url":"https://api.github.com/users/Sivateja-CMI/events{/privacy}","received_events_url":"https://api.github.com/users/Sivateja-CMI/received_events","type":"User","site_admin":false},"body":"- Implemented Functionality to post yona open app event to server.\r\n- App posts the event when user opens app and enters the PIN. ","created_at":"2018-08-23T12:54:13Z","updated_at":"2018-08-23T17:54:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ab73598cc4644ef6839075af5be014c48cf6b46","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507/commits","review_comments_url":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507/comments","review_comment_url":"https://api.github.com/repos/yonadev/yona-app-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yonadev/yona-app-android/issues/507/comments","statuses_url":"https://api.github.com/repos/yonadev/yona-app-android/statuses/0dcb4d6caf023fe2bc4d28499f110063c083014b","head":{"label":"yonadev:feature/appdev-1139-inform-server-when-app-is-open","ref":"feature/appdev-1139-inform-server-when-app-is-open","sha":"0dcb4d6caf023fe2bc4d28499f110063c083014b","user":{"login":"yonadev","id":14901571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTAxNTcx","avatar_url":"https://avatars2.githubusercontent.com/u/14901571?v=4","gravatar_id":"","url":"https://api.github.com/users/yonadev","html_url":"https://github.com/yonadev","followers_url":"https://api.github.com/users/yonadev/followers","following_url":"https://api.github.com/users/yonadev/following{/other_user}","gists_url":"https://api.github.com/users/yonadev/gists{/gist_id}","starred_url":"https://api.github.com/users/yonadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonadev/subscriptions","organizations_url":"https://api.github.com/users/yonadev/orgs","repos_url":"https://api.github.com/users/yonadev/repos","events_url":"https://api.github.com/users/yonadev/events{/privacy}","received_events_url":"https://api.github.com/users/yonadev/received_events","type":"Organization","site_admin":false},"repo":{"id":54408552,"node_id":"MDEwOlJlcG9zaXRvcnk1NDQwODU1Mg==","name":"yona-app-android","full_name":"yonadev/yona-app-android","owner":{"login":"yonadev","id":14901571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTAxNTcx","avatar_url":"https://avatars2.githubusercontent.com/u/14901571?v=4","gravatar_id":"","url":"https://api.github.com/users/yonadev","html_url":"https://github.com/yonadev","followers_url":"https://api.github.com/users/yonadev/followers","following_url":"https://api.github.com/users/yonadev/following{/other_user}","gists_url":"https://api.github.com/users/yonadev/gists{/gist_id}","starred_url":"https://api.github.com/users/yonadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonadev/subscriptions","organizations_url":"https://api.github.com/users/yonadev/orgs","repos_url":"https://api.github.com/users/yonadev/repos","events_url":"https://api.github.com/users/yonadev/events{/privacy}","received_events_url":"https://api.github.com/users/yonadev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yonadev/yona-app-android","description":"Yona app on Android","fork":false,"url":"https://api.github.com/repos/yonadev/yona-app-android","forks_url":"https://api.github.com/repos/yonadev/yona-app-android/forks","keys_url":"https://api.github.com/repos/yonadev/yona-app-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yonadev/yona-app-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yonadev/yona-app-android/teams","hooks_url":"https://api.github.com/repos/yonadev/yona-app-android/hooks","issue_events_url":"https://api.github.com/repos/yonadev/yona-app-android/issues/events{/number}","events_url":"https://api.github.com/repos/yonadev/yona-app-android/events","assignees_url":"https://api.github.com/repos/yonadev/yona-app-android/assignees{/user}","branches_url":"https://api.github.com/repos/yonadev/yona-app-android/branches{/branch}","tags_url":"https://api.github.com/repos/yonadev/yona-app-android/tags","blobs_url":"https://api.github.com/repos/yonadev/yona-app-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yonadev/yona-app-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yonadev/yona-app-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/yonadev/yona-app-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yonadev/yona-app-android/statuses/{sha}","languages_url":"https://api.github.com/repos/yonadev/yona-app-android/languages","stargazers_url":"https://api.github.com/repos/yonadev/yona-app-android/stargazers","contributors_url":"https://api.github.com/repos/yonadev/yona-app-android/contributors","subscribers_url":"https://api.github.com/repos/yonadev/yona-app-android/subscribers","subscription_url":"https://api.github.com/repos/yonadev/yona-app-android/subscription","commits_url":"https://api.github.com/repos/yonadev/yona-app-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/yonadev/yona-app-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/yonadev/yona-app-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/yonadev/yona-app-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/yonadev/yona-app-android/contents/{+path}","compare_url":"https://api.github.com/repos/yonadev/yona-app-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yonadev/yona-app-android/merges","archive_url":"https://api.github.com/repos/yonadev/yona-app-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yonadev/yona-app-android/downloads","issues_url":"https://api.github.com/repos/yonadev/yona-app-android/issues{/number}","pulls_url":"https://api.github.com/repos/yonadev/yona-app-android/pulls{/number}","milestones_url":"https://api.github.com/repos/yonadev/yona-app-android/milestones{/number}","notifications_url":"https://api.github.com/repos/yonadev/yona-app-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yonadev/yona-app-android/labels{/name}","releases_url":"https://api.github.com/repos/yonadev/yona-app-android/releases{/id}","deployments_url":"https://api.github.com/repos/yonadev/yona-app-android/deployments","created_at":"2016-03-21T17:22:10Z","updated_at":"2018-08-20T18:52:11Z","pushed_at":"2018-08-23T15:41:36Z","git_url":"git://github.com/yonadev/yona-app-android.git","ssh_url":"git@github.com:yonadev/yona-app-android.git","clone_url":"https://github.com/yonadev/yona-app-android.git","svn_url":"https://github.com/yonadev/yona-app-android","homepage":null,"size":230100,"stargazers_count":6,"watchers_count":6,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":2,"open_issues":1,"watchers":6,"default_branch":"develop"}},"base":{"label":"yonadev:develop","ref":"develop","sha":"386993bbd27a1264a0b8568b930a72110bcb5dce","user":{"login":"yonadev","id":14901571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTAxNTcx","avatar_url":"https://avatars2.githubusercontent.com/u/14901571?v=4","gravatar_id":"","url":"https://api.github.com/users/yonadev","html_url":"https://github.com/yonadev","followers_url":"https://api.github.com/users/yonadev/followers","following_url":"https://api.github.com/users/yonadev/following{/other_user}","gists_url":"https://api.github.com/users/yonadev/gists{/gist_id}","starred_url":"https://api.github.com/users/yonadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonadev/subscriptions","organizations_url":"https://api.github.com/users/yonadev/orgs","repos_url":"https://api.github.com/users/yonadev/repos","events_url":"https://api.github.com/users/yonadev/events{/privacy}","received_events_url":"https://api.github.com/users/yonadev/received_events","type":"Organization","site_admin":false},"repo":{"id":54408552,"node_id":"MDEwOlJlcG9zaXRvcnk1NDQwODU1Mg==","name":"yona-app-android","full_name":"yonadev/yona-app-android","owner":{"login":"yonadev","id":14901571,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTAxNTcx","avatar_url":"https://avatars2.githubusercontent.com/u/14901571?v=4","gravatar_id":"","url":"https://api.github.com/users/yonadev","html_url":"https://github.com/yonadev","followers_url":"https://api.github.com/users/yonadev/followers","following_url":"https://api.github.com/users/yonadev/following{/other_user}","gists_url":"https://api.github.com/users/yonadev/gists{/gist_id}","starred_url":"https://api.github.com/users/yonadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonadev/subscriptions","organizations_url":"https://api.github.com/users/yonadev/orgs","repos_url":"https://api.github.com/users/yonadev/repos","events_url":"https://api.github.com/users/yonadev/events{/privacy}","received_events_url":"https://api.github.com/users/yonadev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yonadev/yona-app-android","description":"Yona app on Android","fork":false,"url":"https://api.github.com/repos/yonadev/yona-app-android","forks_url":"https://api.github.com/repos/yonadev/yona-app-android/forks","keys_url":"https://api.github.com/repos/yonadev/yona-app-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yonadev/yona-app-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yonadev/yona-app-android/teams","hooks_url":"https://api.github.com/repos/yonadev/yona-app-android/hooks","issue_events_url":"https://api.github.com/repos/yonadev/yona-app-android/issues/events{/number}","events_url":"https://api.github.com/repos/yonadev/yona-app-android/events","assignees_url":"https://api.github.com/repos/yonadev/yona-app-android/assignees{/user}","branches_url":"https://api.github.com/repos/yonadev/yona-app-android/branches{/branch}","tags_url":"https://api.github.com/repos/yonadev/yona-app-android/tags","blobs_url":"https://api.github.com/repos/yonadev/yona-app-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yonadev/yona-app-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yonadev/yona-app-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/yonadev/yona-app-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yonadev/yona-app-android/statuses/{sha}","languages_url":"https://api.github.com/repos/yonadev/yona-app-android/languages","stargazers_url":"https://api.github.com/repos/yonadev/yona-app-android/stargazers","contributors_url":"https://api.github.com/repos/yonadev/yona-app-android/contributors","subscribers_url":"https://api.github.com/repos/yonadev/yona-app-android/subscribers","subscription_url":"https://api.github.com/repos/yonadev/yona-app-android/subscription","commits_url":"https://api.github.com/repos/yonadev/yona-app-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/yonadev/yona-app-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/yonadev/yona-app-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/yonadev/yona-app-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/yonadev/yona-app-android/contents/{+path}","compare_url":"https://api.github.com/repos/yonadev/yona-app-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yonadev/yona-app-android/merges","archive_url":"https://api.github.com/repos/yonadev/yona-app-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yonadev/yona-app-android/downloads","issues_url":"https://api.github.com/repos/yonadev/yona-app-android/issues{/number}","pulls_url":"https://api.github.com/repos/yonadev/yona-app-android/pulls{/number}","milestones_url":"https://api.github.com/repos/yonadev/yona-app-android/milestones{/number}","notifications_url":"https://api.github.com/repos/yonadev/yona-app-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yonadev/yona-app-android/labels{/name}","releases_url":"https://api.github.com/repos/yonadev/yona-app-android/releases{/id}","deployments_url":"https://api.github.com/repos/yonadev/yona-app-android/deployments","created_at":"2016-03-21T17:22:10Z","updated_at":"2018-08-20T18:52:11Z","pushed_at":"2018-08-23T15:41:36Z","git_url":"git://github.com/yonadev/yona-app-android.git","ssh_url":"git@github.com:yonadev/yona-app-android.git","clone_url":"https://github.com/yonadev/yona-app-android.git","svn_url":"https://github.com/yonadev/yona-app-android","homepage":null,"size":230100,"stargazers_count":6,"watchers_count":6,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":2,"open_issues":1,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507"},"html":{"href":"https://github.com/yonadev/yona-app-android/pull/507"},"issue":{"href":"https://api.github.com/repos/yonadev/yona-app-android/issues/507"},"comments":{"href":"https://api.github.com/repos/yonadev/yona-app-android/issues/507/comments"},"review_comments":{"href":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507/comments"},"review_comment":{"href":"https://api.github.com/repos/yonadev/yona-app-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yonadev/yona-app-android/pulls/507/commits"},"statuses":{"href":"https://api.github.com/repos/yonadev/yona-app-android/statuses/0dcb4d6caf023fe2bc4d28499f110063c083014b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Sivateja-CMI"}}