コード例 #1
0
 public override void AppEventsLogEvent(string logEvent, float?valueToSum, Dictionary <string, object> parameters)
 {
     IOSFacebook.NativeDict nativeDict = IOSFacebook.MarshallDict(parameters);
     if (valueToSum.HasValue)
     {
         this.iosWrapper.LogAppEvent(logEvent, (double)valueToSum.Value, nativeDict.NumEntries, nativeDict.Keys, nativeDict.Values);
     }
     else
     {
         this.iosWrapper.LogAppEvent(logEvent, 0.0, nativeDict.NumEntries, nativeDict.Keys, nativeDict.Values);
     }
 }
コード例 #2
0
 private static IOSFacebook.NativeDict MarshallDict(Dictionary <string, string> dict)
 {
     IOSFacebook.NativeDict nativeDict = new IOSFacebook.NativeDict();
     if (dict != null && dict.Count > 0)
     {
         nativeDict.Keys       = new string[dict.Count];
         nativeDict.Values     = new string[dict.Count];
         nativeDict.NumEntries = 0;
         foreach (KeyValuePair <string, string> current in dict)
         {
             nativeDict.Keys[nativeDict.NumEntries]   = current.Key;
             nativeDict.Values[nativeDict.NumEntries] = current.Value;
             nativeDict.NumEntries++;
         }
     }
     return(nativeDict);
 }
コード例 #3
0
 public override void AppEventsLogPurchase(float logPurchase, string currency, Dictionary <string, object> parameters)
 {
     IOSFacebook.NativeDict nativeDict = IOSFacebook.MarshallDict(parameters);
     this.iosWrapper.LogPurchaseAppEvent((double)logPurchase, currency, nativeDict.NumEntries, nativeDict.Keys, nativeDict.Values);
 }