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