Exemplo n.º 1
0
 public UserPolicyData(MessageV2ReaderHelper reader)
 {
     try
     {
         UserID           = reader.ReadStr();
         OfferTime        = reader.ReadDouble();
         PriceMarkup      = reader.ReadStr();
         Submit400        = reader.ReadDouble();
         Submit500        = reader.ReadDouble();
         SubmitForce      = reader.ReadDouble();
         ServerIP         = reader.ReadStr();
         RemoveSelf       = reader.ReadBool();
         CanRemoteControl = reader.ReadBool();
     }
     catch (Exception e)
     {
         StringBuilder sb = new StringBuilder();
         sb.Append("UserPolicyData反序列化失败,").Append(e.Message);
         Console.WriteLine(sb.ToString());
     }
 }