Ejemplo n.º 1
0
 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());
     }
         );
 }
Ejemplo n.º 2
0
 public static void GetCallsLeft(OKGetCallsLeftCallback callback, params string[] methods)
 {
     OdnoklassnikiImpl.GetCallsLeft(methods, callback);
 }
Ejemplo n.º 3
0
 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());
         }
     );
 }