Android Open Source - woopra-android-sdk Woopra Event






From Project

Back to project page woopra-android-sdk.

License

The source code is released under:

Apache License

If you think the Android project woopra-android-sdk 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

/*
 * Copyright 2014 Woopra, Inc./* w  w w . ja va  2 s  . c  o m*/
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */package com.woopra.tracking.android;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Woopra on 1/26/2013
 * 
 */
public class WoopraEvent {

  private final Map<String, String> properties = new java.util.concurrent.ConcurrentHashMap<String, String>();


  public WoopraEvent(String eventName) {
    this(eventName, null);
  }

  public WoopraEvent(String eventName, Map<String,String> properties) {
    if (properties != null) {
      this.properties.putAll(properties);
    }
    this.properties.put("name", eventName);
  }

  public Map<String,String> getProperties() {
    return properties;
  }

  public void setEventProperty(Map<String,String> newProperties) {
    properties.putAll(newProperties);
  }

  public void setEventProperty(String key, String value) {
    properties.put(key, value);
  }
}




Java Source Code List

com.woopra.tracking.android.WoopraClientInfo.java
com.woopra.tracking.android.WoopraEvent.java
com.woopra.tracking.android.WoopraPing.java
com.woopra.tracking.android.WoopraTracker.java
com.woopra.tracking.android.WoopraVisitor.java
com.woopra.tracking.android.Woopra.java