Esempio n. 1
0
 //get user event info
  public  Event getEventInfo(string eventid,string pagename,string label="",int acc =1)
  {
      Event e = new Event();
      e.event_identifier = eventid;
      e.activity =HttpUtility.UrlEncode( pagename);
      e.time = Utility.getTime();
      e.appkey = key;
      e.label = HttpUtility.UrlEncode(label);
      e.version = Utility.getApplicationVersion();
      e.acc = acc;
      return e;
  }
Esempio n. 2
0
 private string eventData2jsonstr(Event obj)
 {
     string ret = "";
     ret = UmsJson.Serialize(obj);
     return ret;
 }