/// <summary> /// Init the connection /// </summary> /// <returns></returns> public void Init() { Connection.On <List <string> >("SendGroups", (e) => { OnGroups?.Invoke(this, new GroupsArgs(e)); }); Connection.On <Message>("Send", (e) => { OnMessage?.Invoke(this, new MessageEventArgs(e)); }); Connection.On <Message>("PM", (e) => { OnMessage?.Invoke(this, new MessageEventArgs(e)); }); Connection.On <List <Message> >("SendBulk", (e) => { OnMessages?.Invoke(this, new MessagesEventArgs(e)); }); Connection.On <LoginData>("Connected", (e) => { OnConnected?.Invoke(this, new AlertArgs(e)); }); Connection.On <LoginData>("Disconnected", (e) => { OnDisconnected?.Invoke(this, new AlertArgs(e)); }); }
public void RGroups(RMUserInGroup[] group) => OnGroups?.Invoke(group, null);