99 $this->type = $in->getByte();
100 $this->needsTranslation = $in->
getBool();
102 case self::TYPE_CHAT:
103 case self::TYPE_WHISPER:
105 case self::TYPE_ANNOUNCEMENT:
109 case self::TYPE_SYSTEM:
110 case self::TYPE_JSON_WHISPER:
111 case self::TYPE_JSON:
112 case self::TYPE_JSON_ANNOUNCEMENT:
116 case self::TYPE_TRANSLATION:
117 case self::TYPE_POPUP:
118 case self::TYPE_JUKEBOX_POPUP:
121 for($i = 0; $i < $count; ++$i){
128 $this->platformChatId = $in->
getString();
129 $this->filteredMessage = $in->
getString();
133 $out->putByte($this->type);
134 $out->putBool($this->needsTranslation);
136 case self::TYPE_CHAT:
137 case self::TYPE_WHISPER:
139 case self::TYPE_ANNOUNCEMENT:
140 $out->putString($this->sourceName);
143 case self::TYPE_SYSTEM:
144 case self::TYPE_JSON_WHISPER:
145 case self::TYPE_JSON:
146 case self::TYPE_JSON_ANNOUNCEMENT:
147 $out->putString($this->message);
150 case self::TYPE_TRANSLATION:
151 case self::TYPE_POPUP:
152 case self::TYPE_JUKEBOX_POPUP:
153 $out->putString($this->message);
155 foreach($this->parameters as $p){
161 $out->putString($this->xboxUserId);
162 $out->putString($this->platformChatId);
163 $out->putString($this->filteredMessage);