public OicqRequest(byte[] data, byte[] shareKey) : base(data) { EatBytes(4); EatBytes(1); { EatBytes(2); TakeUshortBE(out oicqVersion); TakeUshortBE(out oicqCommand); EatBytes(2); TakeUintBE(out uin); EatBytes(2); TakeByte(out var status); oicqStatus = (OicqStatus)status; TakeOicqRequestBody(out oicqRequestBody, shareKey); } EatBytes(1); }
public OicqRequestBody(byte[] data, byte[] shareKey) : base(data, TeaCryptor.Instance, shareKey) { TakeUshortBE(out _oicqSubCommand); _oicqStatus = (OicqStatus)TakeByte(out var _); }