/// Gets or sets a value indicating whether this <see cref="TwitterCommand<T>"/> is multipart.
120
117
/// </summary>
121
118
/// <value><c>true</c> if multipart; otherwise, <c>false</c>.</value>
122
public bool Multipart { get; set; }
119
protected bool Multipart { get; set; }
123
120
124
121
/// <summary>
125
122
/// Executes the command.
137
134
// Loop through all of the custom attributes assigned to the command class
138
135
foreach (Attribute attribute in this.GetType().GetCustomAttributes(false))
139
136
{
140
if (attribute.GetType() == typeof(AuthorizedCommandAttribute))
137
if (attribute is AuthorizedCommandAttribute)
141
138
{
142
139
if (this.Tokens == null)
143
140
{
152
149
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Token values cannot be null when executing the \"{0}\" command.", this.GetType()));
153
150
}
154
151
}
155
else if (attribute.GetType() == typeof(RateLimitedAttribute))
152
else if (attribute is RateLimitedAttribute)
156
153
{
157
154
// Get the rate limiting status
158
155
if (TwitterRateLimitStatus.GetStatus(this.Tokens).ResponseObject.RemainingHits == 0)
163
160
164
161
}
165
162
166
#if !LITE && !SILVERLIGHT
167
// Variables and objects needed for caching
168
StringBuilder cacheKeyBuilder = new StringBuilder(this.Uri.AbsoluteUri);