예제 #1
0
        public RefreshRequest ConvertToClass(byte[] data)
        {
            RefreshRequest rr = new RefreshRequest();
            rr.Uid = BitConverter.ToInt32(data, 2);
            rr.User_id = BitConverter.ToInt32(data, 6);

            return rr;
        }
예제 #2
0
 public MessageFresh(DataPackage dpk)
 {
     data = dpk;
     RefreshRequestConvert converter = new RefreshRequestConvert();
     rr = converter.ConvertToClass(dpk.Data);
 }