public RegistroRequest Request(TwitterOAuthResponse twitterOAth) { return(new RegistroRequest { Token = twitterOAth.Token, Verifier = twitterOAth.Verifier, UsuarioId = twitterOAth.UsuarioId.ToStringEmptyIfEmpty(), EmpresaId = twitterOAth.EmpresaId.ToStringEmptyIfEmpty(), ContaRedeSocial = twitterOAth.ContaRedeSocial }); }
public ResponseEnvelope RegistrarPerfil(TwitterOAuthResponse twitterOAth) { var parser = new RegistrarPerfil(); var request = parser.Request(twitterOAth); var response = client.RegistrarPerfil(request); var envelope = parser.Response(response); if (!envelope.Success) { throw new GRPCException(envelope.HttpStatusCode); } return(envelope); }
public TwitterRegistrarPerfil(TwitterOAuthResponse twitterOAuthResponse) { this.twitterOAuthResponse = twitterOAuthResponse; }