public void GetCallsLeft(string[] methods, OKGetCallsLeftCallback callback) { Api(OKMethod.Users.getCallsLeft, new Dictionary <string, string> { { "methods", string.Join(",", methods) } }, delegate(HTTP.Response response) { List <OKMethodInfo> methodInfos = new List <OKMethodInfo>(); foreach (Hashtable hashtable in response.Array) { methodInfos.Add(new OKMethodInfo(hashtable)); } callback(methodInfos.ToArray()); } ); }
public static void GetCallsLeft(OKGetCallsLeftCallback callback, params string[] methods) { OdnoklassnikiImpl.GetCallsLeft(methods, callback); }
public void GetCallsLeft(string[] methods, OKGetCallsLeftCallback callback) { Api(OKMethod.Users.getCallsLeft, new Dictionary<string, string> { {"methods", string.Join(",", methods)} }, delegate(HTTP.Response response) { List<OKMethodInfo> methodInfos = new List<OKMethodInfo>(); foreach (Hashtable hashtable in response.Array) { methodInfos.Add(new OKMethodInfo(hashtable)); } callback(methodInfos.ToArray()); } ); }