Example #1
0
 internal override object ToProto()
 {
     BaseRespP.Builder builder = BaseRespP.CreateBuilder();
     builder.Type        = (uint)Type();
     builder.Transaction = Transaction;
     builder.ErrCode     = (uint)ErrCode;
     builder.ErrStr      = ErrStr;
     SendMessageToWXResp.Builder builder2 = SendMessageToWXResp.CreateBuilder();
     builder2.Base = builder.Build();
     return(builder2.Build());
 }
 internal override object ToProto()
 {
     BaseRespP.Builder builder = BaseRespP.CreateBuilder();
     builder.Type        = (uint)this.Type();
     builder.Transaction = this.Transaction;
     builder.ErrCode     = (uint)this.ErrCode;
     builder.ErrStr      = this.ErrStr;
     GetMessageFromWXResp.Builder builder2 = GetMessageFromWXResp.CreateBuilder();
     builder2.Base = builder.Build();
     return(builder2.Build());
 }
Example #3
0
 internal override object ToProto()
 {
     BaseRespP.Builder builder = BaseRespP.CreateBuilder();
     builder.Type        = (uint)this.Type();
     builder.Transaction = this.Transaction;
     builder.ErrCode     = (uint)this.ErrCode;
     builder.ErrStr      = this.ErrStr;
     SendPayRespP.Builder builder2 = SendPayRespP.CreateBuilder();
     builder2.Base      = builder.Build();
     builder2.ReturnKey = (string.IsNullOrEmpty(this.ReturnKey) ? "" : this.ReturnKey);
     return(builder2.Build());
 }
Example #4
0
 internal override object ToProto()
 {
     BaseRespP.Builder builder = BaseRespP.CreateBuilder();
     builder.Type        = (uint)Type();
     builder.Transaction = Transaction;
     builder.ErrCode     = (uint)ErrCode;
     builder.ErrStr      = ErrStr;
     SendAuthResp.Builder builder2 = SendAuthResp.CreateBuilder();
     builder2.Base  = builder.Build();
     builder2.Code  = string.IsNullOrEmpty(Code) ? "" : Code;
     builder2.State = string.IsNullOrEmpty(State) ? "" : State;
     builder2.Url   = string.IsNullOrEmpty(Url) ? "" : Url;
     return(builder2.Build());
 }
Example #5
0
 internal override object ToProto()
 {
     BaseRespP.Builder builder = BaseRespP.CreateBuilder();
     builder.Type        = (uint)this.Type();
     builder.Transaction = this.Transaction;
     builder.ErrCode     = (uint)this.ErrCode;
     builder.ErrStr      = this.ErrStr;
     SendAuthResp.Builder builder2 = SendAuthResp.CreateBuilder();
     builder2.Base  = builder.Build();
     builder2.Code  = (string.IsNullOrEmpty(this.Code) ? "" : this.Code);
     builder2.State = (string.IsNullOrEmpty(this.State) ? "" : this.State);
     builder2.Url   = (string.IsNullOrEmpty(this.Url) ? "" : this.Url);
     return(builder2.Build());
 }
Example #6
0
 internal override object ToProto()
 {
     BaseRespP.Builder builder = BaseRespP.CreateBuilder();
     builder.Type        = (uint)Type();
     builder.Transaction = Transaction;
     builder.ErrCode     = (uint)ErrCode;
     builder.ErrStr      = ErrStr;
     GetMessageFromWXResp.Builder builder2 = GetMessageFromWXResp.CreateBuilder();
     builder2.Base = builder.Build();
     if (Message != null)
     {
         WXMessageP ep = Message.ToProto() as WXMessageP;
         builder2.Msg = ep;
     }
     builder2.Username = Username;
     return(builder2.Build());
 }