Exemple #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;
     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());
 }
Exemple #2
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());
 }