Example #1
0
 public void AddMember(Member newMem)
 {
     Dispatcher.Invoke(new Action(delegate()
     {
         Members.Add(newMem);
     }));
 }
Example #2
0
        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());
 }
Example #4
0
 public AddClientEventArgs(ErrorCode errcode, uint? room_id, Member member)
 {
     ErrCode = errcode;
     RoomID = room_id;
     AddedMember = member;
 }
Example #5
0
 public GetMembersEventArgs(ErrorCode errcode, uint? room_id, Member[] mem)
 {
     ErrCode = errcode;
     RoomID = room_id;
     Members = mem;
 }
Example #6
0
 public ChangeStateEventArgs(ErrorCode errcode, uint? room_id, string nick, Member.MemberState? state)
 {
     ErrCode = errcode;
     RoomID = room_id;
     Nickname = nick;
     State = state;
 }