Ejemplo n.º 1
0
        // Profile
        public string GetUpdateProfileParametersQuery(IAccountUpdateProfileParameters parameters)
        {
            var query = new StringBuilder(Resources.Account_UpdateProfile);

            query.AddParameterToQuery("name", parameters.Name);
            query.AddParameterToQuery("url", parameters.Url);
            query.AddParameterToQuery("location", parameters.Location);
            query.AddParameterToQuery("description", parameters.Description);
            query.AddParameterToQuery("profile_link_color", parameters.ProfileLinkColor);
            query.AddParameterToQuery("include_entities", parameters.IncludeEntities);
            query.AddParameterToQuery("skip_status", parameters.SkipStatus);

            query.AddFormattedParameterToQuery(parameters.FormattedCustomQueryParameters);

            return(query.ToString());
        }
Ejemplo n.º 2
0
        // Profile

        /// <summary>
        /// Update the information of the authenticated user profile.
        /// </summary>
        public static IAuthenticatedUser UpdateAccountProfile(IAccountUpdateProfileParameters parameters)
        {
            return AccountController.UpdateAccountProfile(parameters);
        }
Ejemplo n.º 3
0
 // Profile
 public IAuthenticatedUser UpdateAccountProfile(IAccountUpdateProfileParameters parameters)
 {
     var userDTO = _accountQueryExecutor.UpdateProfileParameters(parameters);
     return _userFactory.GenerateAuthenticatedUserFromDTO(userDTO);
 }
Ejemplo n.º 4
0
        public IUserDTO UpdateProfileParameters(IAccountUpdateProfileParameters parameters)
        {
            var query = _accountQueryGenerator.GetUpdateProfileParametersQuery(parameters);

            return(_twitterAccessor.ExecutePOSTQuery <IUserDTO>(query));
        }
Ejemplo n.º 5
0
        // Profile

        /// <summary>
        /// Update the information of the authenticated user profile.
        /// </summary>
        public static IAuthenticatedUser UpdateAccountProfile(IAccountUpdateProfileParameters parameters)
        {
            return(AccountController.UpdateAccountProfile(parameters));
        }
Ejemplo n.º 6
0
        // Profile
        public IAuthenticatedUser UpdateAccountProfile(IAccountUpdateProfileParameters parameters)
        {
            var userDTO = _accountQueryExecutor.UpdateProfileParameters(parameters);

            return(_userFactory.GenerateAuthenticatedUserFromDTO(userDTO));
        }
Ejemplo n.º 7
0
 public IUserDTO UpdateProfileParameters(IAccountUpdateProfileParameters parameters)
 {
     var query = _accountQueryGenerator.GetUpdateProfileParametersQuery(parameters);
     return _twitterAccessor.ExecutePOSTQuery<IUserDTO>(query);
 }
Ejemplo n.º 8
0
        // Profile
        public string GetUpdateProfileParametersQuery(IAccountUpdateProfileParameters parameters)
        {
            var query = new StringBuilder(Resources.Account_UpdateProfile);

            query.AddParameterToQuery("name", parameters.Name);
            query.AddParameterToQuery("url", parameters.Url);
            query.AddParameterToQuery("location", parameters.Location);
            query.AddParameterToQuery("description", parameters.Description);
            query.AddParameterToQuery("profile_link_color", parameters.ProfileLinkColor);
            query.AddParameterToQuery("include_entities", parameters.IncludeEntities);
            query.AddParameterToQuery("skip_status", parameters.SkipStatus);

            query.AddFormattedParameterToQuery(parameters.FormattedCustomQueryParameters);

            return query.ToString();
        }