コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (wallet_ == null)
                    {
                        wallet_ = new global::VirtualWallet.Proto.Messages.Wallet();
                    }
                    input.ReadMessage(wallet_);
                    break;
                }

                case 16: {
                    Amount = input.ReadUInt64();
                    break;
                }

                case 24: {
                    type_ = (global::VirtualWallet.Proto.Messages.TransactionEntry.Types.EntryType)input.ReadEnum();
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(TransactionEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.wallet_ != null)
     {
         if (wallet_ == null)
         {
             wallet_ = new global::VirtualWallet.Proto.Messages.Wallet();
         }
         Wallet.MergeFrom(other.Wallet);
     }
     if (other.Amount != 0UL)
     {
         Amount = other.Amount;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }
コード例 #3
0
 public virtual grpc::AsyncUnaryCall <global::VirtualWallet.Proto.Messages.Wallet> AddWalletAsync(global::VirtualWallet.Proto.Messages.Wallet request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(AddWalletAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #4
0
 public virtual global::VirtualWallet.Proto.Messages.Wallet AddWallet(global::VirtualWallet.Proto.Messages.Wallet request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_AddWallet, null, options, request));
 }
コード例 #5
0
 public virtual global::System.Threading.Tasks.Task <global::VirtualWallet.Proto.Messages.Wallet> AddWallet(global::VirtualWallet.Proto.Messages.Wallet request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }
コード例 #6
0
 public virtual grpc::AsyncUnaryCall <global::VirtualWallet.Proto.Messages.Wallet> AddWalletAsync(global::VirtualWallet.Proto.Messages.Wallet request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_AddWallet, null, options, request));
 }