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.
40 lines
797 B
40 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
|
|
{
|
|
public string Type { get; private set; }
|
|
public string Body { get; private set; }
|
|
|
|
public static Message CreateInfo(string body)
|
|
{
|
|
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; }
|
|
}
|
|
}
|
|
|