/// <summary>
        /// Inits this instance.
        /// </summary>
        public override void Init()
        {
            this.RequestParameters.Add("include_entities", "true");

            UpdateProfileOptions options = this.OptionalProperties as UpdateProfileOptions;

            if (options == null)
            {
                return;
            }

            this.RequestParameters.Add("name", options.Name);
            this.RequestParameters.Add("description", options.Description);
            this.RequestParameters.Add("location", options.Location);
            this.RequestParameters.Add("url", options.Url);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateProfileCommand"/> class.
 /// </summary>
 /// <param name="tokens">The tokens.</param>
 /// <param name="options">The options.</param>
 public UpdateProfileCommand(OAuthTokens tokens, UpdateProfileOptions options)
     : base(HTTPVerb.POST, "account/update_profile.json", tokens, options)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateProfileCommand"/> class.
 /// </summary>
 /// <param name="tokens">The tokens.</param>
 /// <param name="options">The options.</param>
 public UpdateProfileCommand(OAuthTokens tokens, UpdateProfileOptions options)
     : base(HttpMethod.Post, "account/update_profile.json", tokens, options)
 {
 }