Ejemplo n.º 1
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;
     GetMessageFromWXResp.Builder builder2 = GetMessageFromWXResp.CreateBuilder();
     builder2.Base = builder.Build();
     return(builder2.Build());
 }
Ejemplo n.º 2
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());
 }