Exemplo n.º 1
0
      public ChangeStatus(int icon, string nick, int userStatus)
         : base("ChangeStatus", false, 0)
      {
         m_icon = new Icon(icon);
         m_objectList.Add(m_icon);

         m_nick = new Nick(nick);
         m_objectList.Add(m_nick);

         m_userStatus = new UserStatus(userStatus);
         m_objectList.Add(m_userStatus);
      }
Exemplo n.º 2
0
      public Login(string login, string password, string nick, int icon)
         : base("Login", false, 0)
      {
         m_login = new UserName(login);
         m_password = new Password(password);
         m_nick = new Nick(nick);
         m_icon = new Icon(icon);

         m_objectList.Add(m_login);
         m_objectList.Add(m_password);
         m_objectList.Add(m_nick);
         m_objectList.Add(m_icon);
      }
Exemplo n.º 3
0
      public UserChange(int userId, int icon, string nick, int userStatus)
         : base("UserChange", false, 0)
      {
         UserId = new UserId(userId);
         Icon = new Icon(icon);
         Nick = new Nick(nick);
         UserStatus = new UserStatus(userStatus);

         m_objectList.Add(UserId);
         m_objectList.Add(Icon);
         m_objectList.Add(Nick);
         m_objectList.Add(UserStatus);
      }
Exemplo n.º 4
0
 protected override void ProcessObjectList()
 {
    foreach (HotlineObject obj in m_objectList)
    {
       if (obj.GetType() == typeof(Icon))
          m_icon = obj as Icon;
       else if (obj.GetType() == typeof(Nick))
          m_nick = obj as Nick;
       else if (obj.GetType() == typeof(UserStatus))
          m_userStatus = obj as UserStatus;
       else
          s_log.ErrorFormat("Unexpected object: {0}", obj.GetType().ToString());
    }
 }