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); }
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); }
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); }
public Nick(string nick) { Value = new NormalString(nick); this.ObjectDataList.Add(Value); }
public Message(string message) { Value = new NormalString(message); this.ObjectDataList.Add(Value); }