Example #1
0
        public void GetAppUsers(OKGetAppUsersCallback callback)
        {
            Api(OKMethod.Friends.getAppUsers, delegate(HTTP.Response response)
            {
                ArrayList uids;
                if (response.IsJSON())
                {
                    Hashtable appUsersResponse = response.Object;
                    if (!appUsersResponse.ContainsKey("uids"))
                    {
                        Debug.Log("Bad response, no uids found");
                        return;
                    }

                    uids = (ArrayList)appUsersResponse["uids"];
                }
                else
                {
                    uids = response.Array;
                }

                callback(ToStringArray(uids));
            });
        }
Example #2
0
 public static void GetAppUsers(OKGetAppUsersCallback callback)
 {
     OdnoklassnikiImpl.GetAppUsers(callback);
 }
Example #3
0
 public static void GetAppUsers(OKGetAppUsersCallback callback)
 {
     OdnoklassnikiImpl.GetAppUsers(callback);
 }
        public void GetAppUsers(OKGetAppUsersCallback callback)
        {
            Api(OKMethod.Friends.getAppUsers, delegate(HTTP.Response response)
            {
                ArrayList uids;
                if (response.IsJSON())
                {
                    Hashtable appUsersResponse = response.Object;
                    if (!appUsersResponse.ContainsKey("uids"))
                    {
                        Debug.Log("Bad response, no uids found");
                        return;
                    }

                    uids = (ArrayList)appUsersResponse["uids"];
                }
                else
                {
                    uids = response.Array;
                }

                callback(ToStringArray(uids));
            });
        }