Пример #1
0
 public static void GetCurrentUser(OKGetCurrentUserCallback callback, params string[] fields)
 {
     OdnoklassnikiImpl.GetCurrentUser(fields, callback);
 }
 public void GetCurrentUser(string[] fields, OKGetCurrentUserCallback callback)
 {
     Api(OKMethod.Users.getCurrentUser,
         new Dictionary<string, string> {
             {"fields", string.Join(",", fields)}
         },
         delegate(HTTP.Response response)
         {
             callback(new OKUserInfo(response.Object));
         }
     );
 }