Skip to content

Commit

Permalink
Added IDeserializationModel to AzureOperationResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
stankovski committed Feb 26, 2015
1 parent b7bb32b commit 67f1f3e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/Common/AzureOperationResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,30 @@ namespace Microsoft.Azure
/// A standard service response including an HTTP status code and request
/// ID.
/// </summary>
public class AzureOperationResponse
public class AzureOperationResponse : IDeserializationModel
{
/// <summary>
/// Gets or sets the value that uniquely identifies a request
/// made against the service.
/// </summary>
public string RequestId { get; set; }

/// <summary>
/// In an impementing class, deserialize the instance with data from the given Json Token.
/// </summary>
/// <param name="inputObject">The Json Token that contains serialized data.</param>
public virtual void DeserializeJson(Newtonsoft.Json.Linq.JToken inputObject)
{
// Do nothing
}

/// <summary>
/// In an implementing class, deserialize the instance with data from the given Xml Container.
/// </summary>
/// <param name="inputObject">The Xml Container containing the serialized data.</param>
public virtual void DeserializeXml(System.Xml.Linq.XContainer inputObject)
{
// Do nothing
}
}
}

0 comments on commit 67f1f3e

Please sign in to comment.