public static void SetCustomFields(Hashtable fields)
 {
     Instance.Do("setCustomFields", ZenJSON.Serialize(fields));
 }
Beispiel #2
0
        /// <summary>
        /// Set current user field info. The callback provides a Hashtable of string-string pairs representing the new user fields.
        /// </summary>
        /// <param name="fields">A hashtable of string-string pairs representing custom user info.</param>
        /// <param name="callback">block callback executed on error or success states</param>
        public static void SetUserFields(Hashtable fields, Action <Hashtable, ZDKError> callback)
        {
            string fieldJson = ZenJSON.Serialize(fields);

            instance().Call("setUserFields", callback, fieldJson);
        }