LEFT | RIGHT |
(no file at all) | |
| 1 /* |
| 2 Copyright 2014 Google Inc |
| 3 |
| 4 Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 you may not use this file except in compliance with the License. |
| 6 You may obtain a copy of the License at |
| 7 |
| 8 http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
| 10 Unless required by applicable law or agreed to in writing, software |
| 11 distributed under the License is distributed on an "AS IS" BASIS, |
| 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 See the License for the specific language governing permissions and |
| 14 limitations under the License. |
| 15 */ |
| 16 |
| 17 using Windows.Security.Authentication.Web; |
| 18 |
| 19 namespace Google.Apis.Auth.OAuth2 |
| 20 { |
| 21 /// <summary> |
| 22 /// Contains the WebAuthenticationResult data. WebAuthenticationResult doesn
't have an empty constructor, and as a |
| 23 /// result it can't be deserialized. |
| 24 /// </summary> |
| 25 public class SerializableWebAuthResult |
| 26 { |
| 27 public static string Name = "authorization_result"; |
| 28 |
| 29 /// <summary>Gets or sets the the protocol data when the operation succe
ssfully completes.</summary> |
| 30 public string ResponseData { get; set; } |
| 31 /// <summary>Gets or sets the HTTP error code when ResponseStatus is equ
al to ErrorHttp.</summary> |
| 32 public uint ResponseErrorDetail { get; set; } |
| 33 /// <summary>Gets or sets the status of the asynchronous operation when
it completes.</summary> |
| 34 public WebAuthenticationStatus ResponseStatus { get; set; } |
| 35 |
| 36 /// <summary>Empty default constructor.</summary> |
| 37 public SerializableWebAuthResult() { } |
| 38 |
| 39 /// <summary>Constructs a new instance of the class and set its properti
es by the specified result.</summary> |
| 40 public SerializableWebAuthResult(WebAuthenticationResult result) |
| 41 { |
| 42 this.ResponseData = result.ResponseData; |
| 43 this.ResponseErrorDetail = result.ResponseErrorDetail; |
| 44 this.ResponseStatus = result.ResponseStatus; |
| 45 } |
| 46 } |
| 47 } |
LEFT | RIGHT |