Exemplo n.º 1
0
 public AttachmentMail(Dictionary serialized)
     : base(serialized)
 {
     attachment = AttachmentActionResult.Deserialize(
         (Dictionary)serialized["attachment"]
         );
 }
Exemplo n.º 2
0
        public CombinationSlotState(Dictionary serialized) : base(serialized)
        {
            UnlockBlockIndex = serialized["unlockBlockIndex"].ToLong();
            UnlockStage      = serialized["unlockStage"].ToInteger();
            if (serialized.TryGetValue((Text)"result", out var result))
            {
                Result = AttachmentActionResult.Deserialize((Dictionary)result);
            }

            if (serialized.TryGetValue((Text)"startBlockIndex", out var value))
            {
                StartBlockIndex = value.ToLong();
            }
        }