Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
micro-build-server/DotNetBuilder/Response.cs

41 lines
797 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MicroBuildServer.DotNetBuilder
{
[Serializable]
class Response
{
[Serializable]
public class Message
{
9 years ago
public string Type { get; private set; }
public string Body { get; private set; }
public static Message CreateInfo(string body)
{
9 years ago
return new Message { Type = "info", Body = body };
}
public static Message CreateWarn(string body)
{
return new Message { Type = "warn", Body = body };
}
public static Message CreateError(string body)
{
return new Message { Type = "error", Body = body };
}
public override string ToString()
{
return string.Format("{0}: {1}", Type, Body);
}
}
public Message[] Messages { get; set; }
}
}