コード例 #1
0
 /// <summary>
 /// Initializes a new instance from the specified <code>response</code> and <code>body</code>.
 /// </summary>
 /// <param name="response">The raw response.</param>
 /// <param name="body">The object representing the response body.</param>
 /// <returns>Returns an instance of <see cref="SocialOAuthRequestTokenResponse"/>.</returns>
 public static SocialOAuthRequestTokenResponse ParseResponse(SocialHttpResponse response, SocialOAuthRequestToken body) {
     return response == null ? null : new SocialOAuthRequestTokenResponse(response, body);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance from the specified <code>response</code> and <code>body</code>.
 /// </summary>
 /// <param name="response">The raw response.</param>
 /// <param name="body">The object representing the response body.</param>
 protected SocialOAuthRequestTokenResponse(SocialHttpResponse response, SocialOAuthRequestToken body) : base(response) {
     Body = body;
 }