Ejemplo n.º 1
0
      internal override void ParseBytes(byte[] objectData)
      {
         int index = 0;
         string nick = DataUtils.ReadString(objectData, ref index, objectData.Length);

         Value = new NormalString(nick);
         this.ObjectDataList.Add(Value);
      }
Ejemplo n.º 2
0
      public UserListEntry(int socket, int icon, int status, string nick)
      {
         Socket = new Short(socket);
         Icon = new Short(icon);
         Status = new Short(status);
         NickLength = new Short(nick.Length);
         Nick = new NormalString(nick);

         this.ObjectDataList.Add(Socket);
         this.ObjectDataList.Add(Icon);
         this.ObjectDataList.Add(Status);
         this.ObjectDataList.Add(NickLength);
         this.ObjectDataList.Add(Nick);
      }
Ejemplo n.º 3
0
      internal override void ParseBytes(byte[] objectData)
      {
         int index = 0;

         int socket = DataUtils.ReadShort(objectData, ref index);
         int icon = DataUtils.ReadShort(objectData, ref index);
         int status = DataUtils.ReadShort(objectData, ref index);
         int nickLength = DataUtils.ReadShort(objectData, ref index);
         string nick = DataUtils.ReadString(objectData, ref index, nickLength);

         Socket = new Short(socket);
         Icon = new Short(icon);
         Status = new Short(status);
         NickLength = new Short(nickLength);
         Nick = new NormalString(nick);

         this.ObjectDataList.Add(Socket);
         this.ObjectDataList.Add(Icon);
         this.ObjectDataList.Add(Status);
         this.ObjectDataList.Add(NickLength);
         this.ObjectDataList.Add(Nick);
      }
Ejemplo n.º 4
0
 public Nick(string nick)
 {
    Value = new NormalString(nick);
    this.ObjectDataList.Add(Value);
 }
Ejemplo n.º 5
0
 public Message(string message)
 {
    Value = new NormalString(message);
    this.ObjectDataList.Add(Value);
 }