public RefreshRequest ConvertToClass(byte[] data) { RefreshRequest rr = new RefreshRequest(); rr.Uid = BitConverter.ToInt32(data, 2); rr.User_id = BitConverter.ToInt32(data, 6); return rr; }
public MessageFresh(DataPackage dpk) { data = dpk; RefreshRequestConvert converter = new RefreshRequestConvert(); rr = converter.ConvertToClass(dpk.Data); }