Ejemplo n.º 1
0
 internal override object ToProto()
 {
     BaseReqP.Builder builder = BaseReqP.CreateBuilder();
     builder.Type        = (uint)this.Type();
     builder.Transaction = this.Transaction;
     SendPayReqP.Builder builder2 = SendPayReqP.CreateBuilder();
     builder2.Base      = builder.Build();
     builder2.PartnerId = this.PartnerId;
     builder2.PrepayId  = this.PrepayId;
     builder2.NonceStr  = this.NonceStr;
     builder2.TimeStamp = this.TimeStamp;
     builder2.Package   = this.Package;
     builder2.Sign      = this.Sign;
     return(builder2.Build());
 }
Ejemplo n.º 2
0
            internal override void FromProto(object protoObj)
            {
                SendPayReqP qp = protoObj as SendPayReqP;

                if (qp != null)
                {
                    Transaction = qp.Base.Transaction;
                    PartnerId   = qp.PartnerId;
                    PrepayId    = qp.PrepayId;
                    NonceStr    = qp.NonceStr;
                    TimeStamp   = qp.TimeStamp;
                    Package     = qp.Package;
                    Sign        = qp.Sign;
                }
            }
Ejemplo n.º 3
0
            internal override void FromProto(object protoObj)
            {
                if (protoObj == null)
                {
                    return;
                }
                SendPayReqP sendPayReqP = protoObj as SendPayReqP;

                if (sendPayReqP == null)
                {
                    return;
                }
                this.Transaction = sendPayReqP.Base.Transaction;
                this.PartnerId   = sendPayReqP.PartnerId;
                this.PrepayId    = sendPayReqP.PrepayId;
                this.NonceStr    = sendPayReqP.NonceStr;
                this.TimeStamp   = sendPayReqP.TimeStamp;
                this.Package     = sendPayReqP.Package;
                this.Sign        = sendPayReqP.Sign;
            }