public void AddMember(Member newMem) { Dispatcher.Invoke(new Action(delegate() { Members.Add(newMem); })); }
internal static Member ToMember(string pack) { var s = pack.Split('\t'); if (s.Length == 2) { Member m = new Member(); m.Nickname = s[0]; m.State = (MemberState)Convert.ToByte(s[1]); return m; } else { return null; } }
public void SetMyState(uint id, Member.MemberState state) { SendPacket(Protocol.PROTOCOL_CHANGE_STATE, id.ToString() + '\n' + ((byte)state).ToString()); }
public AddClientEventArgs(ErrorCode errcode, uint? room_id, Member member) { ErrCode = errcode; RoomID = room_id; AddedMember = member; }
public GetMembersEventArgs(ErrorCode errcode, uint? room_id, Member[] mem) { ErrCode = errcode; RoomID = room_id; Members = mem; }
public ChangeStateEventArgs(ErrorCode errcode, uint? room_id, string nick, Member.MemberState? state) { ErrCode = errcode; RoomID = room_id; Nickname = nick; State = state; }