Android Open Source - playnomics-android Config






From Project

Back to project page playnomics-android.

License

The source code is released under:

Apache License

If you think the Android project playnomics-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.playnomics.android.util;
//from  ww  w  .j  av  a2  s  .  c  o m
public class Config implements IConfig {

  public String getSdkVersion() {
    return "${project.version}";
  }

  public String getSdkName() {
    return "aj";
  }


  private String getProdEventsUrl() {
    return "https://e.a.playnomics.net/v1/";
  }

  private String getProdMessagingUrl() {
    return "https://ads.a.playnomics.net/v3/";
  }

  private String getProdApiUrl() {
    return "https://api.a.playnomics.net/v2/";
  }

  private String overrideApiUrl;
  public void setOverrideApiUrl(String url) {
    overrideApiUrl = url;
  }

  public String getApiUrl() {
    if (!Util.stringIsNullOrEmpty(overrideApiUrl)) {
      return overrideApiUrl;
    }
    return getProdApiUrl();
  }

  private String overrideEventsUrl;
  public void setOverrideEventsUrl(String url) {
    overrideEventsUrl = url;
  }

  public String getEventsUrl() {
    if (!Util.stringIsNullOrEmpty(overrideEventsUrl)) {
      return overrideEventsUrl;
    }
    return getProdEventsUrl();
  }

  private String overrideMessagingUrl;

  public void setOverrideMessagingUrl(String url) {
    overrideMessagingUrl = url;
  }

  public String getMessagingUrl() {
    if (!Util.stringIsNullOrEmpty(overrideMessagingUrl)) {
      return overrideMessagingUrl;
    }
    return getProdMessagingUrl();
  }

  public String getApplicationIdKey() {
    return "a";
  }

  public String getUserIdKey() {
    return "u";
  }

  public String getAndroidIdKey() {
    return "androidId";
  }

  public String getEventTimeKey() {
    return "t";
  }

  public String getAppVersionKey() {
    return "appver";
  }

  public String getDeviceModelKey() {
    return "model";
  }

  public String getDeviceManufacturerKey() {
    return "manufacturer";
  }

  public String getDeviceOSVersionKey() {
    return "osver";
  }

  public String getSdkVersionKey() {
    return "ever";
  }

  public String getSdkNameKey() {
    return "esrc";
  }
  
  public String getTimeZoneOffsetKey() {
    return "z";
  }

  public String getSequenceKey() {
    return "q";
  }

  public String getTouchesKey() {
    return "c";
  }

  public String getTotalTouchesKey() {
    return "e";
  }

  public String getKeysPressedKey() {
    return "k";
  }

  public String getTotalKeysPressedKey() {
    return "l";
  }

  public String getSessionStartTimeKey() {
    return "r";
  }

  public String getIntervalMillisecondsKey() {
    return "d";
  }

  public String getCollectionModeKey() {
    return "m";
  }

  public String getSessionPauseTimeKey() {
    return "p";
  }

  public String getUserInfoGenderKey() {
    return "px";
  }

  public String getUserInfoBirthYearKey() {
    return "pb";
  }

  public String getUserInfoTypeKey() {
    return "pt";
  }

  public String getUserInfoSourceKey() {
    return "po";
  }

  public String getUserInfoCampaignKey() {
    return "pm";
  }

  public String getUserInfoInstallDateKey() {
    return "pi";
  }

  public String getUserInfoPushTokenKey() {
    return "pushTok";
  }

  public String getTransactionIdKey() {
    return "r";
  }

  public String getTransactionTypeKey() {
    return "tt";
  }

  public String getTransactionItemIdKey() {
    return "i";
  }

  public String getTransactionQuantityKey() {
    return "tq";
  }

  public String getTransactionCurrencyTypeFormatKey() {
    return "tc%d";
  }

  public String getTransactionCurrencyValueFormatKey() {
    return "tv%d";
  }

  public String getTransactionCurrencyCategoryFormatKey() {
    return "ta%d";
  }

  public String getMilestoneNameKey() {
    return "mn";
  }
  
  public int getAppPauseTimeoutMinutes(){
    return 30;
  }

  public int getCollectionMode() {
    return 7;
  }

  public String getEventPathUserInfo() {
    return "userInfo";
  }

  public String getEventPathMilestone() {
    return "milestone";
  }

  public String getEventPathTransaction() {
    return "transaction";
  }

  public String getEventPathAppRunning() {
    return "appRunning";
  }

  public String getEventPathAppPage() {
    return "appPage";
  }

  public String getEventPathAppResume() {
    return "appResume";
  }

  public String getEventPathAppStart() {
    return "appStart";
  }

  public String getEventPathAppPause() {
    return "appPause";
  }

  public String getMessagingPathAds() {
    return "ads";
  }

  public String getMessagingPlacementNameKey() {
    return "f";
  }

  public String getMessagingScreenWidthKey() {
    return "d";
  }

  public String getMessagingScreenHeightKey() {
    return "c";
  }

  public String getMessagingLanguageKey(){
    return"lang";
  }

  public String getCacheFileName() {
    return "playnomicsEventList";
  }
  
  public String getUserSegmentsPath() {
    return "userSegments";
  }

  private int[] heartBeatIntervalInMinutes = {1, 2, 4, 8, 15};
  public int[] getHeartBeatIntervalInMinutes() {
    return heartBeatIntervalInMinutes;
  }

  public int getQueHttpErrorTimeoutInSeconds() {
    return 60*2;
  }

  public int getQueEmptyTimeoutInMilliseconds() {
    return 1000;
  }
}




Java Source Code List

com.playnomics.PlaynomicsMoreTestActivity.java
com.playnomics.PlaynomicsTestAppActivity.java
com.playnomics.RichDataFrameDelegate.java
com.playnomics.android.client.AssetClient.java
com.playnomics.android.client.EventQueue.java
com.playnomics.android.client.EventWorker.java
com.playnomics.android.client.HttpConnectionFactory.java
com.playnomics.android.client.IEventQueue.java
com.playnomics.android.client.IEventWorker.java
com.playnomics.android.client.IHttpConnectionFactory.java
com.playnomics.android.client.PlacementDataClient.java
com.playnomics.android.client.SegmentationClient.java
com.playnomics.android.events.AppPageEvent.java
com.playnomics.android.events.AppPauseEvent.java
com.playnomics.android.events.AppResumeEvent.java
com.playnomics.android.events.AppRunningEvent.java
com.playnomics.android.events.AppStartEvent.java
com.playnomics.android.events.CustomEvent.java
com.playnomics.android.events.ExplicitEvent.java
com.playnomics.android.events.ImplicitEvent.java
com.playnomics.android.events.PlaynomicsEvent.java
com.playnomics.android.events.TransactionEvent.java
com.playnomics.android.events.UserInfoEvent.java
com.playnomics.android.messaging.CloseButton.java
com.playnomics.android.messaging.HtmlAdFactory.java
com.playnomics.android.messaging.HtmlAd.java
com.playnomics.android.messaging.HtmlCloseButton.java
com.playnomics.android.messaging.MessagingManager.java
com.playnomics.android.messaging.NativeCloseButton.java
com.playnomics.android.messaging.Placement.java
com.playnomics.android.messaging.Position.java
com.playnomics.android.messaging.Target.java
com.playnomics.android.messaging.ui.IPlayViewFactory.java
com.playnomics.android.messaging.ui.PlayDialog.java
com.playnomics.android.messaging.ui.PlayViewFactory.java
com.playnomics.android.messaging.ui.PlayWebView.java
com.playnomics.android.messaging.ui.RenderTaskFactory.java
com.playnomics.android.push.GcmBroadcastReceiver.java
com.playnomics.android.push.GcmIntentService.java
com.playnomics.android.push.GcmManager.java
com.playnomics.android.sdk.IGoogleCloudMessageConfig.java
com.playnomics.android.sdk.IPlacementDelegate.java
com.playnomics.android.sdk.IPlaynomicsPlacementDelegate.java
com.playnomics.android.sdk.IPlaynomicsPlacementRawDelegate.java
com.playnomics.android.sdk.IPlaynomicsSegmentationDelegate.java
com.playnomics.android.sdk.IPushConfig.java
com.playnomics.android.sdk.IPushNotificationDelegate.java
com.playnomics.android.sdk.Playnomics.java
com.playnomics.android.segments.UserSegmentIds.java
com.playnomics.android.session.ActivityObserver.java
com.playnomics.android.session.GameSessionInfo.java
com.playnomics.android.session.HeartBeatHandler.java
com.playnomics.android.session.HeartBeatProducer.java
com.playnomics.android.session.IActivityObserver.java
com.playnomics.android.session.ICallbackProcessor.java
com.playnomics.android.session.IHeartBeatProducer.java
com.playnomics.android.session.SessionStateMachine.java
com.playnomics.android.session.Session.java
com.playnomics.android.session.TouchEventHandler.java
com.playnomics.android.session.WindowCallbackProxy.java
com.playnomics.android.util.AndroidLogger.java
com.playnomics.android.util.AsyncTaskRunner.java
com.playnomics.android.util.CacheFile.java
com.playnomics.android.util.Config.java
com.playnomics.android.util.ContextWrapper.java
com.playnomics.android.util.EventTime.java
com.playnomics.android.util.IAsyncCall.java
com.playnomics.android.util.IConfig.java
com.playnomics.android.util.IRandomGenerator.java
com.playnomics.android.util.LargeGeneratedId.java
com.playnomics.android.util.LogWriter.java
com.playnomics.android.util.Logger.java
com.playnomics.android.util.Util.java