public string AddOnUserChangesListener(OnCurrentUserChangedListener listener) { var key = (_counter++).ToString(); _onUserChangesListeners.Add(new ListenerWrapper { Listener = listener, Key = key }); return(key); }
public string AddOnCurrentUserChangedListener(OnCurrentUserChangedListener listener) { Action <CurrentUser> wrapper = some => listener(some); return(MethodCaller.RegisterListener("GetSocial.addOnCurrentUserChangedListener", Json(wrapper))); }
public static string AddOnCurrentUserChangedListener(OnCurrentUserChangedListener listener) { return(GetSocialFactory.Bridge.AddOnCurrentUserChangedListener(listener)); }