using System;
using System.Runtime.Serialization;
using GitHub.Services.WebApi;
namespace GitHub.Build.WebApi
{
///
/// Represents a reference to a build log.
///
[DataContract]
public class BuildLogReference : BaseSecuredObject
{
public BuildLogReference()
{
}
internal BuildLogReference(
ISecuredObject securedObject)
: base(securedObject)
{
}
///
/// The ID of the log.
///
// EmitDefaultValue is true to ensure that id = 0 is sent for XAML builds' "ActivityLog.xml"
[DataMember(IsRequired = false, EmitDefaultValue = true)]
public Int32 Id
{
get;
set;
}
///
/// The type of the log location.
///
[DataMember(IsRequired = false, EmitDefaultValue = false)]
public String Type
{
get;
set;
}
///
/// A full link to the log resource.
///
[DataMember(IsRequired = false, EmitDefaultValue = false)]
public String Url
{
get;
set;
}
}
}