namespace DS.WMS.PrintApi.Model
{
public class PrintDataResult
{
///
/// 是否成功
///
public bool Succeeded { get; set; }
///
/// 返回消息
///
public string Message { get; set; }
///
/// 返回结果
///
public string Data { get; set; }
///
///
///
///
///
public static PrintDataResult Failed(string message)
{
return new PrintDataResult()
{
Succeeded = false,
Message = message
};
}
public static PrintDataResult OK(string data)
{
return new PrintDataResult()
{
Succeeded = true,
Data = data
};
}
}
}