{"action":"created","comment":{"url":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments/32044170","id":32044170,"diff_hunk":"@@ -0,0 +1,173 @@\n+package com.segment.analytics.internal.integrations;\n+\n+import android.app.Activity;\n+import android.content.Context;\n+import android.os.Bundle;\n+import android.util.Log;\n+\n+import com.moe.pushlibrary.MoEHelper;\n+import com.moe.pushlibrary.utils.MoEHelperConstants;\n+import com.segment.analytics.Analytics;\n+import com.segment.analytics.AnalyticsContext;\n+import com.segment.analytics.Traits;\n+import com.segment.analytics.ValueMap;\n+import com.segment.analytics.internal.AbstractIntegration;\n+import com.segment.analytics.internal.model.payloads.IdentifyPayload;\n+import com.segment.analytics.internal.model.payloads.TrackPayload;\n+\n+import java.text.DateFormat;\n+import java.text.SimpleDateFormat;\n+import java.util.HashMap;\n+import java.util.Set;\n+\n+import static com.segment.analytics.internal.Utils.hasPermission;\n+\n+/**\n+ * MoEngage is an advanced mobile marketing and engagement tool which has a wide range of\n+ * features. It helps user retention and increases churn.\n+ *\n+ * @see <a href=\"http://www.moengage.com/\">MoEngage</a>\n+ * @see <a href=\"https://segment.com/docs/integrations/moengage/\">MoEngage Integration</a>\n+ * @see <a href=\"http://docs.moengage.com/en/latest/android.html\">MoEngage Android SDK</a>\n+ */\n+public class MoEngageIntegration extends AbstractIntegration<Void> {","path":"analytics-integrations/moengage/src/main/java/com/segment/analytics/internal/integrations/MoEngageIntegration.java","position":33,"original_position":33,"commit_id":"70d4fb61e58759f16e71c1226fb4d2fab5a68f1d","original_commit_id":"70d4fb61e58759f16e71c1226fb4d2fab5a68f1d","user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"body":"Missing `getUnderlyingInstance`","created_at":"2015-06-09T18:07:37Z","updated_at":"2015-06-09T18:07:37Z","html_url":"https://github.com/segmentio/analytics-android/pull/288#discussion_r32044170","pull_request_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/288","_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments/32044170"},"html":{"href":"https://github.com/segmentio/analytics-android/pull/288#discussion_r32044170"},"pull_request":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/288"}}},"pull_request":{"url":"https://api.github.com/repos/segmentio/analytics-android/pulls/288","id":36202332,"html_url":"https://github.com/segmentio/analytics-android/pull/288","diff_url":"https://github.com/segmentio/analytics-android/pull/288.diff","patch_url":"https://github.com/segmentio/analytics-android/pull/288.patch","issue_url":"https://api.github.com/repos/segmentio/analytics-android/issues/288","number":288,"state":"open","locked":false,"title":"MoEngage bundled integration","user":{"login":"Atrix1987","id":2898596,"avatar_url":"https://avatars.githubusercontent.com/u/2898596?v=3","gravatar_id":"","url":"https://api.github.com/users/Atrix1987","html_url":"https://github.com/Atrix1987","followers_url":"https://api.github.com/users/Atrix1987/followers","following_url":"https://api.github.com/users/Atrix1987/following{/other_user}","gists_url":"https://api.github.com/users/Atrix1987/gists{/gist_id}","starred_url":"https://api.github.com/users/Atrix1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atrix1987/subscriptions","organizations_url":"https://api.github.com/users/Atrix1987/orgs","repos_url":"https://api.github.com/users/Atrix1987/repos","events_url":"https://api.github.com/users/Atrix1987/events{/privacy}","received_events_url":"https://api.github.com/users/Atrix1987/received_events","type":"User","site_admin":false},"body":"Adding MoEngage bundled Integration for segment.io","created_at":"2015-05-26T13:31:41Z","updated_at":"2015-06-09T18:07:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4019a47f266b5df7d4b915da085245a740050b0d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/288/commits","review_comments_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/288/comments","review_comment_url":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segmentio/analytics-android/issues/288/comments","statuses_url":"https://api.github.com/repos/segmentio/analytics-android/statuses/70d4fb61e58759f16e71c1226fb4d2fab5a68f1d","head":{"label":"moengage:master","ref":"master","sha":"70d4fb61e58759f16e71c1226fb4d2fab5a68f1d","user":{"login":"moengage","id":9529144,"avatar_url":"https://avatars.githubusercontent.com/u/9529144?v=3","gravatar_id":"","url":"https://api.github.com/users/moengage","html_url":"https://github.com/moengage","followers_url":"https://api.github.com/users/moengage/followers","following_url":"https://api.github.com/users/moengage/following{/other_user}","gists_url":"https://api.github.com/users/moengage/gists{/gist_id}","starred_url":"https://api.github.com/users/moengage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moengage/subscriptions","organizations_url":"https://api.github.com/users/moengage/orgs","repos_url":"https://api.github.com/users/moengage/repos","events_url":"https://api.github.com/users/moengage/events{/privacy}","received_events_url":"https://api.github.com/users/moengage/received_events","type":"Organization","site_admin":false},"repo":{"id":35478951,"name":"analytics-android","full_name":"moengage/analytics-android","owner":{"login":"moengage","id":9529144,"avatar_url":"https://avatars.githubusercontent.com/u/9529144?v=3","gravatar_id":"","url":"https://api.github.com/users/moengage","html_url":"https://github.com/moengage","followers_url":"https://api.github.com/users/moengage/followers","following_url":"https://api.github.com/users/moengage/following{/other_user}","gists_url":"https://api.github.com/users/moengage/gists{/gist_id}","starred_url":"https://api.github.com/users/moengage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moengage/subscriptions","organizations_url":"https://api.github.com/users/moengage/orgs","repos_url":"https://api.github.com/users/moengage/repos","events_url":"https://api.github.com/users/moengage/events{/privacy}","received_events_url":"https://api.github.com/users/moengage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moengage/analytics-android","description":"The hassle-free way to add analytics to your Android app.","fork":true,"url":"https://api.github.com/repos/moengage/analytics-android","forks_url":"https://api.github.com/repos/moengage/analytics-android/forks","keys_url":"https://api.github.com/repos/moengage/analytics-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moengage/analytics-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moengage/analytics-android/teams","hooks_url":"https://api.github.com/repos/moengage/analytics-android/hooks","issue_events_url":"https://api.github.com/repos/moengage/analytics-android/issues/events{/number}","events_url":"https://api.github.com/repos/moengage/analytics-android/events","assignees_url":"https://api.github.com/repos/moengage/analytics-android/assignees{/user}","branches_url":"https://api.github.com/repos/moengage/analytics-android/branches{/branch}","tags_url":"https://api.github.com/repos/moengage/analytics-android/tags","blobs_url":"https://api.github.com/repos/moengage/analytics-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moengage/analytics-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moengage/analytics-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/moengage/analytics-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moengage/analytics-android/statuses/{sha}","languages_url":"https://api.github.com/repos/moengage/analytics-android/languages","stargazers_url":"https://api.github.com/repos/moengage/analytics-android/stargazers","contributors_url":"https://api.github.com/repos/moengage/analytics-android/contributors","subscribers_url":"https://api.github.com/repos/moengage/analytics-android/subscribers","subscription_url":"https://api.github.com/repos/moengage/analytics-android/subscription","commits_url":"https://api.github.com/repos/moengage/analytics-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/moengage/analytics-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/moengage/analytics-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/moengage/analytics-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/moengage/analytics-android/contents/{+path}","compare_url":"https://api.github.com/repos/moengage/analytics-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moengage/analytics-android/merges","archive_url":"https://api.github.com/repos/moengage/analytics-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moengage/analytics-android/downloads","issues_url":"https://api.github.com/repos/moengage/analytics-android/issues{/number}","pulls_url":"https://api.github.com/repos/moengage/analytics-android/pulls{/number}","milestones_url":"https://api.github.com/repos/moengage/analytics-android/milestones{/number}","notifications_url":"https://api.github.com/repos/moengage/analytics-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moengage/analytics-android/labels{/name}","releases_url":"https://api.github.com/repos/moengage/analytics-android/releases{/id}","created_at":"2015-05-12T09:25:05Z","updated_at":"2015-05-12T09:25:06Z","pushed_at":"2015-05-28T19:29:19Z","git_url":"git://github.com/moengage/analytics-android.git","ssh_url":"git@github.com:moengage/analytics-android.git","clone_url":"https://github.com/moengage/analytics-android.git","svn_url":"https://github.com/moengage/analytics-android","homepage":"https://segment.com/docs/libraries/android/","size":34570,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"segmentio:master","ref":"master","sha":"a4a10e5414218054817ee4d9e0ec47421ed58e76","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":9185941,"name":"analytics-android","full_name":"segmentio/analytics-android","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=3","gravatar_id":"","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/analytics-android","description":"The hassle-free way to add analytics to your Android app.","fork":false,"url":"https://api.github.com/repos/segmentio/analytics-android","forks_url":"https://api.github.com/repos/segmentio/analytics-android/forks","keys_url":"https://api.github.com/repos/segmentio/analytics-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/analytics-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/analytics-android/teams","hooks_url":"https://api.github.com/repos/segmentio/analytics-android/hooks","issue_events_url":"https://api.github.com/repos/segmentio/analytics-android/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/analytics-android/events","assignees_url":"https://api.github.com/repos/segmentio/analytics-android/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/analytics-android/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/analytics-android/tags","blobs_url":"https://api.github.com/repos/segmentio/analytics-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/analytics-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/analytics-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/analytics-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/analytics-android/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/analytics-android/languages","stargazers_url":"https://api.github.com/repos/segmentio/analytics-android/stargazers","contributors_url":"https://api.github.com/repos/segmentio/analytics-android/contributors","subscribers_url":"https://api.github.com/repos/segmentio/analytics-android/subscribers","subscription_url":"https://api.github.com/repos/segmentio/analytics-android/subscription","commits_url":"https://api.github.com/repos/segmentio/analytics-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/analytics-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/analytics-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/analytics-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/segmentio/analytics-android/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/analytics-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/analytics-android/merges","archive_url":"https://api.github.com/repos/segmentio/analytics-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/analytics-android/downloads","issues_url":"https://api.github.com/repos/segmentio/analytics-android/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/analytics-android/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/analytics-android/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/analytics-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/analytics-android/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/analytics-android/releases{/id}","created_at":"2013-04-03T03:28:33Z","updated_at":"2015-06-05T07:25:17Z","pushed_at":"2015-06-08T19:07:27Z","git_url":"git://github.com/segmentio/analytics-android.git","ssh_url":"git@github.com:segmentio/analytics-android.git","clone_url":"https://github.com/segmentio/analytics-android.git","svn_url":"https://github.com/segmentio/analytics-android","homepage":"https://segment.com/docs/libraries/android/","size":41840,"stargazers_count":98,"watchers_count":98,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":11,"forks":51,"open_issues":11,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/288"},"html":{"href":"https://github.com/segmentio/analytics-android/pull/288"},"issue":{"href":"https://api.github.com/repos/segmentio/analytics-android/issues/288"},"comments":{"href":"https://api.github.com/repos/segmentio/analytics-android/issues/288/comments"},"review_comments":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/288/comments"},"review_comment":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segmentio/analytics-android/pulls/288/commits"},"statuses":{"href":"https://api.github.com/repos/segmentio/analytics-android/statuses/70d4fb61e58759f16e71c1226fb4d2fab5a68f1d"}}}}