public API_TokenTransferTransInfo_4_3(TokenTransferTransInfo I) { Code = I.Code; Sender = Base58CheckEncoding.EncodePlain(I.Sender); Receiver = Base58CheckEncoding.EncodePlain(I.Receiver); Amount = I.Amount; State = (API_SmartOperationState)I.State; StateTransaction = ConvertTransactionId(I.StateTransaction); TransferSuccess = I.TransferSuccess; }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { V_tokenDeploy = new TokenDeployTransInfo(); V_tokenDeploy.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { V_tokenTransfer = new TokenTransferTransInfo(); V_tokenTransfer.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { V_smartDeploy = new SmartDeployTransInfo(); V_smartDeploy.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Struct) { V_smartExecution = new SmartExecutionTransInfo(); V_smartExecution.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.Struct) { V_smartState = new SmartStateTransInfo(); V_smartState.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }